CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Running, Solving & CFD

Attempt to cast type fixedValue to type nutWallFunction

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   June 23, 2022, 05:53
Default Attempt to cast type fixedValue to type nutWallFunction
  #1
New Member
 
ShyamVK
Join Date: Oct 2021
Posts: 2
Rep Power: 0
shyamvk is on a distinguished road
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.
shyamvk is offline   Reply With Quote

Old   August 27, 2022, 14:29
Default
  #2
Senior Member
 
Joachim Herb
Join Date: Sep 2010
Posts: 650
Rep Power: 21
jherb is on a distinguished road
Check the type of the patch in the constant/boundary file. It must be wall (and not patch)
jherb is offline   Reply With Quote

Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
time step continuity error increases with time_SRFSimplefoam mostafa kamal OpenFOAM Running, Solving & CFD 7 October 2, 2019 02:00
Floating point exception error lpz_michele OpenFOAM Running, Solving & CFD 53 October 19, 2015 02:50
Time step continuity error lpz_michele OpenFOAM Running, Solving & CFD 0 October 12, 2015 06:05
Error during initialization of "rhoSimpleFoam" kornickel OpenFOAM Running, Solving & CFD 8 September 17, 2013 05:37
[swak4Foam] Air Conditioned room groovyBC Sebaj OpenFOAM Community Contributions 7 October 31, 2012 14:16


All times are GMT -4. The time now is 20:09.