|
[Sponsors] |
November 27, 2012, 11:43 |
Continuity equation in implicit form
|
#1 |
Senior Member
HECKMANN Frédéric
Join Date: Jul 2010
Posts: 249
Rep Power: 16 |
Dear everyone,
I'm looking for a way of converting my continuity equation in an implicit form. This equation correspond to a particle tracking using an Eulerian approach. "rho" is not a gas, it is my particle concentration. Right now I have : Continuity equation : Code:
Info<< "Solve Continuity" << endl; tmp<fvScalarMatrix> CEqn ( fvm::ddt(rho) + fvc::div(phi) ); CEqn().solve(); I'm a little bit confused by the OpenFoam documentation : http://www.foamcfd.org/Nabla/guides/...sGuidese9.html It says that the convection term can be Imp/Exp with the following form: div(psi,scheme)* where psi is a surfaceScalarField (just like my "phi"). However, if I try the following code, I get a mistake while compiling: Code:
word scheme("div(phi)"); Info<< "Solve Continuity" << endl; tmp<fvScalarMatrix> CEqn ( fvm::ddt(rho) + fvm::div(phi, scheme) ); CEqn().solve(); Thanks in advance. |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Conservative form of Navier Stokes equation. | balkrishna | OpenFOAM Running, Solving & CFD | 2 | January 25, 2012 08:33 |
Derivation of Momentum Equation in Integral Form | Demonwolf | Main CFD Forum | 2 | October 29, 2009 19:53 |
IcoFoam parallel woes | msrinath80 | OpenFOAM Running, Solving & CFD | 9 | July 22, 2007 02:58 |
Could anybody help me see this error and give help | liugx212 | OpenFOAM Running, Solving & CFD | 3 | January 4, 2006 18:07 |
continuity equation for the mixture | mateus | FLUENT | 0 | April 24, 2003 07:53 |