34 const word& patchFieldType,
35 const word& actualPatchType,
41 <<
"patchFieldType = " << patchFieldType
42 <<
" [" << actualPatchType
43 <<
"] : " <<
p.type() <<
" name = " <<
p.name() <<
endl;
45 auto* ctorPtr = patchConstructorTable(patchFieldType);
53 *patchConstructorTablePtr_
57 if (actualPatchType.empty() || actualPatchType !=
p.type())
59 auto* patchTypeCtor = patchConstructorTable(
p.type());
63 return patchTypeCtor(
p, iF);
67 return ctorPtr(
p, iF);
74 const word& patchFieldType,
79 return New(patchFieldType, word::null,
p, iF);
102 <<
"patchFieldType = " << patchFieldType
103 <<
" : " <<
p.type() <<
" name = " <<
p.name() <<
endl;
105 auto* ctorPtr = dictionaryConstructorTable(patchFieldType);
109 if (!faePatchFieldBase::disallowGenericPatchField)
111 ctorPtr = dictionaryConstructorTable(
"generic");
117 <<
"Unknown patchField type " << patchFieldType
118 <<
" for patch type " <<
p.type() <<
nl <<
nl 119 <<
"Valid patchField types are :" <<
nl 120 << dictionaryConstructorTablePtr_->sortedToc()
125 auto* patchTypeCtor = dictionaryConstructorTable(
p.type());
127 if (patchTypeCtor && patchTypeCtor != ctorPtr)
130 <<
"inconsistent patch and patchField types for\n" 131 " patch type " <<
p.type()
132 <<
" and patchField type " << patchFieldType
136 return ctorPtr(
p, iF,
dict);
150 <<
"patchFieldType = " << ptf.type()
151 <<
" : " <<
p.type() <<
" name = " <<
p.name() <<
endl;
153 auto* ctorPtr = patchMapperConstructorTable(ptf.type());
161 *patchMapperConstructorTablePtr_
165 auto* patchTypeCtor = patchMapperConstructorTable(
p.type());
169 return patchTypeCtor(ptf,
p, iF, pfMapper);
172 return ctorPtr(ptf,
p, iF, pfMapper);
errorManipArg< error, int > exit(error &err, const int errNo=1)
error FatalError
Error stream (stdout output on all processes), with additional 'FOAM FATAL ERROR' header text and sta...
A list of keyword definitions, which are a keyword followed by a number of values (eg...
constexpr char nl
The newline '\n' character (0x0a)
Ostream & endl(Ostream &os)
Add newline and flush stream.
tmp< DimensionedField< TypeR, GeoMesh > > New(const tmp< DimensionedField< TypeR, GeoMesh >> &tf1, const word &name, const dimensionSet &dimensions, const bool initCopy=false)
Global function forwards to reuseTmpDimensionedField::New.
#define FatalErrorInLookup(lookupTag, lookupName, lookupTable)
Report an error message using Foam::FatalError.
A class for handling words, derived from Foam::string.
#define DebugInFunction
Report an information message using Foam::Info.
Finite area patch class. Used for 2-D non-Euclidian finite area method.
#define FatalIOErrorInFunction(ios)
Report an error message using Foam::FatalIOError.
Field with dimensions and associated with geometry type GeoMesh which is used to size the field and a...
static tmp< faePatchField< Type > > New(const word &patchFieldType, const faPatch &, const DimensionedField< Type, edgeMesh > &)
Return a pointer to a new patchField created on freestore given.
faePatchField<Type> abstract base class. This class gives a fat-interface to all derived classes cove...
A class for managing temporary objects.
A FieldMapper for finite-area patch fields.
IOerror FatalIOError
Error stream (stdout output on all processes), with additional 'FOAM FATAL IO ERROR' header text and ...