CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Programming & Development

Continuity equation in implicit form

Register Blogs Community New Posts Updated Threads Search

 
 
LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
Old   November 27, 2012, 11:43
Default Continuity equation in implicit form
  #1
Senior Member
 
HECKMANN Frédéric
Join Date: Jul 2010
Posts: 249
Rep Power: 16
fredo490 is on a distinguished road
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 :
\frac{\partial \alpha}{\partial t} + {\nabla \alpha \vec{u}} = 0

Code:
	Info<< "Solve Continuity" << endl;
	tmp<fvScalarMatrix> CEqn
	(
	  fvm::ddt(rho)
	  + fvc::div(phi)
	);
	CEqn().solve();
I want to convert "fvc::div(phi)" in an implicit form.

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();
Does anybody has an idea ?
Thanks in advance.
fredo490 is offline   Reply With Quote

 


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


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


All times are GMT -4. The time now is 11:39.