Skip to content
Snippets Groups Projects

New "exprField" function object

Merged Mark OLESEN requested to merge feature-fvExpressionField into develop
  • provides a simple means of defining/modifying fields. For example,
<name1>
{
    type    exprField;
    libs    (fieldFunctionObjects);
    field   pTotal;  //<- output field
 
    expression  "p + 0.5*(rho*magSqr(U))";
    dimensions  [ Pa ];
}
// modify the above

<name1>
{
    type    exprField;
    libs    (fieldFunctionObjects);
    field   pTotal;  //<- input/output field (for modify)
    action  modify;

    // Static pressure only in these regions
    fieldMask
    #{
        (mag(pos()) < 0.05) && (pos().y() > 0)
     || cellZone(inlet)
    #};
    expression  "p";
};

exprFieldFunctionObject

Edited by Mark OLESEN

Merge request reports

Loading
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
Please register or sign in to reply