33 const word& patchType,
46 wordConstructorTable::iterator cstrIter =
47 wordConstructorTablePtr_->find(patchType);
49 if (cstrIter == wordConstructorTablePtr_->end())
52 <<
"Unknown polyPatch type " 53 << patchType <<
" for patch " << name <<
nl <<
nl 54 <<
"Valid polyPatch types are :" <<
endl 55 << wordConstructorTablePtr_->sortedToc()
96 const word& patchType,
108 dictionaryConstructorTable::iterator cstrIter =
109 dictionaryConstructorTablePtr_->find(patchType);
111 if (cstrIter == dictionaryConstructorTablePtr_->end())
113 if (!disallowGenericPolyPatch)
115 cstrIter = dictionaryConstructorTablePtr_->find(
"genericPatch");
118 if (cstrIter == dictionaryConstructorTablePtr_->end())
123 ) <<
"Unknown polyPatch type " 124 << patchType <<
" for patch " << name <<
nl <<
nl 125 <<
"Valid polyPatch types are :" <<
endl 126 << dictionaryConstructorTablePtr_->sortedToc()
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)
A list of keyword definitions, which are a keyword followed by any number of values (e...
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
Ostream & endl(Ostream &os)
Add newline and flush stream.
A class for handling words, derived from string.
bool readIfPresent(const word &, T &, bool recursive=false, bool patternMatch=true) const
Find an entry if present, and assign to T.
word name(const complex &)
Return a string representation of a complex.
#define FatalIOErrorInFunction(ios)
Report an error message using Foam::FatalIOError.
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.
An auto-pointer similar to the STL auto_ptr but with automatic casting to a reference to the type and...
ITstream & lookup(const word &, bool recursive=false, bool patternMatch=true) const
Find and return an entry data stream.
#define InfoInFunction
Report an information message using Foam::Info.