CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   OpenFOAM (http://www.cfd-online.com/Forums/openfoam/)
-   -   mass source term in buoyantSimpleFoam (http://www.cfd-online.com/Forums/openfoam/80545-mass-source-term-buoyantsimplefoam.html)

OMN September 29, 2010 08:22

mass source term in buoyantSimpleFoam
 
Hello

I would like to add a mass source term in buoyantSimpleFoam. I define msource in a dictionary.
The continuity equation looks like this in that case:

div(rho*U) = msource

And I have added source terms in
1) the momentum equation: + fvm::Sp(msource, U) on the RHS
2) the energy equation: +fvm::Sp(msource, h) on the RHS

Is it enough to modify the definition of p_rghEqn() in the pEqn.H file by adding the term -msource on the RHS?

Any help would be greatly appreciated.

Cheers

Olivier

Bahram April 30, 2014 06:49

Hello Olivier

I have the same question, did you found the answer to your question?

Regards

Bahram


All times are GMT -4. The time now is 10:44.