faPatchFieldBase Class Reference

Template invariant parts for faPatchField. More...

Inheritance diagram for faPatchFieldBase:

Public Member Functions

 TypeName ("faPatchField")
 Runtime type information. More...
 
 faPatchFieldBase (const faPatch &p)
 Construct from patch. More...
 
 faPatchFieldBase (const faPatch &p, const word &patchType)
 Construct from patch and patch type. More...
 
 faPatchFieldBase (const faPatch &p, const dictionary &dict)
 Construct from patch and dictionary. More...
 
 faPatchFieldBase (const faPatchFieldBase &rhs, const faPatch &p)
 Copy construct with new patch. More...
 
 faPatchFieldBase (const faPatchFieldBase &rhs)
 Copy construct. More...
 
virtual ~faPatchFieldBase ()=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. More...
 
void setUpdated (bool state) noexcept
 Set updated state. More...
 
bool manipulatedMatrix () const noexcept
 True if the matrix has already been manipulated. Currently always false for faPatchField. More...
 
void setManipulated (bool state) noexcept
 Set matrix manipulated state. Currently a no-op for faPatchField. More...
 
void checkPatch (const faPatchFieldBase &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 const wordzeroValueType () noexcept
 The type name for zeroValue patch fields. More...
 

Static Public Attributes

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

Protected Member Functions

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

Detailed Description

Template invariant parts for faPatchField.

Definition at line 77 of file faPatchField.H.

Constructor & Destructor Documentation

◆ faPatchFieldBase() [1/5]

faPatchFieldBase ( const faPatch p)
explicit

Construct from patch.

◆ faPatchFieldBase() [2/5]

faPatchFieldBase ( const faPatch p,
const word patchType 
)
explicit

Construct from patch and patch type.

◆ faPatchFieldBase() [3/5]

faPatchFieldBase ( const faPatch p,
const dictionary dict 
)

Construct from patch and dictionary.

◆ faPatchFieldBase() [4/5]

faPatchFieldBase ( const faPatchFieldBase rhs,
const faPatch p 
)

Copy construct with new patch.

◆ faPatchFieldBase() [5/5]

Copy construct.

◆ ~faPatchFieldBase()

virtual ~faPatchFieldBase ( )
virtualdefault

Destructor.

Member Function Documentation

◆ readDict()

virtual void readDict ( const dictionary dict)
protectedvirtual

Read dictionary entries.

Useful when initially constructed without a dictionary

◆ TypeName()

TypeName ( "faPatchField"  )

Runtime type information.

◆ emptyType()

static const word& emptyType ( )
inlinestaticnoexcept

The type name for empty patch fields.

Definition at line 166 of file faPatchField.H.

References Foam::fieldTypes::emptyType.

◆ calculatedType()

static const word& calculatedType ( )
inlinestaticnoexcept

The type name for calculated patch fields.

Definition at line 174 of file faPatchField.H.

References Foam::fieldTypes::calculatedType.

Referenced by EulerFaD2dt2Scheme< Type >::facD2dt2(), EulerFaDdtScheme< Type >::facDdt(), backwardFaDdtScheme< Type >::facDdt(), and boundedBackwardFaDdtScheme::facDdt().

Here is the caller graph for this function:

◆ extrapolatedCalculatedType()

static const word& extrapolatedCalculatedType ( )
inlinestaticnoexcept

The type name for extrapolatedCalculated patch fields combines zero-gradient and calculated.

Definition at line 183 of file faPatchField.H.

References Foam::fieldTypes::extrapolatedCalculatedType.

Referenced by faMatrix< Type >::A(), and faMatrix< Type >::H().

Here is the caller graph for this function:

◆ zeroGradientType()

static const word& zeroGradientType ( )
inlinestaticnoexcept

The type name for zeroGradient patch fields.

Definition at line 191 of file faPatchField.H.

References Foam::fieldTypes::zeroGradientType.

Referenced by thermalShell::Cp(), Foam::fac::edgeIntegrate(), Foam::fac::edgeSum(), surfaceCourantNumber::execute(), thermalShell::kappa(), KirchhoffShell::rho(), thermalShell::rho(), and sensitivitySurface::smoothSensitivities().

Here is the caller graph for this function:

◆ zeroValueType()

static const word& zeroValueType ( )
inlinestaticnoexcept

The type name for zeroValue patch fields.

Definition at line 199 of file faPatchField.H.

References Foam::fieldTypes::zeroValueType.

◆ 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 mixedFaPatchField< Type >, slicedFaPatchField< Type >, fixedValueFaPatchField< Type >, zeroValueFaPatchField< Type >, calculatedFaPatchField< Type >, and fixedValueOutflowFaPatchField< Type >.

Definition at line 215 of file faPatchField.H.

◆ coupled()

virtual bool coupled ( ) const
inlinevirtual

True if the patch field is coupled.

Reimplemented in processorFaPatchField< Type >, and coupledFaPatchField< Type >.

Definition at line 223 of file faPatchField.H.

Referenced by faMatrix< Type >::addBoundarySource(), and faMatrix< Type >::relax().

Here is the caller graph for this function:

◆ db()

const objectRegistry& db ( ) const

The associated objectRegistry.

◆ patch()

const faPatch& patch ( ) const
inlinenoexcept

Return the patch.

Definition at line 239 of file faPatchField.H.

◆ patchType() [1/2]

const word& patchType ( ) const
inlinenoexcept

The optional patch type.

Definition at line 247 of file faPatchField.H.

◆ patchType() [2/2]

word& patchType ( )
inlinenoexcept

The optional patch type.

Definition at line 255 of file faPatchField.H.

◆ constraintOverride()

virtual bool constraintOverride ( ) const
inlinevirtual

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

Definition at line 263 of file faPatchField.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.

Definition at line 274 of file faPatchField.H.

◆ setUpdated()

void setUpdated ( bool  state)
inlinenoexcept

Set updated state.

Definition at line 282 of file faPatchField.H.

◆ manipulatedMatrix()

bool manipulatedMatrix ( ) const
inlinenoexcept

True if the matrix has already been manipulated. Currently always false for faPatchField.

Definition at line 291 of file faPatchField.H.

◆ setManipulated()

void setManipulated ( bool  state)
inlinenoexcept

Set matrix manipulated state. Currently a no-op for faPatchField.

Definition at line 299 of file faPatchField.H.

◆ checkPatch()

void checkPatch ( const faPatchFieldBase rhs) const

Check that patches are identical.

Member Data Documentation

◆ disallowGenericPatchField

int disallowGenericPatchField
static

Debug switch to disallow the use of generic faPatchField.

Definition at line 119 of file faPatchField.H.


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