Adding coriolis forces in simplefoam
I am trying to add coriolis forces in simplefoam into the momentum equation.
The source code for the momentum equation is the following:
fvm::div(phi, U)+ turbulence->divDevReff(U) = -fvc::grad(p)
and I would like to add the coriolis force component that should be computed from the cross product between the velocity (U) and the earth angular velocity.
I do not know how to implent it as U is a volvectorField and the angular velocity I have defined as Vector <scalar>.
Thank you in advance.
have a look at the simpleSRFFoam solver provided with OpenFOAM 1.5 tutorials. There is already everything in it you want to do.
I hope this helps,
|All times are GMT -4. The time now is 13:57.|