CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Running, Solving & CFD (https://www.cfd-online.com/Forums/openfoam-solving/)
-   -   incompatible fields for operationproblem in simpleFoam (https://www.cfd-online.com/Forums/openfoam-solving/57823-incompatible-fields-operationproblem-simplefoam.html)

kbr March 10, 2009 10:51

Hi Khaled, I think your fvm
 
Hi Khaled,

I think your fvm::Sp(rho, alpha)-Term should just look like 'rho*alpha' due to its explicit character. 'fvm' is used for source terms like fvm::Sp(rho,U) in any UEqn.

booz March 10, 2009 11:10

Hey Kerstin, my goal is to
 
Hey Kerstin,

my goal is to solve the steady-state navier-stokes-equation in simpleFoam with a volume sourceterm rho*alpha.

You mean it is enough to write

fvm::div(phi, U)
+ rho*alpha
+ turbulence->divR(U) );

?

Khaled

kbr March 10, 2009 11:16

Hi Khaled, yes I think so b
 
Hi Khaled,

yes I think so but I'm not sure. In my opinion the only way to discretize this term implicitly is

fvm::Sp(rho * alpha / U, U)

but I'm not sure if this is a good idea. Have a look in the source code of some turbulence models like kOmegaSST (epsEqn).

Kerstin

booz March 10, 2009 11:25

Ok Kerstin, thanks for the
 
Ok Kerstin,

thanks for the answer.

But last question: what means the term

fvm::Sp(rho * alpha / U, U)

exactly or how openFoam discretize this term?
I am a beginner and donīt understand openfoam really good.

Regards,
Khaled


All times are GMT -4. The time now is 23:22.