fvsPatchFieldBase Class Reference

Template invariant parts for fvsPatchField. More...

Inheritance diagram for fvsPatchFieldBase:

Public Member Functions

 TypeName ("fvsPatchField")
 Runtime type information. More...
 
 fvsPatchFieldBase (const fvPatch &p)
 Construct from patch. More...
 
 fvsPatchFieldBase (const fvPatch &p, const dictionary &dict)
 Construct from patch and dictionary (unused) More...
 
 fvsPatchFieldBase (const fvsPatchFieldBase &rhs, const fvPatch &p)
 Copy construct with new patch. More...
 
 fvsPatchFieldBase (const fvsPatchFieldBase &rhs)
 Copy construct. More...
 
virtual ~fvsPatchFieldBase ()=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 fvPatchpatch () const noexcept
 Return the patch. More...
 
bool updated () const noexcept
 True if the boundary condition has already been updated. This is always true for fvsPatchField. More...
 
bool manipulatedMatrix () const noexcept
 True if the matrix has already been manipulated. More...
 
void checkPatch (const fvsPatchFieldBase &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 fvsPatchField. More...
 

Protected Member Functions

virtual void readDict (const dictionary &dict)
 Read dictionary entries. More...
 
void setUpdated (bool state) noexcept
 Set updated state. This is a no-op for fvsPatchField. More...
 
void setManipulated (bool state) noexcept
 Set matrix manipulated state. This is a no-op for fvsPatchField. More...
 

Detailed Description

Template invariant parts for fvsPatchField.

Definition at line 74 of file fvsPatchField.H.

Constructor & Destructor Documentation

◆ fvsPatchFieldBase() [1/4]

fvsPatchFieldBase ( const fvPatch p)
explicit

Construct from patch.

Definition at line 39 of file fvsPatchFieldBase.C.

◆ fvsPatchFieldBase() [2/4]

fvsPatchFieldBase ( const fvPatch p,
const dictionary dict 
)

Construct from patch and dictionary (unused)

Definition at line 46 of file fvsPatchFieldBase.C.

◆ fvsPatchFieldBase() [3/4]

fvsPatchFieldBase ( const fvsPatchFieldBase rhs,
const fvPatch p 
)

Copy construct with new patch.

Definition at line 56 of file fvsPatchFieldBase.C.

◆ fvsPatchFieldBase() [4/4]

Copy construct.

Definition at line 65 of file fvsPatchFieldBase.C.

◆ ~fvsPatchFieldBase()

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

◆ setUpdated()

void setUpdated ( bool  state)
inlineprotectednoexcept

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

Definition at line 97 of file fvsPatchField.H.

◆ setManipulated()

void setManipulated ( bool  state)
inlineprotectednoexcept

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

Definition at line 103 of file fvsPatchField.H.

◆ TypeName()

TypeName ( "fvsPatchField"  )

Runtime type information.

◆ emptyType()

static const word& emptyType ( )
inlinestaticnoexcept

The type name for empty patch fields.

Definition at line 154 of file fvsPatchField.H.

References Foam::fieldTypes::emptyType.

◆ calculatedType()

static const word& calculatedType ( )
inlinestaticnoexcept

The type name for calculated patch fields.

Definition at line 162 of file fvsPatchField.H.

References Foam::fieldTypes::calculatedType.

Referenced by meshRefinement::appendPatch().

Here is the caller graph for this function:

◆ 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 slicedFvsPatchField< Type >, fixedValueFvsPatchField< Type >, and calculatedFvsPatchField< Type >.

Definition at line 178 of file fvsPatchField.H.

◆ coupled()

◆ db()

const Foam::objectRegistry & db ( ) const

The associated objectRegistry.

Definition at line 77 of file fvsPatchFieldBase.C.

References objectRegistry::thisDb().

Here is the call graph for this function:

◆ patch()

◆ updated()

bool updated ( ) const
inlinenoexcept

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

Definition at line 214 of file fvsPatchField.H.

◆ manipulatedMatrix()

bool manipulatedMatrix ( ) const
inlinenoexcept

True if the matrix has already been manipulated.

Definition at line 222 of file fvsPatchField.H.

◆ checkPatch()

void checkPatch ( const fvsPatchFieldBase rhs) const

Check that patches are identical.

Definition at line 83 of file fvsPatchFieldBase.C.

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

Referenced by fvsPatchField< Type >::check(), fvsPatchField< Type >::operator*=(), fvsPatchField< Type >::operator+=(), fvsPatchField< Type >::operator-=(), fvsPatchField< Type >::operator/=(), and fvsPatchField< Type >::operator=().

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

Member Data Documentation

◆ disallowGenericPatchField

int disallowGenericPatchField
static

Debug switch to disallow the use of generic fvsPatchField.

Definition at line 112 of file fvsPatchField.H.


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