genericPointPatchField< Type > Class Template Reference

A generic version of calculatedPointPatchField, useful as a fallback for handling unknown patch types. More...

Inheritance diagram for genericPointPatchField< Type >:
[legend]
Collaboration diagram for genericPointPatchField< Type >:
[legend]

Public Member Functions

 TypeName ("generic")
 Runtime type information. More...
 
 genericPointPatchField (const pointPatch &, const DimensionedField< Type, pointMesh > &)
 Construct from patch and internal field. More...
 
 genericPointPatchField (const pointPatch &, const DimensionedField< Type, pointMesh > &, const dictionary &)
 Construct from patch, internal field and dictionary. More...
 
 genericPointPatchField (const genericPointPatchField< Type > &, const pointPatch &, const DimensionedField< Type, pointMesh > &, const pointPatchFieldMapper &)
 Construct by mapping given patchField<Type> onto a new patch. More...
 
virtual autoPtr< pointPatchField< Type > > clone () const
 Construct and return a clone. More...
 
 genericPointPatchField (const genericPointPatchField< Type > &)=default
 Default copy construct. More...
 
 genericPointPatchField (const genericPointPatchField< Type > &, const DimensionedField< Type, pointMesh > &)
 Construct as copy setting internal field reference. More...
 
virtual autoPtr< pointPatchField< Type > > clone (const DimensionedField< Type, pointMesh > &iF) const
 Construct and return a clone setting internal field reference. More...
 
virtual void write (Ostream &) const
 Write. More...
 
virtual void autoMap (const pointPatchFieldMapper &)
 Map (and resize as needed) from self given a mapping object. More...
 
virtual void rmap (const pointPatchField< Type > &, const labelList &)
 Reverse map the given pointPatchField onto this pointPatchField. More...
 
- Public Member Functions inherited from calculatedPointPatchField< Type >
 TypeName ("calculated")
 Runtime type information. More...
 
 calculatedPointPatchField (const pointPatch &, const DimensionedField< Type, pointMesh > &)
 Construct from patch and internal field. More...
 
 calculatedPointPatchField (const pointPatch &, const DimensionedField< Type, pointMesh > &, const dictionary &)
 Construct from patch, internal field and dictionary. More...
 
 calculatedPointPatchField (const calculatedPointPatchField< Type > &, const pointPatch &, const DimensionedField< Type, pointMesh > &, const pointPatchFieldMapper &)
 Construct by mapping given patchField<Type> onto a new patch. More...
 
virtual autoPtr< pointPatchField< Type > > clone () const
 Construct and return a clone. More...
 
 calculatedPointPatchField (const calculatedPointPatchField< Type > &, const DimensionedField< Type, pointMesh > &)
 Construct as copy setting internal field reference. More...
 
virtual autoPtr< pointPatchField< Type > > clone (const DimensionedField< Type, pointMesh > &iF) const
 Construct and return a clone setting internal field reference. More...
 
- Public Member Functions inherited from pointPatchField< Type >
 TypeName ("pointPatchField")
 Runtime type information. More...
 
 declareRunTimeSelectionTable (autoPtr, pointPatchField, pointPatch,(const pointPatch &p, const DimensionedField< Type, pointMesh > &iF),(p, iF))
 
 declareRunTimeSelectionTable (autoPtr, pointPatchField, patchMapper,(const pointPatchField< Type > &ptf, const pointPatch &p, const DimensionedField< Type, pointMesh > &iF, const pointPatchFieldMapper &m),(dynamic_cast< const pointPatchFieldType & >(ptf), p, iF, m))
 
 declareRunTimeSelectionTable (autoPtr, pointPatchField, dictionary,(const pointPatch &p, const DimensionedField< Type, pointMesh > &iF, const dictionary &dict),(p, iF, dict))
 
 pointPatchField (const pointPatch &, const DimensionedField< Type, pointMesh > &)
 Construct from patch and internal field. More...
 
 pointPatchField (const pointPatch &, const DimensionedField< Type, pointMesh > &, const dictionary &)
 Construct from patch, internal field and dictionary. More...
 
 pointPatchField (const pointPatchField< Type > &, const pointPatch &, const DimensionedField< Type, pointMesh > &, const pointPatchFieldMapper &)
 Construct by mapping given patchField<Type> onto a new patch. More...
 
 pointPatchField (const pointPatchField< Type > &)
 Construct as copy. More...
 
virtual autoPtr< pointPatchField< Type > > clone () const =0
 Construct and return a clone. More...
 
 pointPatchField (const pointPatchField< Type > &, const DimensionedField< Type, pointMesh > &)
 Construct as copy setting internal field reference. More...
 
virtual autoPtr< pointPatchField< Type > > clone (const DimensionedField< Type, pointMesh > &iF) const =0
 Construct and return a clone setting internal field reference. More...
 
virtual ~pointPatchField ()=default
 Destructor. More...
 
const objectRegistrydb () const
 Return local objectRegistry. More...
 
label size () const
 Return size. More...
 
const pointPatchpatch () const
 Return patch. More...
 
const DimensionedField< Type, pointMesh > & internalField () const
 Return dimensioned internal field reference. More...
 
const Field< Type > & primitiveField () const
 Return internal field reference. More...
 
const wordpatchType () const
 Optional patch type. More...
 
wordpatchType ()
 Optional patch type. More...
 
virtual bool fixesValue () const
 Return true if this patch field fixes a value. More...
 
virtual bool coupled () const
 Return true if this patch field is coupled. More...
 
bool updated () const
 Return true if the boundary condition has already been updated. More...
 
tmp< Field< Type > > patchInternalField () const
 Return field created from appropriate internal field values. More...
 
template<class Type1 >
tmp< Field< Type1 > > patchInternalField (const Field< Type1 > &iF) const
 Return field created from appropriate internal field values. More...
 
template<class Type1 >
tmp< Field< Type1 > > patchInternalField (const Field< Type1 > &iF, const labelList &meshPoints) const
 Return field created from selected internal field values. More...
 
template<class Type1 >
void addToInternalField (Field< Type1 > &iF, const Field< Type1 > &pF) const
 Given the internal field and a patch field,. More...
 
template<class Type1 >
void addToInternalField (Field< Type1 > &iF, const Field< Type1 > &pF, const labelList &points) const
 Given the internal field and a patch field,. More...
 
template<class Type1 >
void setInInternalField (Field< Type1 > &iF, const Field< Type1 > &pF, const labelList &meshPoints) const
 Given the internal field and a patch field,. More...
 
template<class Type1 >
void setInInternalField (Field< Type1 > &iF, const Field< Type1 > &pF) const
 Given the internal field and a patch field,. More...
 
virtual const wordconstraintType () const
 Return the constraint type this pointPatchField implements. More...
 
virtual void autoMap (const pointPatchFieldMapper &)
 Map (and resize as needed) from self given a mapping object. More...
 
virtual void rmap (const pointPatchField< Type > &, const labelList &)
 Reverse map the given pointPatchField onto this pointPatchField. More...
 
virtual void updateCoeffs ()
 Update the coefficients associated with the patch field. More...
 
virtual void initEvaluate (const Pstream::commsTypes commsType=Pstream::commsTypes::blocking)
 Initialise evaluation of the patch field (do nothing) More...
 
virtual void evaluate (const Pstream::commsTypes commsType=Pstream::commsTypes::blocking)
 Evaluate the patch field. More...
 
virtual void write (Ostream &) const
 Write. More...
 
virtual void operator= (const pointPatchField< Type > &)
 
virtual void operator+= (const pointPatchField< Type > &)
 
virtual void operator-= (const pointPatchField< Type > &)
 
virtual void operator*= (const pointPatchField< scalar > &)
 
virtual void operator/= (const pointPatchField< scalar > &)
 
virtual void operator= (const Field< Type > &)
 
virtual void operator+= (const Field< Type > &)
 
virtual void operator-= (const Field< Type > &)
 
virtual void operator*= (const Field< scalar > &)
 
virtual void operator/= (const Field< scalar > &)
 
virtual void operator= (const Type &)
 
virtual void operator+= (const Type &)
 
virtual void operator-= (const Type &)
 
virtual void operator*= (const scalar)
 
virtual void operator/= (const scalar)
 
virtual void operator== (const pointPatchField< Type > &)
 
virtual void operator== (const Field< Type > &)
 
virtual void operator== (const Type &)
 
void negate ()
 Negate the field inplace. Dummy placeholder for FieldField. More...
 
void normalise ()
 Normalise the field inplace. Dummy placeholder for FieldField. More...
 
template<class Type2 >
Foam::autoPtr< Foam::pointPatchField< Type > > NewCalculatedType (const pointPatchField< Type2 > &pf)
 
template<class Type1 >
Foam::tmp< Foam::Field< Type1 > > patchInternalField (const Field< Type1 > &iF, const labelList &meshPoints) const
 
template<class Type1 >
Foam::tmp< Foam::Field< Type1 > > patchInternalField (const Field< Type1 > &iF) const
 
- Public Member Functions inherited from genericPatchFieldBase
 genericPatchFieldBase ()=default
 Default construct, generally not useful. More...
 
 genericPatchFieldBase (const genericPatchFieldBase &)=default
 Copy construct. More...
 
 genericPatchFieldBase (genericPatchFieldBase &&)=default
 Move construct. More...
 
 genericPatchFieldBase (const dictionary &dict)
 Initialize from dictionary. More...
 
const wordactualType () const noexcept
 The actual patch type. More...
 

Additional Inherited Members

- Public Types inherited from pointPatchField< Type >
typedef Type value_type
 The Field value_type. More...
 
typedef DimensionedField< Type, pointMeshInternal
 The internal field type associated with the patch field. More...
 
typedef pointPatch Patch
 The patch type for the patch field. More...
 
typedef calculatedPointPatchField< Type > Calculated
 Type for a calculated patch. More...
 
- Static Public Member Functions inherited from pointPatchField< Type >
static autoPtr< pointPatchField< Type > > New (const word &patchFieldType, const pointPatch &p, const DimensionedField< Type, pointMesh > &iF)
 Return a pointer to a new patchField created on freestore given. More...
 
static autoPtr< pointPatchField< Type > > New (const word &patchFieldType, const word &actualPatchType, const pointPatch &p, const DimensionedField< Type, pointMesh > &iF)
 Return a pointer to a new patchField created on freestore given. More...
 
static autoPtr< pointPatchField< Type > > New (const pointPatchField< Type > &, const pointPatch &, const DimensionedField< Type, pointMesh > &, const pointPatchFieldMapper &)
 Return a pointer to a new patchField created on freestore from. More...
 
static autoPtr< pointPatchField< Type > > New (const pointPatch &, const DimensionedField< Type, pointMesh > &, const dictionary &)
 Return a pointer to a new patchField created on freestore. More...
 
template<class Type2 >
static autoPtr< pointPatchField< Type > > NewCalculatedType (const pointPatchField< Type2 > &)
 Return a pointer to a new calculatedPointPatchField created on. More...
 
static const wordcalculatedType ()
 Return the type of the calculated form of pointPatchField. More...
 
- Static Public Attributes inherited from pointPatchField< Type >
static int disallowGenericPointPatchField
 Debug switch to disallow the use of genericPointPatchField. More...
 
- Protected Member Functions inherited from genericPatchFieldBase
void genericFatalSolveError (const word &patchName, const IOobject &io) const
 
void reportMissingEntry (const word &entryName, const word &patchName, const IOobject &io) const
 FatalError for missing entry. More...
 
void processGeneric (const label patchSize, const word &patchName, const IOobject &io, const bool separateValue)
 
bool processEntry (const entry &dEntry, const label patchSize, const word &patchName, const IOobject &io)
 
void putEntry (const entry &e, Ostream &os) const
 Write a single entry, with lookup of hashed values. More...
 
void writeGeneric (Ostream &os, const bool separateValue) const
 
template<class MapperType >
void mapGeneric (const genericPatchFieldBase &rhs, const MapperType &mapper)
 Implementation for construct with mapper. More...
 
template<class MapperType >
void autoMapGeneric (const MapperType &mapper)
 Implementation for autoMap of self given a mapping object. More...
 
void rmapGeneric (const genericPatchFieldBase &rhs, const labelList &addr)
 
 genericPatchFieldBase (const Foam::zero, const genericPatchFieldBase &)
 Partial copy construct. Only copy type and dictionary. More...
 
- Protected Attributes inherited from genericPatchFieldBase
word actualTypeName_
 The non-generic patch name. More...
 
dictionary dict_
 
HashPtrTable< scalarFieldscalarFields_
 
HashPtrTable< vectorFieldvectorFields_
 
HashPtrTable< sphericalTensorFieldsphTensorFields_
 
HashPtrTable< symmTensorFieldsymmTensorFields_
 
HashPtrTable< tensorFieldtensorFields_
 

Detailed Description

template<class Type>
class Foam::genericPointPatchField< Type >

A generic version of calculatedPointPatchField, useful as a fallback for handling unknown patch types.

Source files

Definition at line 54 of file genericPointPatchField.H.

Constructor & Destructor Documentation

◆ genericPointPatchField() [1/5]

genericPointPatchField ( const pointPatch p,
const DimensionedField< Type, pointMesh > &  iF 
)

Construct from patch and internal field.

Definition at line 35 of file genericPointPatchField.C.

References Foam::abort(), Foam::FatalError, FatalErrorInFunction, pointPatchField< Type >::internalField(), pointPatch::name(), IOobject::name(), Foam::nl, and pointPatchField< Type >::patch().

Here is the call graph for this function:

◆ genericPointPatchField() [2/5]

genericPointPatchField ( const pointPatch p,
const DimensionedField< Type, pointMesh > &  iF,
const dictionary dict 
)

Construct from patch, internal field and dictionary.

Definition at line 52 of file genericPointPatchField.C.

References pointPatchField< Type >::internalField(), io(), pointPatch::name(), pointPatchField< Type >::patch(), genericPatchFieldBase::processGeneric(), and pointPatchField< Type >::size().

Here is the call graph for this function:

◆ genericPointPatchField() [3/5]

genericPointPatchField ( const genericPointPatchField< Type > &  rhs,
const pointPatch p,
const DimensionedField< Type, pointMesh > &  iF,
const pointPatchFieldMapper mapper 
)

Construct by mapping given patchField<Type> onto a new patch.

Definition at line 72 of file genericPointPatchField.C.

References genericPatchFieldBase::mapGeneric().

Here is the call graph for this function:

◆ genericPointPatchField() [4/5]

genericPointPatchField ( const genericPointPatchField< Type > &  )
default

Default copy construct.

◆ genericPointPatchField() [5/5]

genericPointPatchField ( const genericPointPatchField< Type > &  rhs,
const DimensionedField< Type, pointMesh > &  iF 
)

Construct as copy setting internal field reference.

Definition at line 88 of file genericPointPatchField.C.

Member Function Documentation

◆ TypeName()

TypeName ( "generic"  )

Runtime type information.

◆ clone() [1/2]

virtual autoPtr< pointPatchField< Type > > clone ( ) const
inlinevirtual

Construct and return a clone.

Reimplemented from calculatedPointPatchField< Type >.

Definition at line 96 of file genericPointPatchField.H.

◆ clone() [2/2]

virtual autoPtr< pointPatchField< Type > > clone ( const DimensionedField< Type, pointMesh > &  iF) const
inlinevirtual

Construct and return a clone setting internal field reference.

Reimplemented from calculatedPointPatchField< Type >.

Definition at line 118 of file genericPointPatchField.H.

◆ write()

void write ( Ostream os) const
virtual

Write.

Reimplemented from pointPatchField< Type >.

Definition at line 102 of file genericPointPatchField.C.

References os(), and genericPatchFieldBase::writeGeneric().

Here is the call graph for this function:

◆ autoMap()

void autoMap ( const pointPatchFieldMapper m)
virtual

Map (and resize as needed) from self given a mapping object.

Reimplemented from pointPatchField< Type >.

Definition at line 110 of file genericPointPatchField.C.

◆ rmap()

void rmap ( const pointPatchField< Type > &  rhs,
const labelList addr 
)
virtual

Reverse map the given pointPatchField onto this pointPatchField.

Reimplemented from pointPatchField< Type >.

Definition at line 120 of file genericPointPatchField.C.


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