fvPatchFieldBase Class Reference

Template invariant parts for fvPatchField. More...

Inheritance diagram for fvPatchFieldBase:

Public Member Functions

void setUpdated (bool state) noexcept
 Set updated state. More...
 
void setManipulated (bool state) noexcept
 Set matrix manipulated state. More...
 
 TypeName ("fvPatchField")
 Runtime type information. More...
 
 fvPatchFieldBase (const fvPatch &p)
 Construct from patch. More...
 
 fvPatchFieldBase (const fvPatch &p, const word &patchType)
 Construct from patch and patch type. More...
 
 fvPatchFieldBase (const fvPatch &p, const dictionary &dict)
 Construct from patch and dictionary. More...
 
 fvPatchFieldBase (const fvPatchFieldBase &rhs, const fvPatch &p)
 Copy construct with new patch. More...
 
 fvPatchFieldBase (const fvPatchFieldBase &rhs)
 Copy construct. More...
 
virtual ~fvPatchFieldBase ()=default
 Destructor. More...
 
virtual bool assignable () const
 True if the value of the patch field is altered by assignment. More...
 
virtual bool fixesValue () const
 True if the patch field fixes a value. More...
 
virtual bool coupled () const
 True if the patch field is coupled. More...
 
const objectRegistrydb () const
 The associated objectRegistry. More...
 
const fvPatchpatch () const noexcept
 Return the patch. More...
 
const wordpatchType () const noexcept
 The optional patch type. More...
 
wordpatchType () noexcept
 The optional patch type. More...
 
bool updated () const noexcept
 True if the boundary condition has already been updated. More...
 
bool manipulatedMatrix () const noexcept
 True if the matrix has already been manipulated. More...
 
bool useImplicit () const noexcept
 Use implicit formulation for coupled patches only. More...
 
bool useImplicit (bool on) noexcept
 Set useImplicit on/off. More...
 
void checkPatch (const fvPatchFieldBase &rhs) const
 Check that patches are identical. More...
 

Static Public Member Functions

static const wordemptyType () noexcept
 The type name for empty patch fields. More...
 
static const wordcalculatedType () noexcept
 The type name for calculated patch fields. More...
 
static const wordextrapolatedCalculatedType () noexcept
 The type name for extrapolatedCalculated patch fields combines zero-gradient and calculated. More...
 
static const wordzeroGradientType () noexcept
 The type name for zeroGradient patch fields. More...
 

Static Public Attributes

static int disallowGenericPatchField
 Debug switch to disallow the use of generic fvPatchField. More...
 

Protected Member Functions

virtual void readDict (const dictionary &dict)
 Read dictionary entries. More...
 

Detailed Description

Template invariant parts for fvPatchField.

Definition at line 77 of file fvPatchField.H.

Constructor & Destructor Documentation

◆ fvPatchFieldBase() [1/5]

fvPatchFieldBase ( const fvPatch p)
explicit

Construct from patch.

Definition at line 39 of file fvPatchFieldBase.C.

◆ fvPatchFieldBase() [2/5]

fvPatchFieldBase ( const fvPatch p,
const word patchType 
)
explicit

Construct from patch and patch type.

Definition at line 50 of file fvPatchFieldBase.C.

◆ fvPatchFieldBase() [3/5]

fvPatchFieldBase ( const fvPatch p,
const dictionary dict 
)

Construct from patch and dictionary.

Definition at line 62 of file fvPatchFieldBase.C.

References dict, and fvPatchFieldBase::readDict().

Here is the call graph for this function:

◆ fvPatchFieldBase() [4/5]

fvPatchFieldBase ( const fvPatchFieldBase rhs,
const fvPatch p 
)

Copy construct with new patch.

Definition at line 74 of file fvPatchFieldBase.C.

◆ fvPatchFieldBase() [5/5]

Copy construct.

Definition at line 87 of file fvPatchFieldBase.C.

◆ ~fvPatchFieldBase()

virtual ~fvPatchFieldBase ( )
virtualdefault

Destructor.

Member Function Documentation

◆ readDict()

void readDict ( const dictionary dict)
protectedvirtual

Read dictionary entries.

Useful when initially constructed without a dictionary

Definition at line 99 of file fvPatchFieldBase.C.

References dict, keyType::LITERAL, and dictionary::readIfPresent().

Referenced by fvPatchFieldBase::fvPatchFieldBase().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ setUpdated()

void setUpdated ( bool  state)
inlinenoexcept

Set updated state.

Definition at line 130 of file fvPatchField.H.

◆ setManipulated()

void setManipulated ( bool  state)
inlinenoexcept

Set matrix manipulated state.

Definition at line 138 of file fvPatchField.H.

◆ TypeName()

TypeName ( "fvPatchField"  )

Runtime type information.

◆ emptyType()

static const word& emptyType ( )
inlinestaticnoexcept

The type name for empty patch fields.

Definition at line 196 of file fvPatchField.H.

References Foam::fieldTypes::emptyType.

◆ calculatedType()

◆ extrapolatedCalculatedType()

static const word& extrapolatedCalculatedType ( )
inlinestaticnoexcept

◆ zeroGradientType()

◆ assignable()

◆ fixesValue()

◆ coupled()

◆ db()

◆ patch()

◆ patchType() [1/2]

const word& patchType ( ) const
inlinenoexcept

The optional patch type.

Definition at line 277 of file fvPatchField.H.

Referenced by uniformInletOutletFvPatchField< Type >::uniformInletOutletFvPatchField().

Here is the caller graph for this function:

◆ patchType() [2/2]

word& patchType ( )
inlinenoexcept

The optional patch type.

Definition at line 285 of file fvPatchField.H.

◆ updated()

◆ manipulatedMatrix()

bool manipulatedMatrix ( ) const
inlinenoexcept

True if the matrix has already been manipulated.

Definition at line 304 of file fvPatchField.H.

◆ useImplicit() [1/2]

bool useImplicit ( ) const
inlinenoexcept

Use implicit formulation for coupled patches only.

Definition at line 312 of file fvPatchField.H.

Referenced by lduPrimitiveMeshAssembly::update().

Here is the caller graph for this function:

◆ useImplicit() [2/2]

bool useImplicit ( bool  on)
inlinenoexcept

Set useImplicit on/off.

Returns
old value

Definition at line 322 of file fvPatchField.H.

◆ checkPatch()

void checkPatch ( const fvPatchFieldBase rhs) const

Check that patches are identical.

Definition at line 112 of file fvPatchFieldBase.C.

References Foam::abort(), Foam::FatalError, and FatalErrorInFunction.

Here is the call graph for this function:

Member Data Documentation

◆ disallowGenericPatchField

int disallowGenericPatchField
static

Debug switch to disallow the use of generic fvPatchField.

Definition at line 149 of file fvPatchField.H.


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