CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   Main CFD Forum (https://www.cfd-online.com/Forums/main/)
-   -   Problem with NuT (https://www.cfd-online.com/Forums/main/230349-problem-nut.html)

MaySea September 19, 2020 14:44

Problem with NuT
 
Hi, I am trying to simulate a turbulent PIMPLE flow. I am using OpenFoam6.

I am getting this error:

--> FOAM FATAL IO ERROR:
Essential entry 'value' missing

file: /home/jan/0/nut.boundaryField.barkley from line 52 to line 54

nut is defined like this:

Quote:

/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: 2.4.0 |
| \\ / A nd | Web: www.OpenFOAM.org |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class volScalarField;
location "0";
object nut;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

dimensions [0 2 -1 0 0 0 0];

internalField uniform 0;

boundaryField
{
south
{
type calculated;
value uniform 0;
}
east
{
type calculated;
value uniform 0;
}

watersurface
{
type slip;
}

north
{
type zeroGradient;
}

west
{
type zeroGradient;
}

barkley
{
type nutkRoughWallFunction;
Ks uniform 0.000755;
Cs uniform 0.5;
}
}



// ************************************************** *********************** //

Does anyone have any idea?
Thanks,
Jan

DeadLee September 19, 2020 22:08

I can't see it there but usually this error is due to a missing colon, a line that is commented out accidentally etc. Is it possible you're missing a parameter or two in barkley?

fumiya September 20, 2020 02:34

--> FOAM FATAL IO ERROR:
Essential entry 'value' missing

file: /home/jan/0/nut.boundaryField.barkley from line 52 to line 54

The above message shows that value entry is missing in the following:

barkley
{
type nutkRoughWallFunction;
Ks uniform 0.000755;
Cs uniform 0.5;
value uniform 0;
}

Hope this helps,
Fumiya

MaySea September 20, 2020 13:23

Hi Fumiya,

Thanks I will try running it with the value entrance. I understood the error, what I don't understand is that the documentation doesn't say that value needs to be specified for this OF version. Only Ks and Cs

Code:


  Example of the boundary condition specification:                                                                                                                   
    \verbatim                                                                                                                                                         
    <patchName>                                                                                                                                                       
    {                                                                                                                                                                 
        type            nutkRoughWallFunction;                                                                                                                         
        Ks              uniform 0;                                                                                                                                     
        Cs              uniform 0.5;                                                                                                                                   
    }


fumiya September 22, 2020 02:07

Hi MaySea,

The value entry is necessary because the nutkRoughWallFunctionFvPatchScalarField class
is inherited from the fixedValueFvPatchScalarField class.
I understand that the value is only a place holder for nutkRoughWallFunction
and does not have any effect to simulation results.

Hope this helps,
Fumiya


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