Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
calculatedProcessorFvPatchField< Type > Class Template Reference

A processorFvPatchField type bypassing fvPatch. More...

Inheritance diagram for calculatedProcessorFvPatchField< Type >:
Inheritance graph
[legend]
Collaboration diagram for calculatedProcessorFvPatchField< Type >:
Collaboration graph
[legend]

Public Member Functions

 TypeName ("calculatedProcessor")
 
 calculatedProcessorFvPatchField (const lduInterface &interface, const fvPatch &, const DimensionedField< Type, volMesh > &)
 
 calculatedProcessorFvPatchField (const calculatedProcessorFvPatchField< Type > &)
 
virtual tmp< fvPatchField< Type > > clone () const
 
 calculatedProcessorFvPatchField (const calculatedProcessorFvPatchField< Type > &, const DimensionedField< Type, volMesh > &)
 
virtual tmp< fvPatchField< Type > > clone (const DimensionedField< Type, volMesh > &iF) const
 
virtual ~calculatedProcessorFvPatchField ()=default
 
virtual label comm () const
 
virtual int myProcNo () const
 
virtual int neighbProcNo () const
 
virtual bool doTransform () const
 
virtual const tensorFieldforwardT () const
 
virtual int rank () const
 
virtual bool coupled () const
 
virtual tmp< Field< Type > > patchNeighbourField () const
 
virtual bool ready () const
 
virtual void initEvaluate (const Pstream::commsTypes commsType)
 
virtual void evaluate (const Pstream::commsTypes commsType)
 
virtual void initInterfaceMatrixUpdate (solveScalarField &result, const bool add, const lduAddressing &lduAddr, const label patchId, const solveScalarField &psiInternal, const scalarField &coeffs, const direction cmpt, const Pstream::commsTypes commsType) const
 
virtual void updateInterfaceMatrix (solveScalarField &result, const bool add, const lduAddressing &lduAddr, const label patchId, const solveScalarField &psiInternal, const scalarField &coeffs, const direction cmpt, const Pstream::commsTypes commsType) const
 
virtual void initInterfaceMatrixUpdate (Field< Type > &result, const bool add, const lduAddressing &lduAddr, const label patchId, const Field< Type > &psiInternal, const scalarField &coeffs, const Pstream::commsTypes commsType) const
 
virtual void updateInterfaceMatrix (Field< Type > &result, const bool add, const lduAddressing &lduAddr, const label patchId, const Field< Type > &psiInternal, const scalarField &coeffs, const Pstream::commsTypes commsType) const
 
- Public Member Functions inherited from processorLduInterfaceField
 TypeName ("processorLduInterfaceField")
 
 processorLduInterfaceField ()=default
 
virtual ~processorLduInterfaceField ()=default
 
template<class Type >
void transformCoupleField (Field< Type > &f) const
 
void transformCoupleField (solveScalarField &f, const direction cmpt) const
 
- Public Member Functions inherited from coupledFvPatchField< Type >
 TypeName (coupledFvPatch::typeName_())
 
 coupledFvPatchField (const fvPatch &, const DimensionedField< Type, volMesh > &)
 
 coupledFvPatchField (const fvPatch &, const DimensionedField< Type, volMesh > &, const Field< Type > &)
 
 coupledFvPatchField (const fvPatch &, const DimensionedField< Type, volMesh > &, const dictionary &, const bool valueRequired=true)
 
 coupledFvPatchField (const coupledFvPatchField< Type > &, const fvPatch &, const DimensionedField< Type, volMesh > &, const fvPatchFieldMapper &)
 
 coupledFvPatchField (const coupledFvPatchField< Type > &)
 
 coupledFvPatchField (const coupledFvPatchField< Type > &, const DimensionedField< Type, volMesh > &)
 
virtual tmp< Field< Type > > snGrad (const scalarField &deltaCoeffs) const
 
virtual tmp< Field< Type > > snGrad () const
 
virtual tmp< Field< Type > > valueInternalCoeffs (const tmp< scalarField > &) const
 
virtual tmp< Field< Type > > valueBoundaryCoeffs (const tmp< scalarField > &) const
 
virtual tmp< Field< Type > > gradientInternalCoeffs (const scalarField &deltaCoeffs) const
 
virtual tmp< Field< Type > > gradientInternalCoeffs () const
 
virtual tmp< Field< Type > > gradientBoundaryCoeffs (const scalarField &deltaCoeffs) const
 
virtual tmp< Field< Type > > gradientBoundaryCoeffs () const
 
virtual void write (Ostream &) const
 
- Public Member Functions inherited from LduInterfaceField< Type >
 TypeName ("LduInterfaceField")
 
 LduInterfaceField (const lduInterface &patch)
 
virtual ~LduInterfaceField ()=default
 
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
 
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
 
- Public Member Functions inherited from lduInterfaceField
 TypeName ("lduInterfaceField")
 
 lduInterfaceField (const lduInterface &patch)
 
virtual ~lduInterfaceField ()=default
 
const lduInterfaceinterface () const
 
virtual const wordinterfaceFieldType () const
 
bool updatedMatrix () const
 
boolupdatedMatrix ()
 
template<class Type >
void addToInternalField (Field< Type > &result, const bool add, const labelUList &faceCells, const scalarField &coeffs, const Field< Type > &vals) const
 
- Public Member Functions inherited from fvPatchField< Type >
 TypeName ("fvPatchField")
 
 declareRunTimeSelectionTable (tmp, fvPatchField, patch,(const fvPatch &p, const DimensionedField< Type, volMesh > &iF),(p, iF))
 
 declareRunTimeSelectionTable (tmp, fvPatchField, patchMapper,(const fvPatchField< Type > &ptf, const fvPatch &p, const DimensionedField< Type, volMesh > &iF, const fvPatchFieldMapper &m),(dynamic_cast< const fvPatchFieldType & >(ptf), p, iF, m))
 
 declareRunTimeSelectionTable (tmp, fvPatchField, dictionary,(const fvPatch &p, const DimensionedField< Type, volMesh > &iF, const dictionary &dict),(p, iF, dict))
 
 fvPatchField (const fvPatch &, const DimensionedField< Type, volMesh > &)
 
 fvPatchField (const fvPatch &, const DimensionedField< Type, volMesh > &, const Type &value)
 
 fvPatchField (const fvPatch &, const DimensionedField< Type, volMesh > &, const word &patchType)
 
 fvPatchField (const fvPatch &, const DimensionedField< Type, volMesh > &, const Field< Type > &)
 
 fvPatchField (const fvPatch &, const DimensionedField< Type, volMesh > &, const dictionary &, const bool valueRequired=true)
 
 fvPatchField (const fvPatchField< Type > &, const fvPatch &, const DimensionedField< Type, volMesh > &, const fvPatchFieldMapper &)
 
 fvPatchField (const fvPatchField< Type > &)
 
 fvPatchField (const fvPatchField< Type > &, const DimensionedField< Type, volMesh > &)
 
virtual tmp< fvPatchField< Type > > clone () const
 
Foam::tmp< Foam::fvPatchField< Type > > NewCalculatedType (const fvPatch &p)
 
Foam::tmp< Foam::fvPatchField< Type > > NewCalculatedType (const fvPatchField< Type2 > &pf)
 
virtual ~fvPatchField ()=default
 
bool useImplicit () const noexcept
 
bool useImplicit (bool on) noexcept
 
virtual bool fixesValue () const
 
virtual bool assignable () const
 
virtual bool coupled () const
 
const objectRegistrydb () const
 
const fvPatchpatch () const
 
const DimensionedField< Type, volMesh > & internalField () const
 
const Field< Type > & primitiveField () const
 
const wordpatchType () const
 
wordpatchType ()
 
bool updated () const
 
bool manipulatedMatrix () const
 
virtual void autoMap (const fvPatchFieldMapper &)
 
virtual void rmap (const fvPatchField< Type > &, const labelList &)
 
virtual tmp< Field< Type > > snGrad () const
 
virtual void updateCoeffs ()
 
virtual void updateWeightedCoeffs (const scalarField &weights)
 
virtual tmp< Field< Type > > patchInternalField () const
 
virtual void patchInternalField (Field< Type > &) const
 
virtual tmp< Field< Type > > patchNeighbourField () const
 
virtual tmp< Field< Type > > valueInternalCoeffs (const tmp< Field< scalar >> &) const
 
virtual tmp< Field< Type > > valueBoundaryCoeffs (const tmp< Field< scalar >> &) const
 
virtual tmp< Field< Type > > gradientInternalCoeffs () const
 
virtual tmp< Field< Type > > gradientBoundaryCoeffs () const
 
virtual void manipulateMatrix (fvMatrix< Type > &matrix)
 
virtual void manipulateMatrix (fvMatrix< Type > &matrix, const scalarField &weights)
 
virtual void manipulateMatrix (fvMatrix< Type > &matrix, const label iMatrix, const direction cmp)
 
void check (const fvPatchField< Type > &) const
 
virtual void operator= (const UList< Type > &)
 
virtual void operator= (const fvPatchField< Type > &)
 
virtual void operator= (const Type &)
 
virtual void operator+= (const fvPatchField< Type > &)
 
virtual void operator+= (const Field< Type > &)
 
virtual void operator+= (const Type &)
 
virtual void operator-= (const fvPatchField< Type > &)
 
virtual void operator-= (const Field< Type > &)
 
virtual void operator-= (const Type &)
 
virtual void operator*= (const fvPatchField< scalar > &)
 
virtual void operator*= (const Field< scalar > &)
 
virtual void operator*= (const scalar)
 
virtual void operator/= (const fvPatchField< scalar > &)
 
virtual void operator/= (const Field< scalar > &)
 
virtual void operator/= (const scalar)
 
virtual void operator== (const fvPatchField< Type > &)
 
virtual void operator== (const Field< Type > &)
 
virtual void operator== (const Type &)
 

Protected Member Functions

void addToInternalField (solveScalarField &result, const bool add, const scalarField &coeffs, const solveScalarField &vals) const
 

Protected Attributes

const lduPrimitiveProcessorInterfaceprocInterface_
 
Field< Type > sendBuf_
 
Field< Type > receiveBuf_
 
solveScalarField scalarSendBuf_
 
solveScalarField scalarReceiveBuf_
 
label outstandingSendRequest_
 
label outstandingRecvRequest_
 

Additional Inherited Members

- Public Types inherited from fvPatchField< Type >
typedef fvPatch Patch
 
typedef calculatedFvPatchField< Type > Calculated
 
- Static Public Member Functions inherited from fvPatchField< Type >
static tmp< fvPatchField< Type > > New (const word &, const fvPatch &, const DimensionedField< Type, volMesh > &)
 
static tmp< fvPatchField< Type > > New (const word &, const word &actualPatchType, const fvPatch &, const DimensionedField< Type, volMesh > &)
 
static tmp< fvPatchField< Type > > New (const fvPatchField< Type > &, const fvPatch &, const DimensionedField< Type, volMesh > &, const fvPatchFieldMapper &)
 
static tmp< fvPatchField< Type > > New (const fvPatch &, const DimensionedField< Type, volMesh > &, const dictionary &)
 
static tmp< fvPatchField< Type > > NewCalculatedType (const fvPatch &)
 
static tmp< fvPatchField< Type > > NewCalculatedType (const fvPatchField< Type2 > &)
 
static const wordcalculatedType ()
 
- Static Public Attributes inherited from fvPatchField< Type >
static int disallowGenericFvPatchField
 

Detailed Description

template<class Type>
class Foam::calculatedProcessorFvPatchField< Type >

A processorFvPatchField type bypassing fvPatch.

Used to temporarily add updateInterfaceMatrix capabilities to a matrix during overset solving. Supplies:

Source files

Definition at line 59 of file calculatedProcessorFvPatchField.H.

Constructor & Destructor Documentation

◆ calculatedProcessorFvPatchField() [1/3]

calculatedProcessorFvPatchField ( const lduInterface interface,
const fvPatch p,
const DimensionedField< Type, volMesh > &  iF 
)

Definition at line 27 of file calculatedProcessorFvPatchField.C.

◆ calculatedProcessorFvPatchField() [2/3]

Definition at line 46 of file calculatedProcessorFvPatchField.C.

◆ calculatedProcessorFvPatchField() [3/3]

Definition at line 64 of file calculatedProcessorFvPatchField.C.

◆ ~calculatedProcessorFvPatchField()

virtual ~calculatedProcessorFvPatchField ( )
virtualdefault

Member Function Documentation

◆ addToInternalField()

void addToInternalField ( solveScalarField result,
const bool  add,
const scalarField coeffs,
const solveScalarField vals 
) const
protected

Definition at line 275 of file calculatedProcessorFvPatchField.C.

References Foam::add(), and forAll.

Here is the call graph for this function:

◆ TypeName()

TypeName ( "calculatedProcessor"  )

◆ clone() [1/2]

virtual tmp<fvPatchField<Type> > clone ( ) const
inlinevirtual

Implements coupledFvPatchField< Type >.

Definition at line 126 of file calculatedProcessorFvPatchField.H.

◆ clone() [2/2]

virtual tmp<fvPatchField<Type> > clone ( const DimensionedField< Type, volMesh > &  iF) const
inlinevirtual

Implements coupledFvPatchField< Type >.

Definition at line 143 of file calculatedProcessorFvPatchField.H.

◆ comm()

virtual label comm ( ) const
inlinevirtual

Implements processorLduInterfaceField.

Definition at line 163 of file calculatedProcessorFvPatchField.H.

References lduPrimitiveProcessorInterface::comm(), and calculatedProcessorFvPatchField< Type >::procInterface_.

Here is the call graph for this function:

◆ myProcNo()

virtual int myProcNo ( ) const
inlinevirtual

◆ neighbProcNo()

virtual int neighbProcNo ( ) const
inlinevirtual

◆ doTransform()

virtual bool doTransform ( ) const
inlinevirtual

Implements processorLduInterfaceField.

Definition at line 182 of file calculatedProcessorFvPatchField.H.

◆ forwardT()

virtual const tensorField& forwardT ( ) const
inlinevirtual

◆ rank()

virtual int rank ( ) const
inlinevirtual

Implements processorLduInterfaceField.

Definition at line 194 of file calculatedProcessorFvPatchField.H.

◆ coupled()

virtual bool coupled ( ) const
inlinevirtual

Reimplemented from coupledFvPatchField< Type >.

Definition at line 206 of file calculatedProcessorFvPatchField.H.

References UPstream::parRun().

Here is the call graph for this function:

◆ patchNeighbourField()

Foam::tmp< Foam::Field< Type > > patchNeighbourField
virtual

Implements coupledFvPatchField< Type >.

Definition at line 117 of file calculatedProcessorFvPatchField.C.

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

Here is the call graph for this function:

◆ ready()

bool ready
virtual

Reimplemented from lduInterfaceField.

Definition at line 83 of file calculatedProcessorFvPatchField.C.

◆ initEvaluate()

void initEvaluate ( const Pstream::commsTypes  commsType)
virtual

◆ evaluate()

void evaluate ( const Pstream::commsTypes  commsType)
virtual

Reimplemented from coupledFvPatchField< Type >.

Definition at line 188 of file calculatedProcessorFvPatchField.C.

◆ initInterfaceMatrixUpdate() [1/2]

void initInterfaceMatrixUpdate ( solveScalarField result,
const bool  add,
const lduAddressing lduAddr,
const label  patchId,
const solveScalarField psiInternal,
const scalarField coeffs,
const direction  cmpt,
const Pstream::commsTypes  commsType 
) const
virtual

◆ updateInterfaceMatrix() [1/2]

void updateInterfaceMatrix ( solveScalarField result,
const bool  add,
const lduAddressing lduAddr,
const label  patchId,
const solveScalarField psiInternal,
const scalarField coeffs,
const direction  cmpt,
const Pstream::commsTypes  commsType 
) const
virtual

Implements coupledFvPatchField< Type >.

Definition at line 303 of file calculatedProcessorFvPatchField.C.

References Foam::add().

Here is the call graph for this function:

◆ initInterfaceMatrixUpdate() [2/2]

virtual void initInterfaceMatrixUpdate ( Field< Type > &  result,
const bool  add,
const lduAddressing lduAddr,
const label  patchId,
const Field< Type > &  psiInternal,
const scalarField coeffs,
const Pstream::commsTypes  commsType 
) const
inlinevirtual

Reimplemented from LduInterfaceField< Type >.

Definition at line 254 of file calculatedProcessorFvPatchField.H.

References NotImplemented.

◆ updateInterfaceMatrix() [2/2]

virtual void updateInterfaceMatrix ( Field< Type > &  result,
const bool  add,
const lduAddressing lduAddr,
const label  patchId,
const Field< Type > &  psiInternal,
const scalarField coeffs,
const Pstream::commsTypes  commsType 
) const
inlinevirtual

Implements coupledFvPatchField< Type >.

Definition at line 269 of file calculatedProcessorFvPatchField.H.

References NotImplemented.

Member Data Documentation

◆ procInterface_

const lduPrimitiveProcessorInterface& procInterface_
protected

◆ sendBuf_

Field<Type> sendBuf_
mutableprotected

Definition at line 74 of file calculatedProcessorFvPatchField.H.

◆ receiveBuf_

Field<Type> receiveBuf_
mutableprotected

Definition at line 77 of file calculatedProcessorFvPatchField.H.

◆ scalarSendBuf_

solveScalarField scalarSendBuf_
mutableprotected

Definition at line 80 of file calculatedProcessorFvPatchField.H.

◆ scalarReceiveBuf_

solveScalarField scalarReceiveBuf_
mutableprotected

Definition at line 83 of file calculatedProcessorFvPatchField.H.

◆ outstandingSendRequest_

label outstandingSendRequest_
mutableprotected

Definition at line 86 of file calculatedProcessorFvPatchField.H.

◆ outstandingRecvRequest_

label outstandingRecvRequest_
mutableprotected

Definition at line 89 of file calculatedProcessorFvPatchField.H.


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