I wish to solve the initial value kdv equation with a boundary condition that particles are fixed at the end points. Below is my code.
sp = 16
d = 1
s = NDSolve[{\!\(
\*SubscriptBox[\(\[PartialD]\), \(t\)]\(u[t, x]\)\) == -u[t, x]*\!\(
\*SubscriptBox[\(\[PartialD]\), \(x\)]\(u[t, x]\)\) - d*\!\(
\*SubscriptBox[\(\[PartialD]\), \(x, x, x\)]\(u[t, x]\)\),
u[0, x] == 3*d^(1/3)*sp*Sech[0.5*Sqrt[sp]*d^(-1/3)*x]^2,
u[t, -100] == u[t, 100] == 0}, u, {t, 0, 4}, {x, -100, 100}]
But it is showing error NDSolve::bcart: Warning: an insufficient number of boundary conditions have been specified for the direction of independent variable x. Artificial boundary effects may be present in the solution.
I dont get why this is so, as I have explicitly specified that u must be zero at x=-100 and 100 for all t, as particles are fixed there.