Discussion Closed This discussion was created more than 6 months ago and has been closed. To start a new discussion with a link back to this one, click here.
pure advection?
Posted Jan 21, 2011, 1:15 p.m. EST 3 Replies
Please login with a confirmed email address before reporting spam
Hi there,
Is there a good way to implement an advection equation in COMSOL? something of the form dt(A)+dx(Av)=0 where dt and dx are time and space derivatives.
I've tried using one of the chemical species transport models and setting the diffusivity extremely low (I get an error if I set it explicitly to zero) to solve dt(A)+v*dx(A)=0 and I've entered my own PDE to solve the first equation above. For an initial square wave I get fluctuations near the wave edges that grow with time, just like I would get if I tried to write a basic finite difference approximation of a pure advection equation. Even cutting COMSOL some slack and using a wave with less abrupt changes gives rise to instabilities. Is there a solver setting somewhere that could help? Are there any COMSOL tricks to adding pure advection routines with effectively no diffusion?
Thanks!
Chris
Is there a good way to implement an advection equation in COMSOL? something of the form dt(A)+dx(Av)=0 where dt and dx are time and space derivatives.
I've tried using one of the chemical species transport models and setting the diffusivity extremely low (I get an error if I set it explicitly to zero) to solve dt(A)+v*dx(A)=0 and I've entered my own PDE to solve the first equation above. For an initial square wave I get fluctuations near the wave edges that grow with time, just like I would get if I tried to write a basic finite difference approximation of a pure advection equation. Even cutting COMSOL some slack and using a wave with less abrupt changes gives rise to instabilities. Is there a solver setting somewhere that could help? Are there any COMSOL tricks to adding pure advection routines with effectively no diffusion?
Thanks!
Chris
3 Replies Last Post Jan 22, 2011, 12:32 p.m. EST