viscous force calculation with MRF
Hi, I'm having trouble calculating viscous force over a patch with swak4Foam (actually two patches). For reference I'm using the built-in libforces calculation. This is the relevant swak4Foam function:
Code:
viscousForces Here is some sample output from the functions: Code:
Expression pressureForces on impeller0: average=(4758.3887 -5556.7538 -51217.2) |
Hi,
Are you running a turbulent case? If so, the standard forces functionObject takes the turbulent viscosity into account when calculating the viscous forces. Regards, Tom |
Yes it's a turbulent case and I already tried using nu+nut in the calculations, still different results. Should it be just nut?
Output with "viscous_force=-rho*(nu+nut)*snGrad(U)*area();": Code:
Expression pressureForces on impeller0: average=(-2624.4874 1612.6975 33782.874) |
The forces functionObject seems to use devRhoReff, which is defined in the turbulence model. Most turbulence models will use nuEff for this, which is indeed nut+nu.
The way the devRhoReff is calculated seems to be different to the way you have defined in the variables section, I think you should investigate on that to find the mismatch. If you type this in your terminal: Code:
cd $FOAM_SRC Good luck, Regards, Tom |
So it seems that for kOmegaSST the calculation is done by this function in kOmegaSST.C (incompressible):
Code:
tmp<volSymmTensorField> kOmegaSST::devReff() const |
All times are GMT -4. The time now is 15:24. |