An abstract base class for implicitly-coupled interface fields e.g. processor and cyclic patch fields. More...
Public Member Functions | |
TypeName ("lduInterfaceField") | |
Runtime type information. More... | |
lduInterfaceField (const lduInterfaceField &)=delete | |
No copy construct. More... | |
void | operator= (const lduInterfaceField &)=delete |
No copy assignment. More... | |
lduInterfaceField (const lduInterface &patch) | |
Construct given coupled patch. More... | |
virtual | ~lduInterfaceField ()=default |
Destructor. More... | |
const lduInterface & | interface () const noexcept |
Return the interface. More... | |
virtual const word & | interfaceFieldType () const |
Return the interface type. More... | |
virtual bool | ready () const |
Are all (receive) data available? More... | |
bool | updatedMatrix () const noexcept |
Whether matrix has been updated. More... | |
bool | updatedMatrix (bool flag) const noexcept |
Set matrix as update-to-date, return the previous value. More... | |
virtual void | initInterfaceMatrixUpdate (solveScalarField &result, const bool add, const lduAddressing &, const label interfacei, const solveScalarField &psiInternal, const scalarField &coeffs, const direction cmpt, const Pstream::commsTypes commsType) const |
Initialise neighbour matrix update. Add/subtract coupled contributions to matrix. More... | |
virtual void | updateInterfaceMatrix (solveScalarField &result, const bool add, const lduAddressing &, const label interfacei, const solveScalarField &psiInternal, const scalarField &coeffs, const direction cmpt, const Pstream::commsTypes commsType) const =0 |
Update result field based on interface functionality. Add/subtract coupled contributions to matrix. More... | |
template<class Type > | |
void | addToInternalField (Field< Type > &result, const bool add, const labelUList &faceCells, const scalarField &coeffs, const Field< Type > &vals) const |
Add/subtract weighted contributions to internal field. More... | |
bool & | updatedMatrix () noexcept |
Adjust whether matrix has been updated. More... | |
An abstract base class for implicitly-coupled interface fields e.g. processor and cyclic patch fields.
Definition at line 55 of file lduInterfaceField.H.
|
delete |
No copy construct.
|
inlineexplicit |
Construct given coupled patch.
Definition at line 97 of file lduInterfaceField.H.
|
virtualdefault |
Destructor.
TypeName | ( | "lduInterfaceField" | ) |
Runtime type information.
|
delete |
No copy assignment.
|
inlinenoexcept |
Return the interface.
Definition at line 115 of file lduInterfaceField.H.
|
inlinevirtual |
Return the interface type.
Reimplemented in jumpCyclicAMIFvPatchField< Type >, jumpCyclicAMIFvPatchField< scalar >, jumpCyclicFvPatchField< Type >, jumpCyclicFvPatchField< scalar >, and jumpCyclicFvPatchField< vector >.
Definition at line 123 of file lduInterfaceField.H.
References Foam::type().
Referenced by GAMGInterfaceField::New().
|
inlinevirtual |
Are all (receive) data available?
Reimplemented in cyclicAMIFvPatchField< Type >, cyclicAMIFvPatchField< scalar >, cyclicACMIFvPatchField< Type >, processorFvPatchField< Type >, processorFaPatchField< Type >, cyclicACMIGAMGInterfaceField, cyclicAMIGAMGInterfaceField, calculatedProcessorFvPatchField< Type >, processorGAMGInterfaceField, and lduCalculatedProcessorField< Type >.
Definition at line 134 of file lduInterfaceField.H.
|
inlinenoexcept |
Whether matrix has been updated.
Definition at line 142 of file lduInterfaceField.H.
|
inlinenoexcept |
Set matrix as update-to-date, return the previous value.
Definition at line 150 of file lduInterfaceField.H.
|
inlinevirtual |
Initialise neighbour matrix update. Add/subtract coupled contributions to matrix.
Reimplemented in cyclicAMIFvPatchField< Type >, cyclicAMIFvPatchField< scalar >, oversetFvPatchField< Type >, cyclicACMIFvPatchField< Type >, processorFvPatchField< Type >, processorFaPatchField< Type >, calculatedProcessorFvPatchField< Type >, cyclicACMIGAMGInterfaceField, cyclicAMIGAMGInterfaceField, processorGAMGInterfaceField, calculatedProcessorGAMGInterfaceField, and lduCalculatedProcessorField< Type >.
Definition at line 165 of file lduInterfaceField.H.
|
pure virtual |
Update result field based on interface functionality. Add/subtract coupled contributions to matrix.
Implemented in cyclicAMIFvPatchField< Type >, cyclicAMIFvPatchField< scalar >, cyclicACMIFvPatchField< Type >, coupledFvPatchField< Type >, coupledFvPatchField< scalar >, coupledFvPatchField< vector >, processorFvPatchField< Type >, oversetFvPatchField< Type >, processorFaPatchField< Type >, coupledFaPatchField< Type >, calculatedProcessorFvPatchField< Type >, cyclicACMIGAMGInterfaceField, cyclicAMIGAMGInterfaceField, cyclicGAMGInterfaceField, processorGAMGInterfaceField, cyclicFvPatchField< Type >, calculatedProcessorGAMGInterfaceField, cyclicFvPatchField< scalar >, cyclicFvPatchField< vector >, jumpCyclicFvPatchField< Type >, jumpCyclicFvPatchField< scalar >, jumpCyclicFvPatchField< vector >, cyclicFaPatchField< Type >, jumpCyclicAMIFvPatchField< Type >, jumpCyclicAMIFvPatchField< scalar >, lduCalculatedProcessorField< Type >, jumpCyclicFvPatchField< Type >, jumpCyclicFvPatchField< scalar >, jumpCyclicFvPatchField< vector >, jumpCyclicAMIFvPatchField< Type >, jumpCyclicAMIFvPatchField< scalar >, jumpCyclicFvPatchField< Type >, jumpCyclicFvPatchField< scalar >, jumpCyclicFvPatchField< vector >, oversetGAMGInterfaceField, jumpCyclicFvPatchField< Type >, jumpCyclicFvPatchField< scalar >, jumpCyclicFvPatchField< vector >, jumpCyclicAMIFvPatchField< Type >, jumpCyclicAMIFvPatchField< scalar >, jumpCyclicFvPatchField< Type >, jumpCyclicFvPatchField< scalar >, and jumpCyclicFvPatchField< vector >.
Referenced by lduMatrix::updateMatrixInterfaces().
void addToInternalField | ( | Field< Type > & | result, |
const bool | add, | ||
const labelUList & | faceCells, | ||
const scalarField & | coeffs, | ||
const Field< Type > & | vals | ||
) | const |
Add/subtract weighted contributions to internal field.
Definition at line 25 of file lduInterfaceFieldTemplates.C.
References Foam::add(), and forAll.
|
inlinenoexcept |
Adjust whether matrix has been updated.
Definition at line 214 of file lduInterfaceField.H.