Go to the documentation of this file.
34 const word& patchFieldType,
41 auto* ctorPtr = patchConstructorTable(patchFieldType);
49 *patchConstructorTablePtr_
53 auto* patchTypeCtor = patchConstructorTable(
p.type());
57 return patchTypeCtor(
p, iF);
61 return ctorPtr(
p, iF);
78 auto* ctorPtr = dictionaryConstructorTable(patchFieldType);
82 if (!disallowGenericFaePatchField)
84 ctorPtr = dictionaryConstructorTable(
"generic");
90 <<
"Unknown patchField type " << patchFieldType
91 <<
" for patch type " <<
p.type() <<
nl <<
nl
92 <<
"Valid patchField types are :" <<
nl
93 << dictionaryConstructorTablePtr_->sortedToc()
98 auto* patchTypeCtor = dictionaryConstructorTable(
p.type());
100 if (patchTypeCtor && patchTypeCtor != ctorPtr)
103 <<
"inconsistent patch and patchField types for \n"
104 <<
" patch type " <<
p.type()
105 <<
" and patchField type " << patchFieldType
109 return ctorPtr(
p, iF,
dict);
124 auto* ctorPtr = patchMapperConstructorTable(ptf.type());
132 *patchMapperConstructorTablePtr_
136 auto* patchTypeCtor = patchMapperConstructorTable(
p.type());
140 return patchTypeCtor(ptf,
p, iF, pfMapper);
143 return ctorPtr(ptf,
p, iF, pfMapper);
A class for handling words, derived from Foam::string.
faePatchField<Type> abstract base class. This class gives a fat-interface to all derived classes cove...
A class for managing temporary objects.
static tmp< faePatchField< Type > > New(const word &, const faPatch &, const DimensionedField< Type, edgeMesh > &)
Return a pointer to a new patchField created on freestore given.
Ostream & endl(Ostream &os)
Add newline and flush stream.
#define DebugInFunction
Report an information message using Foam::Info.
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
#define FatalErrorInLookup(lookupTag, lookupName, lookupTable)
Report an error message using Foam::FatalError.
errorManipArg< error, int > exit(error &err, const int errNo=1)
#define FatalIOErrorInFunction(ios)
Report an error message using Foam::FatalIOError.
Finite area patch class. Used for 2-D non-Euclidian finite area method.
Field with dimensions and associated with geometry type GeoMesh which is used to size the field and a...