32 const word& actualPatchType,
41 <<
", actualPatchType = " << actualPatchType
42 <<
", patchType = " <<
p.type()
46 typename pointPatchConstructorTable::iterator cstrIter =
49 if (cstrIter == pointPatchConstructorTablePtr_->end())
53 <<
" for patch " <<
p.name() <<
" of type " <<
p.type()
54 <<
" for field " << iF.
name() <<
nl <<
nl
55 <<
"Valid null-constructable patchField types are :" <<
endl
56 << pointPatchConstructorTablePtr_->sortedToc()
62 actualPatchType == word::null
63 || actualPatchType !=
p.type()
66 typename pointPatchConstructorTable::iterator patchTypeCstrIter =
67 pointPatchConstructorTablePtr_->find(
p.type());
69 if (patchTypeCstrIter != pointPatchConstructorTablePtr_->end())
71 return patchTypeCstrIter()(
p, iF);
75 return cstrIter()(
p, iF);
80 return cstrIter()(
p, iF);
111 <<
", actualPatchType = "
112 <<
dict.lookupOrDefault<
word>(
"patchType", word::null)
113 <<
", patchType = " <<
p.type()
117 typename dictionaryConstructorTable::iterator cstrIter
120 if (cstrIter == dictionaryConstructorTablePtr_->end())
122 if (!disallowGenericPointPatchField)
124 cstrIter = dictionaryConstructorTablePtr_->find(
"generic");
127 if (cstrIter == dictionaryConstructorTablePtr_->end())
133 <<
" for patch " <<
p.name() <<
" of type " <<
p.type()
134 <<
" for field " << iF.
name() <<
nl <<
nl
135 <<
"Valid patchField types are :" <<
endl
136 << dictionaryConstructorTablePtr_->sortedToc()
143 !
dict.found(
"patchType")
144 ||
word(
dict.lookup(
"patchType")) !=
p.type()
147 typename dictionaryConstructorTable::iterator patchTypeCstrIter =
148 dictionaryConstructorTablePtr_->find(
p.type());
152 patchTypeCstrIter != dictionaryConstructorTablePtr_->end()
153 && patchTypeCstrIter() != cstrIter()
159 ) <<
"inconsistent patch and patchField types for \n"
160 <<
" patch type " <<
p.type()
162 <<
" for field " << iF.
name()
167 return cstrIter()(
p, iF,
dict);
185 typename patchMapperConstructorTable::iterator cstrIter =
186 patchMapperConstructorTablePtr_->find(ptf.type());
188 if (cstrIter == patchMapperConstructorTablePtr_->end())
191 <<
"Unknown patchField type " << ptf.type()
192 <<
" for patch " <<
p.name() <<
" of type " <<
p.type()
193 <<
" for field " << iF.
name() <<
nl <<
nl
194 <<
"Valid patchField types are :" <<
endl
195 << patchMapperConstructorTablePtr_->sortedToc()
199 return cstrIter()(ptf,
p, iF, pfMapper);
Field with dimensions and associated with geometry type GeoMesh which is used to size the field and a...
const word & name() const
Return name.
An auto-pointer similar to the STL auto_ptr but with automatic casting to a reference to the type and...
A list of keyword definitions, which are a keyword followed by any number of values (e....
Abstract base class for field mapping.
Abstract base class for point-mesh patch fields.
static autoPtr< pointPatchField< Type > > New(const word &, const pointPatch &, const DimensionedField< Type, pointMesh > &)
Return a pointer to a new patchField created on freestore given.
Basic pointPatch represents a set of points from the mesh.
A class for handling words, derived from string.
#define FatalIOErrorInFunction(ios)
Report an error message using Foam::FatalIOError.
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
#define InfoInFunction
Report an information message using Foam::Info.
autoPtr< CompressibleMomentumTransportModel > New(const volScalarField &rho, const volVectorField &U, const surfaceScalarField &phi, const viscosity &viscosity)
errorManipArg< error, int > exit(error &err, const int errNo=1)
Ostream & endl(Ostream &os)
Add newline and flush stream.
errorManip< error > abort(error &err)
word patchFieldType(const PatchField &pf)