-
- Downloads
ENH: add exprField function object
- provides a simple means of defining/modifying fields. For example, ``` <name1> { type exprField; libs (fieldFunctionObjects); field pTotal; expression "p + 0.5*(rho*magSqr(U))"; dimensions [ Pa ]; } ``` It is is also possible to modify an existing field. For example, to modify the previous one. ``` <name2> { type exprField; libs (fieldFunctionObjects); field pTotal; action modify; // Static pressure only in these regions fieldMask #{ (mag(pos()) < 0.05) && (pos().y() > 0) || cellZone(inlet) #}; expression "p"; } ``` To use as a simple post-process calculator, simply avoid storing the result and only generate on write: ``` <name2> { store false; executionControl none; writeControl writeTime; ... } ```
Showing
- src/functionObjects/field/Make/files 2 additions, 0 deletionssrc/functionObjects/field/Make/files
- src/functionObjects/field/expressions/fvExpressionField.C 696 additions, 0 deletionssrc/functionObjects/field/expressions/fvExpressionField.C
- src/functionObjects/field/expressions/fvExpressionField.H 248 additions, 0 deletionssrc/functionObjects/field/expressions/fvExpressionField.H
- tutorials/compressible/rhoSimpleFoam/squareBend/system/derivedFields 38 additions, 0 deletions...ompressible/rhoSimpleFoam/squareBend/system/derivedFields
- tutorials/compressible/rhoSimpleFoam/squareBend/system/sampling 2 additions, 2 deletions...als/compressible/rhoSimpleFoam/squareBend/system/sampling
Loading
Please register or sign in to comment