Go to the documentation of this file.
34 const word& patchFieldType,
41 auto cstrIter = patchConstructorTablePtr_->cfind(patchFieldType);
43 if (!cstrIter.found())
49 *patchConstructorTablePtr_
53 auto patchTypeCstrIter = patchConstructorTablePtr_->cfind(
p.type());
55 if (patchTypeCstrIter.found())
57 return patchTypeCstrIter()(
p, iF);
61 return cstrIter()(
p, iF);
78 auto cstrIter = dictionaryConstructorTablePtr_->cfind(patchFieldType);
80 if (!cstrIter.found())
82 if (!disallowGenericFaePatchField)
84 cstrIter = dictionaryConstructorTablePtr_->cfind(
"generic");
87 if (!cstrIter.found())
90 <<
"Unknown patchField type " << patchFieldType
91 <<
" for patch type " <<
p.type() <<
nl <<
nl
92 <<
"Valid patchField types are :" <<
nl
93 << dictionaryConstructorTablePtr_->sortedToc()
98 auto patchTypeCstrIter = dictionaryConstructorTablePtr_->cfind(
p.type());
100 if (patchTypeCstrIter.found() && *patchTypeCstrIter != *cstrIter)
103 <<
"inconsistent patch and patchField types for \n"
104 <<
" patch type " <<
p.type()
105 <<
" and patchField type " << patchFieldType
109 return cstrIter()(
p, iF,
dict);
124 auto cstrIter = patchMapperConstructorTablePtr_->cfind(ptf.type());
126 if (!cstrIter.found())
132 *patchMapperConstructorTablePtr_
136 auto patchTypeCstrIter = patchMapperConstructorTablePtr_->cfind(
p.type());
138 if (patchTypeCstrIter.found())
140 return patchTypeCstrIter()(ptf,
p, iF, pfMapper);
143 return cstrIter()(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...