faePatchField<Type> abstract base class. This class gives a fat-interface to all derived classes covering all possible ways in which they might be used. The first level of derivation is to basic patchFields which cover zero-gradient, fixed-gradient, fixed-value and mixed conditions. The next level of derivation covers all the specialised typed with specific evaluation procedures, particularly with respect to specific fields. More...
Public Types | |
typedef faPatch | Patch |
typedef calculatedFaePatchField< Type > | Calculated |
Public Member Functions | |
TypeName ("faePatchField") | |
Runtime type information. More... | |
declareRunTimeSelectionTable (tmp, faePatchField, patch,(const faPatch &p, const DimensionedField< Type, edgeMesh > &iF),(p, iF)) | |
declareRunTimeSelectionTable (tmp, faePatchField, patchMapper,(const faePatchField< Type > &ptf, const faPatch &p, const DimensionedField< Type, edgeMesh > &iF, const faPatchFieldMapper &m),(dynamic_cast< const faePatchFieldType & >(ptf), p, iF, m)) | |
declareRunTimeSelectionTable (tmp, faePatchField, dictionary,(const faPatch &p, const DimensionedField< Type, edgeMesh > &iF, const dictionary &dict),(p, iF, dict)) | |
faePatchField (const faPatch &, const DimensionedField< Type, edgeMesh > &) | |
Construct from patch and internal field. More... | |
faePatchField (const faPatch &, const DimensionedField< Type, edgeMesh > &, const Field< Type > &) | |
Construct from patch and internal field and patch field. More... | |
faePatchField (const faPatch &, const DimensionedField< Type, edgeMesh > &, const dictionary &) | |
Construct from patch, internal field and dictionary. More... | |
faePatchField (const faePatchField< Type > &, const faPatch &, const DimensionedField< Type, edgeMesh > &, const faPatchFieldMapper &) | |
Construct by mapping the given faePatchField onto a new patch. More... | |
faePatchField (const faePatchField< Type > &) | |
Construct as copy. More... | |
virtual tmp< faePatchField< Type > > | clone () const |
Construct and return a clone. More... | |
faePatchField (const faePatchField< Type > &, const DimensionedField< Type, edgeMesh > &) | |
Construct as copy setting internal field reference. More... | |
virtual tmp< faePatchField< Type > > | clone (const DimensionedField< Type, edgeMesh > &iF) const |
Construct and return a clone setting internal field reference. More... | |
virtual | ~faePatchField ()=default |
Destructor. More... | |
const objectRegistry & | db () const |
Return local objectRegistry. More... | |
const faPatch & | patch () const |
Return patch. More... | |
const DimensionedField< Type, edgeMesh > & | internalField () const |
Return dimensioned internal field reference. More... | |
const Field< Type > & | primitiveField () const |
Return internal field reference. 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... | |
virtual void | autoMap (const faPatchFieldMapper &) |
Map (and resize as needed) from self given a mapping object. More... | |
virtual void | rmap (const faePatchField< Type > &, const labelList &) |
Reverse map the given faePatchField onto this faePatchField. More... | |
virtual void | write (Ostream &) const |
Write. More... | |
void | check (const faePatchField< Type > &) const |
Check faePatchField<Type> against given faePatchField<Type> More... | |
virtual void | operator= (const UList< Type > &) |
virtual void | operator= (const faePatchField< Type > &) |
virtual void | operator+= (const faePatchField< Type > &) |
virtual void | operator-= (const faePatchField< Type > &) |
virtual void | operator*= (const faePatchField< scalar > &) |
virtual void | operator/= (const faePatchField< scalar > &) |
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 faePatchField< Type > &) |
virtual void | operator== (const Field< Type > &) |
virtual void | operator== (const Type &) |
template<class Type2 > | |
Foam::tmp< Foam::faePatchField< Type > > | NewCalculatedType (const faePatchField< Type2 > &pf) |
Static Public Member Functions | |
static tmp< faePatchField< Type > > | New (const word &, const faPatch &, const DimensionedField< Type, edgeMesh > &) |
Return a pointer to a new patchField created on freestore given. More... | |
static tmp< faePatchField< Type > > | New (const faePatchField< Type > &, const faPatch &, const DimensionedField< Type, edgeMesh > &, const faPatchFieldMapper &) |
Return a pointer to a new patchField created on freestore from. More... | |
static tmp< faePatchField< Type > > | New (const faPatch &, const DimensionedField< Type, edgeMesh > &, const dictionary &) |
Return a pointer to a new patchField created on freestore. More... | |
template<class Type2 > | |
static tmp< faePatchField< Type > > | NewCalculatedType (const faePatchField< Type2 > &) |
Return a pointer to a new calculatedFaePatchField created on. More... | |
static const word & | calculatedType () |
Return the type of the calculated for of faePatchField. More... | |
Static Public Attributes | |
static int | disallowGenericFaePatchField |
Debug switch to disallow the use of. More... | |
Friends | |
Ostream & | operator (Ostream &, const faePatchField< Type > &) |
faePatchField<Type> abstract base class. This class gives a fat-interface to all derived classes covering all possible ways in which they might be used. The first level of derivation is to basic patchFields which cover zero-gradient, fixed-gradient, fixed-value and mixed conditions. The next level of derivation covers all the specialised typed with specific evaluation procedures, particularly with respect to specific fields.
Finite area edge-based patch fields.
Author Zeljko Tukovic, FMENA Hrvoje Jasak, Wikki Ltd.
Definition at line 49 of file edgeFieldsFwd.H.
Definition at line 95 of file faePatchField.H.
typedef calculatedFaePatchField<Type> Calculated |
Definition at line 96 of file faePatchField.H.
faePatchField | ( | const faPatch & | p, |
const DimensionedField< Type, edgeMesh > & | iF | ||
) |
Construct from patch and internal field.
Definition at line 35 of file faePatchField.C.
faePatchField | ( | const faPatch & | p, |
const DimensionedField< Type, edgeMesh > & | iF, | ||
const Field< Type > & | f | ||
) |
Construct from patch and internal field and patch field.
Definition at line 48 of file faePatchField.C.
faePatchField | ( | const faPatch & | p, |
const DimensionedField< Type, edgeMesh > & | iF, | ||
const dictionary & | dict | ||
) |
Construct from patch, internal field and dictionary.
Definition at line 77 of file faePatchField.C.
faePatchField | ( | const faePatchField< Type > & | ptf, |
const faPatch & | p, | ||
const DimensionedField< Type, edgeMesh > & | iF, | ||
const faPatchFieldMapper & | mapper | ||
) |
Construct by mapping the given faePatchField onto a new patch.
Definition at line 62 of file faePatchField.C.
faePatchField | ( | const faePatchField< Type > & | ptf | ) |
Construct as copy.
Definition at line 103 of file faePatchField.C.
faePatchField | ( | const faePatchField< Type > & | ptf, |
const DimensionedField< Type, edgeMesh > & | iF | ||
) |
Construct as copy setting internal field reference.
Definition at line 115 of file faePatchField.C.
|
virtualdefault |
Destructor.
TypeName | ( | "faePatchField< Type >" | ) |
Runtime type information.
declareRunTimeSelectionTable | ( | tmp | , |
faePatchField< Type > | , | ||
patch | , | ||
(const faPatch &p, const DimensionedField< Type, edgeMesh > &iF) | , | ||
(p, iF) | |||
) |
declareRunTimeSelectionTable | ( | tmp | , |
faePatchField< Type > | , | ||
patchMapper | , | ||
(const faePatchField< Type > &ptf, const faPatch &p, const DimensionedField< Type, edgeMesh > &iF, const faPatchFieldMapper &m) | , | ||
(dynamic_cast< const faePatchFieldType & >(ptf), p, iF, m) | |||
) |
declareRunTimeSelectionTable | ( | tmp | , |
faePatchField< Type > | , | ||
dictionary | , | ||
(const faPatch &p, const DimensionedField< Type, edgeMesh > &iF, const dictionary &dict) | , | ||
(p, iF, dict) | |||
) |
|
inlinevirtual |
Construct and return a clone.
Reimplemented in coupledFaePatchField< Type >, processorFaePatchField< Type >, cyclicFaePatchField< Type >, symmetryFaePatchField< Type >, fixedValueFaePatchField< Type >, emptyFaePatchField< Type >, calculatedFaePatchField< Type >, and wedgeFaePatchField< Type >.
Definition at line 186 of file faePatchField.H.
|
inlinevirtual |
Construct and return a clone setting internal field reference.
Reimplemented in processorFaePatchField< Type >, cyclicFaePatchField< Type >, symmetryFaePatchField< Type >, fixedValueFaePatchField< Type >, emptyFaePatchField< Type >, calculatedFaePatchField< Type >, wedgeFaePatchField< Type >, and coupledFaePatchField< Type >.
Definition at line 200 of file faePatchField.H.
|
static |
Return a pointer to a new patchField created on freestore given.
patch and internal field (does not set the patch field values)
Definition at line 33 of file faePatchFieldNew.C.
References DebugInFunction, Foam::endl(), Foam::exit(), Foam::FatalError, FatalErrorInLookup, and p.
|
static |
Return a pointer to a new patchField created on freestore from.
a given faePatchField mapped onto a new patch
Definition at line 115 of file faePatchFieldNew.C.
References DebugInFunction, Foam::endl(), Foam::exit(), Foam::FatalError, FatalErrorInLookup, and p.
|
static |
Return a pointer to a new patchField created on freestore.
from dictionary
Definition at line 68 of file faePatchFieldNew.C.
References DebugInFunction, dict, Foam::endl(), Foam::exit(), Foam::FatalIOError, FatalIOErrorInFunction, Foam::nl, and p.
|
static |
Return a pointer to a new calculatedFaePatchField created on.
freestore without setting patchField values
const Foam::objectRegistry & db | ( | ) | const |
Return local objectRegistry.
Definition at line 129 of file faePatchField.C.
References IOobject::db().
|
inline |
Return patch.
Definition at line 263 of file faePatchField.H.
Referenced by faePatchField< Type >::NewCalculatedType(), faePatchField< Type >::operator*=(), and faePatchField< Type >::operator/=().
|
inline |
Return dimensioned internal field reference.
Definition at line 269 of file faePatchField.H.
|
inline |
Return internal field reference.
Definition at line 275 of file faePatchField.H.
|
static |
Return the type of the calculated for of faePatchField.
Definition at line 35 of file calculatedFaePatchField.C.
|
inlinevirtual |
Return true if this patch field fixes a value.
Needed to check if a level has to be specified while solving Poissons equations.
Reimplemented in fixedValueFaePatchField< Type >, and calculatedFaePatchField< Type >.
Definition at line 286 of file faePatchField.H.
|
inlinevirtual |
Return true if this patch field is coupled.
Reimplemented in processorFaePatchField< Type >, and coupledFaePatchField< Type >.
Definition at line 292 of file faePatchField.H.
|
virtual |
Map (and resize as needed) from self given a mapping object.
Reimplemented in emptyFaePatchField< Type >.
Definition at line 150 of file faePatchField.C.
|
virtual |
Reverse map the given faePatchField onto this faePatchField.
Reimplemented in emptyFaePatchField< Type >.
Definition at line 160 of file faePatchField.C.
|
virtual |
Write.
Reimplemented in fixedValueFaePatchField< Type >, calculatedFaePatchField< Type >, and coupledFaePatchField< Type >.
Definition at line 170 of file faePatchField.C.
References os().
void check | ( | const faePatchField< Type > & | ptf | ) | const |
Check faePatchField<Type> against given faePatchField<Type>
Definition at line 137 of file faePatchField.C.
References Foam::abort(), Foam::FatalError, and FatalErrorInFunction.
Reimplemented in fixedValueFaePatchField< Type >.
Definition at line 180 of file faePatchField.C.
|
virtual |
Reimplemented in fixedValueFaePatchField< Type >.
Definition at line 190 of file faePatchField.C.
References Foam::check().
|
virtual |
Reimplemented in fixedValueFaePatchField< Type >.
Definition at line 201 of file faePatchField.C.
References Foam::check().
|
virtual |
Reimplemented in fixedValueFaePatchField< Type >.
Definition at line 212 of file faePatchField.C.
References Foam::check().
|
virtual |
Reimplemented in fixedValueFaePatchField< Type >.
Definition at line 223 of file faePatchField.C.
References Foam::abort(), Foam::FatalError, FatalErrorInFunction, and faePatchField< Type >::patch().
|
virtual |
Reimplemented in fixedValueFaePatchField< Type >.
Definition at line 240 of file faePatchField.C.
References Foam::abort(), Foam::FatalError, FatalErrorInFunction, and faePatchField< Type >::patch().
Reimplemented in fixedValueFaePatchField< Type >.
Definition at line 257 of file faePatchField.C.
Reimplemented in fixedValueFaePatchField< Type >.
Definition at line 267 of file faePatchField.C.
Reimplemented in fixedValueFaePatchField< Type >.
Definition at line 277 of file faePatchField.C.
Reimplemented in fixedValueFaePatchField< Type >.
Definition at line 287 of file faePatchField.C.
|
virtual |
Reimplemented in fixedValueFaePatchField< Type >.
Definition at line 297 of file faePatchField.C.
|
virtual |
Reimplemented in fixedValueFaePatchField< Type >.
Definition at line 307 of file faePatchField.C.
|
virtual |
Reimplemented in fixedValueFaePatchField< Type >.
Definition at line 317 of file faePatchField.C.
|
virtual |
Reimplemented in fixedValueFaePatchField< Type >.
Definition at line 327 of file faePatchField.C.
References s.
|
virtual |
Reimplemented in fixedValueFaePatchField< Type >.
Definition at line 337 of file faePatchField.C.
References s.
|
virtual |
Definition at line 347 of file faePatchField.C.
Definition at line 357 of file faePatchField.C.
|
virtual |
Definition at line 367 of file faePatchField.C.
Foam::tmp<Foam::faePatchField<Type> > NewCalculatedType | ( | const faePatchField< Type2 > & | pf | ) |
Definition at line 103 of file calculatedFaePatchField.C.
References faePatchField< Type >::patch().
|
friend |
|
static |
Debug switch to disallow the use of.
Definition at line 103 of file faePatchField.H.