Go to the documentation of this file.
34 const word& patchFieldType,
35 const word& actualPatchType,
41 <<
"Constructing faPatchField<Type> "
42 <<
"patchFieldType:" << patchFieldType
43 <<
"actualPatchType:" << actualPatchType
44 <<
"p.Type():" <<
p.type()
47 auto* ctorPtr = patchConstructorTable(patchFieldType);
55 *patchConstructorTablePtr_
59 auto* patchTypeCtor = patchConstructorTable(
p.type());
63 actualPatchType == word::null
64 || actualPatchType !=
p.type()
69 return patchTypeCtor(
p, iF);
73 return ctorPtr(
p, iF);
83 tfap.
ref().patchType() = actualPatchType;
92 const word& patchFieldType,
97 return New(patchFieldType, word::null,
p, iF);
113 auto* ctorPtr = dictionaryConstructorTable(patchFieldType);
117 if (!disallowGenericFaPatchField)
119 ctorPtr = dictionaryConstructorTable(
"generic");
125 <<
"Unknown patchField type " << patchFieldType
126 <<
" for patch type " <<
p.type() <<
nl <<
nl
127 <<
"Valid patchField types are :" <<
nl
128 << dictionaryConstructorTablePtr_->sortedToc()
133 auto* patchTypeCtor = dictionaryConstructorTable(
p.type());
135 if (patchTypeCtor && patchTypeCtor != ctorPtr)
138 <<
"inconsistent patch and patchField types for \n"
139 <<
" patch type " <<
p.type()
140 <<
" and patchField type " << patchFieldType
144 return ctorPtr(
p, iF,
dict);
159 auto* ctorPtr = patchMapperConstructorTable(ptf.type());
167 *patchMapperConstructorTablePtr_
171 auto* patchTypeCtor = patchMapperConstructorTable(
p.type());
175 return patchTypeCtor(ptf,
p, iF, pfMapper);
178 return ctorPtr(ptf,
p, iF, pfMapper);
faPatchField<Type> abstract base class. This class gives a fat-interface to all derived classes cover...
A class for handling words, derived from Foam::string.
A class for managing temporary objects.
static tmp< faPatchField< Type > > New(const word &patchFieldType, const word &actualPatchType, const faPatch &, const DimensionedField< Type, areaMesh > &)
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)
tmp< DimensionedField< TypeR, GeoMesh > > New(const tmp< DimensionedField< TypeR, GeoMesh >> &tdf1, const word &name, const dimensionSet &dimensions)
Global function forwards to reuseTmpDimensionedField::New.
#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...