CFD Online Discussion Forums

CFD Online Discussion Forums (
-   OpenFOAM Running, Solving & CFD (
-   -   interFoam ask for a value in a nutkRoughWallFunction (

avigrod October 30, 2013 09:01

interFoam ask for a value in a nutkRoughWallFunction
I have defined a rough wall bc using nutkRoughWallFunction, in this way (0/nut):

object      nut;


        type            nutkRoughWallFunction;
        Ks              uniform 0.0001;
        Cs              uniform 0.5;

Following instructions from $FOAM_SRC/turbulenceModels/incompressible/RAS/lnInclude/nutkRoughWallFunctionFvPatchScalarField.H


Example of the boundary condition specification:
        type            nutkRoughWallFunction;
        Ks              uniform 0;
        Cs              uniform 0.5;

When running interFoam it shows the following error message:

0/nut.boundaryField.wall from line 26 to line 28.

    From function fvPatchField<Type>::fvPatchField(const fvPatch& p,const DimensionedField<Type, volMesh>& iF,const dictionary& dict,const bool valueRequired)
    in file /home/opencfd/OpenFOAM/OpenFOAM-2.2.2/src/finiteVolume/lnInclude/fvPatchField.C at line 162.

FOAM exiting

lines 26-28 are the ones I paste here within the 0/nut file.

Why is it asking for a value field, if the wall function does not need it? If I put any value, Would it be used for anything? I mean, if I add a "value uniform 0;", it won't influenced anything, will it?

Thank you in advance!

olivier78 August 13, 2014 08:46

same problem here

tomf August 14, 2014 03:49

It is just needed for the first iteration and will be overwritten afterwards, so just put uniform 0, or maybe a small value.

All times are GMT -4. The time now is 16:05.