Go to the documentation of this file.
34 const word& patchFieldType,
35 const word& actualPatchType,
42 auto cstrIter = patchConstructorTablePtr_->cfind(patchFieldType);
44 if (!cstrIter.found())
50 *patchConstructorTablePtr_
56 actualPatchType == word::null
57 || actualPatchType !=
p.type()
60 auto patchTypeCstrIter = patchConstructorTablePtr_->cfind(
p.type());
62 if (patchTypeCstrIter.found())
64 return patchTypeCstrIter()(
p, iF);
68 return cstrIter()(
p, iF);
75 const word& patchFieldType,
80 return New(patchFieldType, word::null,
p, iF);
96 auto cstrIter = dictionaryConstructorTablePtr_->cfind(patchFieldType);
98 if (!cstrIter.found())
100 if (!disallowGenericFvsPatchField)
102 cstrIter = dictionaryConstructorTablePtr_->cfind(
"generic");
105 if (!cstrIter.found())
108 <<
"Unknown patchField type " << patchFieldType
109 <<
" for patch type " <<
p.type() <<
nl <<
nl
110 <<
"Valid patchField types :" <<
endl
111 << dictionaryConstructorTablePtr_->sortedToc()
118 !
dict.found(
"patchType")
119 ||
dict.get<
word>(
"patchType") !=
p.type()
122 auto patchTypeCstrIter
123 = dictionaryConstructorTablePtr_->cfind(
p.type());
125 if (patchTypeCstrIter.found() && patchTypeCstrIter() != cstrIter())
128 <<
"inconsistent patch and patchField types for\n"
129 " patch type " <<
p.type()
130 <<
" and patchField type " << patchFieldType
135 return cstrIter()(
p, iF,
dict);
150 auto cstrIter = patchMapperConstructorTablePtr_->cfind(ptf.type());
152 if (!cstrIter.found())
158 *patchMapperConstructorTablePtr_
162 auto patchTypeCstrIter = patchMapperConstructorTablePtr_->cfind(
p.type());
164 if (patchTypeCstrIter.found())
166 return patchTypeCstrIter()(ptf,
p, iF, pfMapper);
169 return cstrIter()(ptf,
p, iF, pfMapper);
A class for handling words, derived from Foam::string.
A class for managing temporary objects.
An abstract base class with a fat-interface to all derived classes covering all possible ways in whic...
Ostream & endl(Ostream &os)
Add newline and flush stream.
#define DebugInFunction
Report an information message using Foam::Info.
A finiteVolume patch using a polyPatch and a fvBoundaryMesh.
static tmp< fvsPatchField< Type > > New(const word &, const fvPatch &, const DimensionedField< Type, surfaceMesh > &)
Return a pointer to a new patchField created on freestore given.
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.
Foam::fvPatchFieldMapper.
Field with dimensions and associated with geometry type GeoMesh which is used to size the field and a...