faePatchFieldBase Class Reference

Template invariant parts for faePatchField. More...

Inheritance diagram for faePatchFieldBase:

Public Member Functions

 TypeName ("faePatchField")
 Runtime type information. More...
 
 faePatchFieldBase (const faPatch &p)
 Construct from patch. More...
 
 faePatchFieldBase (const faPatch &p, const word &patchType)
 Construct from patch and patch type. More...
 
 faePatchFieldBase (const faPatch &p, const dictionary &dict)
 Construct from patch and dictionary. More...
 
 faePatchFieldBase (const faePatchFieldBase &rhs, const faPatch &p)
 Copy construct with new patch. More...
 
 faePatchFieldBase (const faePatchFieldBase &rhs)
 Copy construct. More...
 
virtual ~faePatchFieldBase ()=default
 Destructor. 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 faPatchpatch () const noexcept
 Return the patch. More...
 
const wordpatchType () const noexcept
 The optional patch type. More...
 
wordpatchType () noexcept
 The optional patch type. More...
 
virtual bool constraintOverride () const
 True if the type does not correspond to the constraint type. More...
 
bool updated () const noexcept
 True if the boundary condition has already been updated. This is always true for faePatchField. More...
 
void setUpdated (bool state) noexcept
 Set updated state. This is a no-op for faePatchField. More...
 
bool manipulatedMatrix () const noexcept
 True if the matrix has already been manipulated. Always false for faePatchField. More...
 
void setManipulated (bool state) noexcept
 Set matrix manipulated state. This is a no-op for faePatchField. More...
 
void checkPatch (const faePatchFieldBase &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 Public Attributes

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

Protected Member Functions

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

Detailed Description

Template invariant parts for faePatchField.

Definition at line 76 of file faePatchField.H.

Constructor & Destructor Documentation

◆ faePatchFieldBase() [1/5]

faePatchFieldBase ( const faPatch p)
explicit

Construct from patch.

Definition at line 41 of file faePatchFieldBase.C.

◆ faePatchFieldBase() [2/5]

faePatchFieldBase ( const faPatch p,
const word patchType 
)
explicit

Construct from patch and patch type.

Definition at line 49 of file faePatchFieldBase.C.

◆ faePatchFieldBase() [3/5]

faePatchFieldBase ( const faPatch p,
const dictionary dict 
)

Construct from patch and dictionary.

Definition at line 60 of file faePatchFieldBase.C.

References dict, and faePatchFieldBase::readDict().

Here is the call graph for this function:

◆ faePatchFieldBase() [4/5]

faePatchFieldBase ( const faePatchFieldBase rhs,
const faPatch p 
)

Copy construct with new patch.

Definition at line 72 of file faePatchFieldBase.C.

◆ faePatchFieldBase() [5/5]

Copy construct.

Definition at line 82 of file faePatchFieldBase.C.

◆ ~faePatchFieldBase()

virtual ~faePatchFieldBase ( )
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 91 of file faePatchFieldBase.C.

Referenced by faePatchFieldBase::faePatchFieldBase().

Here is the caller graph for this function:

◆ TypeName()

TypeName ( "faePatchField"  )

Runtime type information.

◆ emptyType()

static const word& emptyType ( )
inlinestaticnoexcept

The type name for empty patch fields.

Definition at line 159 of file faePatchField.H.

References Foam::fieldTypes::emptyType.

◆ calculatedType()

static const word& calculatedType ( )
inlinestaticnoexcept

The type name for calculated patch fields.

Definition at line 167 of file faePatchField.H.

References Foam::fieldTypes::calculatedType.

◆ fixesValue()

virtual bool fixesValue ( ) const
inlinevirtual

True if the patch field fixes a value.

Needed to check if a level has to be specified while solving Poissons equations.

Reimplemented in slicedFaePatchField< Type >, fixedValueFaePatchField< Type >, and calculatedFaePatchField< Type >.

Definition at line 183 of file faePatchField.H.

◆ coupled()

virtual bool coupled ( ) const
inlinevirtual

True if the patch field is coupled.

Reimplemented in processorFaePatchField< Type >, and coupledFaePatchField< Type >.

Definition at line 191 of file faePatchField.H.

◆ db()

const Foam::objectRegistry & db ( ) const

The associated objectRegistry.

Definition at line 97 of file faePatchFieldBase.C.

References objectRegistry::thisDb().

Here is the call graph for this function:

◆ patch()

const faPatch& patch ( ) const
inlinenoexcept

Return the patch.

Definition at line 207 of file faePatchField.H.

Referenced by faePatchField< Type >::NewCalculatedType().

Here is the caller graph for this function:

◆ patchType() [1/2]

const word& patchType ( ) const
inlinenoexcept

The optional patch type.

Definition at line 215 of file faePatchField.H.

◆ patchType() [2/2]

word& patchType ( )
inlinenoexcept

The optional patch type.

Definition at line 223 of file faePatchField.H.

◆ constraintOverride()

virtual bool constraintOverride ( ) const
inlinevirtual

True if the type does not correspond to the constraint type.

Definition at line 231 of file faePatchField.H.

References Foam::type().

Here is the call graph for this function:

◆ updated()

bool updated ( ) const
inlinenoexcept

True if the boundary condition has already been updated. This is always true for faePatchField.

Definition at line 243 of file faePatchField.H.

◆ setUpdated()

void setUpdated ( bool  state)
inlinenoexcept

Set updated state. This is a no-op for faePatchField.

Definition at line 251 of file faePatchField.H.

◆ manipulatedMatrix()

bool manipulatedMatrix ( ) const
inlinenoexcept

True if the matrix has already been manipulated. Always false for faePatchField.

Definition at line 258 of file faePatchField.H.

◆ setManipulated()

void setManipulated ( bool  state)
inlinenoexcept

Set matrix manipulated state. This is a no-op for faePatchField.

Definition at line 267 of file faePatchField.H.

◆ checkPatch()

void checkPatch ( const faePatchFieldBase rhs) const

Check that patches are identical.

Definition at line 103 of file faePatchFieldBase.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 faePatchField.

Definition at line 112 of file faePatchField.H.


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