Skip to content

unable to parse fvExpressionField in controlDict #332

@HenningScheufler

Description

@HenningScheufler

Thanks for sharing this execellent library

foamlib is unable to parse fvExpressionField functionObject in the controlDict :

test
{
    type    exprField;
    libs    (fieldFunctionObjects);
    field   pTotal;

    expression  "p + 0.5*(rho*magSqr(U))";
    dimensions  [ Pa ]; // this is the line that causes the error
}

It prints the following error message:

pyparsing.exceptions.ParseException: Expected end of text, found '{' (at char 1241), (line:58, col:1)

details:
https://www.openfoam.com/documentation/guides/latest/api/classFoam_1_1functionObjects_1_1fvExpressionField.html

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingenhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions