CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Running, Solving & CFD (https://www.cfd-online.com/Forums/openfoam-solving/)
-   -   Attempt to cast type fixedValue to type nutWallFunction (https://www.cfd-online.com/Forums/openfoam-solving/243523-attempt-cast-type-fixedvalue-type-nutwallfunction.html)

shyamvk June 23, 2022 05:53

Attempt to cast type fixedValue to type nutWallFunction
 
Hello everyone,

I am trying to run pimplefoam with komegaSST for Re = 50000. But I am getting this error for some reason, which I do not know why. Also to note is that, I get this error only when I run in parallel and not when I run otherwise.

The error: Attempt to cast type fixedValue to type nutWallFunction at index 4.

My input files are as below:

k
Code:

#include "../system/includeDict";

internalField  uniform $k;

boundaryField
{
    OUTLET
    {
        type            inletOutlet;
        inletValue      $internalField;
        value          $internalField;
    }
    FAR_FIELD
    {
        type            symmetry;
    }
    INLET
    {
        type            fixedValue;
        value          $internalField;
    }

    CYLINDER
    {
        type            fixedValue;
        value          uniform $kWall;
    }
    SIDES
    {
        type            empty;
    }
}

omega
Code:

#include "../system/includeDict";

internalField  uniform $omega;

boundaryField
{
    OUTLET
    {
        type            inletOutlet;
        inletValue      $internalField;
        value          $internalField;
    }
    FAR_FIELD
    {
        type            symmetry;
    }
    INLET
    {
        type            fixedValue;
        value          $internalField;
    }
    CYLINDER
    {
        type            omegaWallFunction;
        Cmu            0.09;
        kappa          0.41;
        E              9.8;
        beta1          0.075;
        value          uniform $omegaWall;
    }

    SIDES
    {
        type            empty;
    }
}

nut
Code:

internalField  uniform 0;

boundaryField
{
    OUTLET
    {
        type            calculated;
        value          uniform 0;
    }
    FAR_FIELD
    {
        type            symmetry;
    }
    INLET
    {
        type            calculated;
        value          uniform 0;
    }
/*    CYLINDER
    {
        type            nutUSpaldingWallFunction;
        Cmu            0.09;
        kappa          0.41;
        E              9.8;
        value          uniform 0;
    }
*/
    CYLINDER
    {
        type            fixedValue;
        value          uniform 0;
    }
    SIDES
    {
        type            empty;
    }

I have tried changing the fixedValue to Wallfunction as suggested by some of the older threads.

Thanks in advance.

jherb August 27, 2022 14:29

Check the type of the patch in the constant/boundary file. It must be wall (and not patch)


All times are GMT -4. The time now is 03:00.