0
$\begingroup$

I want to solve a 2D-PDE that has the form

NDSolve[{D[u[t, x], t] == 
    D[(u[t, x]*(u[t, x]^2 - u0^2) - D[u[t, x], x, x]), x, x],
   u[0, x] == 0,
   u[t, 0] == 0,
   u[t, 5] == 0}, u, {t, 0, 10}, {x, 0, 5}];

However, I would like to have periodic boundary conditions, how do I specify these?

$\endgroup$
1
  • $\begingroup$ As much as I know only linear PDE solvers are implemented. For nonlinear ones we still wait. $\endgroup$ Commented Mar 13, 2015 at 13:04

1 Answer 1

3
$\begingroup$
NDSolve[{D[u[t, x], t] == 
   D[(u[t, x]*(u[t, x]^2 - u0^2) - D[u[t, x], x, x]), x, x], u[0, x] == 0, 
  u[t, 0] == u[t, 5]}, u, {t, 0, 10}, {x, 0, 5}]

You'd need to specify u0 which was not given in the question.

$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.