Base class for managing patches with expressions. The expected input supports values, gradients and mixed conditions. More...
Public Member Functions | |
patchExprFieldBase () | |
Null constructor. More... | |
patchExprFieldBase (bool allowGradient) | |
Construct with specified gradient handling. More... | |
patchExprFieldBase (const dictionary &dict, bool allowGradient=false, bool isPointVal=false) | |
Construct from dictionary. More... | |
patchExprFieldBase (const patchExprFieldBase &rhs) | |
Copy constructor. More... | |
void | write (Ostream &os) const |
Write. More... | |
Static Public Member Functions | |
static const fvPatch & | getFvPatch (const facePointPatch &fp) |
Find (guess) fvPatch from a pointPatch. More... | |
Protected Attributes | |
bool | debug_ |
bool | allowGradient_ |
bool | evalOnConstruct_ |
Slightly dodgy concept here. More... | |
expressions::exprString | valueExpr_ |
expressions::exprString | gradExpr_ |
expressions::exprString | fracExpr_ |
Base class for managing patches with expressions. The expected input supports values, gradients and mixed conditions.
Property | Description | Required | Default |
---|---|---|---|
valueExpr | expression for fixed value | no | 0 |
gradientExpr | expression for patch normal gradient | no | 0 |
fractionExpr | expression for value fraction weight | no | 1 |
Definition at line 88 of file patchExprFieldBase.H.
Null constructor.
Definition at line 58 of file patchExprFieldBase.C.
|
explicit |
Construct with specified gradient handling.
Definition at line 65 of file patchExprFieldBase.C.
|
explicit |
Construct from dictionary.
Definition at line 79 of file patchExprFieldBase.C.
References dict, Foam::Info, and Foam::nl.
patchExprFieldBase | ( | const patchExprFieldBase & | rhs | ) |
Copy constructor.
Definition at line 150 of file patchExprFieldBase.C.
|
static |
Find (guess) fvPatch from a pointPatch.
Definition at line 38 of file patchExprFieldBase.C.
References fvMesh::boundary(), pointPatch::boundaryMesh(), Foam::endl(), Foam::exit(), Foam::FatalError, FatalErrorInFunction, facePointPatch::index(), pointBoundaryMesh::mesh(), MeshObject< Mesh, MeshObjectType, Type >::mesh(), and Foam::nl.
void write | ( | Ostream & | os | ) | const |
Write.
Definition at line 165 of file patchExprFieldBase.C.
References Ostream::writeEntry(), and Ostream::writeEntryIfDifferent().
|
protected |
Definition at line 94 of file patchExprFieldBase.H.
|
protected |
Definition at line 95 of file patchExprFieldBase.H.
|
protected |
Slightly dodgy concept here.
Definition at line 98 of file patchExprFieldBase.H.
|
protected |
Definition at line 101 of file patchExprFieldBase.H.
|
protected |
Definition at line 102 of file patchExprFieldBase.H.
|
protected |
Definition at line 103 of file patchExprFieldBase.H.