CFD Online Discussion Forums

CFD Online Discussion Forums (
-   OpenFOAM Running, Solving & CFD (
-   -   K turbulent kinetic energy patchField type with wall function (

sek September 12, 2006 16:50

I'm using simpleFoam (OpenFOAM
I'm using simpleFoam (OpenFOAM 1.3) with k-epsilon turbulence model on a problem involving wall boundaries. On my wall boundaries (patches), the patch field types for k equation appear to be set to "fixedValue" by default, as explained in the tutorial (page U-42). However, the simpleFoam aborts the job, saying that "fixedvalue" is a wrong patch field type for k-equation when wall functions are selected, as shown below. Can anybody shed some light on this?

--> FOAM FATAL ERROR : fixedValue is the wrong k patchField type for wall-functions on patch body11
should be zeroGradient

From function wall-function evaluation
in file /home/dm2/henry/OpenFOAM/OpenFOAM-1.3/src/finiteVolume/lnInclude/checkPatchField Types.H at line 3.
FOAM exiting

pierre September 13, 2006 09:43

Hey, You have fixed K on wa

You have fixed K on wall-type patch, and as the error message seem to imply it wants to see zeroGradient as you're using a high-Re model which uses wall functions. The wall function takes care of calculating the adequate boundary values. If you want to use low-Re model then I guess you'd want use fixed K condition.


sek September 13, 2006 16:58

O.K. my question is then how t
O.K. my question is then how to change the patchField type from fixedValue to zeroGradient?

All times are GMT -4. The time now is 06:39.