patchExprFieldBase Class Reference

Base class for managing patches with expressions. The expected input supports values, gradients and mixed conditions. More...

Inheritance diagram for patchExprFieldBase:
[legend]
Collaboration diagram for patchExprFieldBase:
[legend]

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 fvPatchgetFvPatch (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_
 

Detailed Description

Base class for managing patches with expressions. The expected input supports values, gradients and mixed conditions.

Usage
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
Source files

Definition at line 88 of file patchExprFieldBase.H.

Constructor & Destructor Documentation

◆ patchExprFieldBase() [1/4]

Null constructor.

Definition at line 58 of file patchExprFieldBase.C.

◆ patchExprFieldBase() [2/4]

patchExprFieldBase ( bool  allowGradient)
explicit

Construct with specified gradient handling.

Definition at line 65 of file patchExprFieldBase.C.

◆ patchExprFieldBase() [3/4]

patchExprFieldBase ( const dictionary dict,
bool  allowGradient = false,
bool  isPointVal = false 
)
explicit

Construct from dictionary.

Definition at line 79 of file patchExprFieldBase.C.

References dict, Foam::Info, and Foam::nl.

◆ patchExprFieldBase() [4/4]

Copy constructor.

Definition at line 150 of file patchExprFieldBase.C.

Member Function Documentation

◆ getFvPatch()

const Foam::fvPatch & getFvPatch ( const facePointPatch fp)
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.

Here is the call graph for this function:

◆ write()

void write ( Ostream os) const

Write.

Definition at line 165 of file patchExprFieldBase.C.

References Ostream::writeEntry(), and Ostream::writeEntryIfDifferent().

Here is the call graph for this function:

Member Data Documentation

◆ debug_

bool debug_
protected

Definition at line 94 of file patchExprFieldBase.H.

◆ allowGradient_

bool allowGradient_
protected

Definition at line 95 of file patchExprFieldBase.H.

◆ evalOnConstruct_

bool evalOnConstruct_
protected

Slightly dodgy concept here.

Definition at line 98 of file patchExprFieldBase.H.

◆ valueExpr_

expressions::exprString valueExpr_
protected

Definition at line 101 of file patchExprFieldBase.H.

◆ gradExpr_

expressions::exprString gradExpr_
protected

Definition at line 102 of file patchExprFieldBase.H.

◆ fracExpr_

expressions::exprString fracExpr_
protected

Definition at line 103 of file patchExprFieldBase.H.


The documentation for this class was generated from the following files: