I am trying to solve following PDE involving a third derivative with respect to p:
a = 40;
ps = 2*10^-5;
ic = u[0, p] == 0.3 E^(-0.06 (-(7/2) + p/2)^2);
bc = {u[t, -a] == 0, u[t, a] == 0, Derivative[0, 1][u][t, -a] == 0};
pde = - D[u[t, p], t] == ps D[u[t, p], {p, 3}] + I p^2/4 u[t, p];
solp = NDSolve[{pde, ic, bc}, u, {t, 0, 60}, {p, -a, a}];
Then I animate the solution:
Animate[Plot[Evaluate[Abs[u[t, p] /. First[solp]]^2], {p, - a/2, a},
PlotRange -> {0, 0.2}], {t, 0, 60, 0.05}]
The solution does not look like it should. For example, for very small ps, the solution should just be the initial function. Instead it is oscillating all over the place. How can I improve this code? My guess is, that I should choose different boundary conditions. I played around with them a lot, without success.
The physics behind this: I want to solve the time-dependent Schrödinger equation in momentum space. Situation: a particle wave packet collides with a weak x^3 potential. Any help very appreciated!