I'm quite new to Wolfram Mathematica. I need to create an animation of a Burgers Hopf equation's solution which becomes multivalued (somewhat of a breaking wave). Is it possible to do so in Mathematica?
All I seem to obtain is a very sharp series of oscillations which I assume are a numerical correction by the software.
Any help will be appreciated.
NDSolve[
{D[u[x, t], t] + 1/2 D[u[x, t]^2, x] == 0,
u[x, 0] == Sech[x]^2, u[-5, t] == u[5, t]},
u[x, t], {x, -5, 5}, {t, 0, 5}]`
NDSolve
documentation page. Have you seen them? $\endgroup$ – Kuba♦ Aug 6 '18 at 12:41