mass source term in buoyantSimpleFoam
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.
I have the same question, did you found the answer to your question?
|All times are GMT -4. The time now is 01:00.|