Go to the documentation of this file.
34 const word& patchFieldType,
35 const word& actualPatchType,
42 auto* ctorPtr = pointPatchConstructorTable(patchFieldType);
50 *pointPatchConstructorTablePtr_
58 actualPatchType.empty()
59 || actualPatchType !=
p.type()
62 if (pfPtr().constraintType() !=
p.constraintType())
67 auto* patchTypeCtor = pointPatchConstructorTable(
p.type());
72 <<
"Inconsistent patch and patchField types for\n"
73 <<
" patch type " <<
p.type()
74 <<
" and patchField type " << patchFieldType
78 return patchTypeCtor(
p, iF);
83 if (pointPatchConstructorTablePtr_->found(
p.type()))
85 pfPtr().patchType() = actualPatchType;
96 const word& patchFieldType,
101 return New(patchFieldType, word::null,
p, iF);
117 auto* ctorPtr = dictionaryConstructorTable(patchFieldType);
121 if (!disallowGenericPointPatchField)
123 ctorPtr = dictionaryConstructorTable(
"generic");
129 <<
"Unknown patchField type " << patchFieldType
130 <<
" for patch type " <<
p.type() <<
nl <<
nl
131 <<
"Valid patchField types :" <<
endl
132 << dictionaryConstructorTablePtr_->sortedToc()
142 !
dict.found(
"patchType")
143 ||
dict.get<
word>(
"patchType") !=
p.type()
146 if (pfPtr().constraintType() !=
p.constraintType())
151 auto* patchTypeCtor = dictionaryConstructorTable(
p.type());
156 <<
"Inconsistent patch and patchField types for\n"
157 <<
" patch type " <<
p.type()
158 <<
" and patchField type " << patchFieldType
162 return patchTypeCtor(
p, iF,
dict);
181 auto* ctorPtr = patchMapperConstructorTable(ptf.type());
189 *patchMapperConstructorTablePtr_
193 return ctorPtr(ptf,
p, iF, pfMapper);
A class for handling words, derived from Foam::string.
Ostream & endl(Ostream &os)
Add newline and flush stream.
Basic pointPatch represents a set of points from the mesh.
Abstract base class for point-mesh patch fields.
Foam::pointPatchFieldMapper.
#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.
static autoPtr< pointPatchField< Type > > New(const word &, const pointPatch &, const DimensionedField< Type, pointMesh > &)
Return a pointer to a new patchField created on freestore given.
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.
Pointer management similar to std::unique_ptr, with some additional methods and type checking.
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
#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...