Go to the documentation of this file.
38 Info<<
"MeshedSurface::New(const fileName&, const word&) : "
39 "constructing MeshedSurface"
43 typename fileExtensionConstructorTable::iterator cstrIter =
44 fileExtensionConstructorTablePtr_->find(ext);
46 if (cstrIter == fileExtensionConstructorTablePtr_->end())
50 if (supported.found(ext))
53 autoPtr< MeshedSurface<Face> > surf(
new MeshedSurface<Face>);
60 supported += readTypes();
63 <<
"Unknown file extension " << ext <<
nl <<
nl
64 <<
"Valid types are :" <<
nl
69 return autoPtr< MeshedSurface<Face> >(cstrIter()(
name));
77 word ext =
name.ext();
80 ext =
name.lessExt().ext();
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.
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.
static autoPtr< MeshedSurface > New(const fileName &, const word &ext)
Select constructed from filename (explicit extension)
HashSet wordHashSet
A HashSet with word keys.
word name(const complex &)
Return a string representation of a complex.