Skip to content

Variable and Term definition for structurally complicated PDEs #1028

Answered by guyer
zwang1995 asked this question in Q&A
Discussion options

You must be logged in to vote

A time derivative is not necessary for a FiPy equation, but I agree it's probably better to eliminate the Ergun equation as you have done.

I think what you have is OK and the reason that the solutions look wrong is because the time step is too large. Advective equations must obey the CFL condition, such that nothing is advected across more than one grid space in a time step. At $t=0$, $\Delta x / |v| \approx 0.00016$. If I set timeStepDuration = 0.0001, I get smoothly evolving solutions.

Additional things that might improve the solution:

  • A VanLeerConvectionTerm tends to preserve shapes better for purely convective equations.
  • Since v is a function of P.grad, sweeping may produce more accu…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@zwang1995
Comment options

Answer selected by zwang1995
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants