Guest User

Untitled

a guest
Feb 18th, 2019
101
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.29 KB | None | 0 0
  1. reg = Line[{{0}, {1}}];
  2. shape = D[0.125 Erf[(x - 0.5)/0.125], x];
  3. op = D[u[t, x], {x, 2}] - D[u[t, x], {t, 2}];
  4. ics = {u[0, x] == shape, Derivative[1, 0][u][0, x] == 0};
  5. sol = NDSolveValue[{op == 0, ics}, u, {t, 0, 2}, {x} ∈ reg,
  6. StepMonitor :> Print["xis,uis=" <> ToString["???"]]]
Add Comment
Please, Sign In to add comment