CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Community Contributions (https://www.cfd-online.com/Forums/openfoam-community-contributions/)
-   -   [swak4Foam] GroovyBC lookuptabels parser problem (https://www.cfd-online.com/Forums/openfoam-community-contributions/241145-groovybc-lookuptabels-parser-problem.html)

Jury February 10, 2022 07:07

GroovyBC lookuptabels parser problem
 
Hey everyone,

I'm running OF 8 and swak4Foam. This is how I implemented a BC:

Code:

WALL_BK
{
        type            groovyBC;
        valueExpression "value";
        variables
        (
            "value=tbl(pos().x*1e3, 0);" //Conversion from m in mm
        );

        lookuptables2D (
        {
            outOfBounds clamp;
            format foam;
            name tbl;
            file "$FOAM_CASE/constant/Twall.dat";
        }
        );
        value          uniform 400;
}

When I try to rerun the case or try to run it on mulitple cores I get the Error message "keyword outOfBounds is undefined in dictionary", because the entry gets lost. This is the BC definition afterwards:

Code:

WALL_BK
    {
        type            groovyBC;
        refValue        uniform 400;
        refGradient    uniform 0;
        valueFraction  uniform 1;
        value          uniform 400;
        valueExpression "value";
        gradientExpression "0";
        fractionExpression "1";
        evaluateDuringConstruction 0;
        cyclicSlave    0;
        variables      "value=tbl(pos().x*1e3, 0);";
        timelines      (
);
        lookuptables    (
);
        lookuptables2D  (
{
        name            tbl;
}
);

Does anyone how to fix this problem?

Thanks in Advance!


All times are GMT -4. The time now is 21:56.