Go to the documentation of this file.
33 const word& patchType,
43 Info<<
"polyPatch::New(const word&, const word&, const label, "
44 "const label, const label, const polyBoundaryMesh&) : "
45 "constructing polyPatch"
49 wordConstructorTable::iterator cstrIter =
50 wordConstructorTablePtr_->find(patchType);
52 if (cstrIter == wordConstructorTablePtr_->end())
55 <<
"Unknown polyPatch type "
56 << patchType <<
" for patch " <<
name <<
nl <<
nl
57 <<
"Valid polyPatch types are :" <<
endl
58 << wordConstructorTablePtr_->sortedToc()
87 Info<<
"polyPatch::New(const word&, const dictionary&, const label, "
88 "const polyBoundaryMesh&) : constructing polyPatch"
93 dict.readIfPresent(
"geometricType", patchType);
101 const word& patchType,
110 Info<<
"polyPatch::New(const word&, const word&, const dictionary&, "
111 "const label, const polyBoundaryMesh&) : constructing polyPatch"
115 dictionaryConstructorTable::iterator cstrIter =
116 dictionaryConstructorTablePtr_->find(patchType);
118 if (cstrIter == dictionaryConstructorTablePtr_->end())
120 if (!disallowGenericPolyPatch)
122 cstrIter = dictionaryConstructorTablePtr_->find(
"genericPatch");
125 if (cstrIter == dictionaryConstructorTablePtr_->end())
130 ) <<
"Unknown polyPatch type "
131 << patchType <<
" for patch " <<
name <<
nl <<
nl
132 <<
"Valid polyPatch types are :" <<
endl
133 << dictionaryConstructorTablePtr_->sortedToc()
A class for handling words, derived from string.
autoPtr< BasicCompressibleTurbulenceModel > New(const volScalarField &rho, const volVectorField &U, const surfaceScalarField &phi, const typename BasicCompressibleTurbulenceModel::transportModel &transport, const word &propertiesName)
Ostream & endl(Ostream &os)
Add newline and flush stream.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
A list of keyword definitions, which are a keyword followed by any number of values (e....
static autoPtr< polyPatch > New(const word &patchType, const word &name, const label size, const label start, const label index, const polyBoundaryMesh &bm)
Return a pointer to a new patch created on freestore from.
errorManipArg< error, int > exit(error &err, const int errNo=1)
An auto-pointer similar to the STL auto_ptr but with automatic casting to a reference to the type and...
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
#define FatalIOErrorInFunction(ios)
Report an error message using Foam::FatalIOError.
word name(const complex &)
Return a string representation of a complex.