From: Arthur Amende on

I've spent some time learning how to use pdetool and while it is very impressive can it solve a simple continuity equation? Specifically:

dn/dt + div(n) == 0

Can it do this? Or should I be looking at a different function? I am looking to solve an mhd model and was hoping to do it quickly with pdetool, but can't see how to do it. Any help is appreciated, thank you.
From: Torsten Hennig on
>
> I've spent some time learning how to use pdetool and
> while it is very impressive can it solve a simple
> continuity equation? Specifically:
>
> dn/dt + div(n) == 0
>
> Can it do this? Or should I be looking at a different
> function? I am looking to solve an mhd model and was
> hoping to do it quickly with pdetool, but can't see
> how to do it. Any help is appreciated, thank you.

pdetool can not solve this kind of hyperbolic
equations.
Either you discretize your equations in space on your
own and solve the resulting system of ODEs by one
of the solvers of the ODE-suite or you change to
CLAWPACK available under
http://www.amath.washington.edu/~claw/

Best wishes
Torsten.