51 <<
"Cannot determine format from filename" <<
nl
58 else if (fileType ==
"gz")
62 return New(unzipName, unzipName.
ext());
79 if (fileType ==
"ftr")
87 else if (fileType ==
"stl")
94 else if (fileType ==
"stlb")
98 surf->readSTL(
name,
true);
105 if (proxyType::readTypes().
found(fileType))
109 surf->transfer(*proxyType::New(
name, fileType));
117 if (proxyType::readTypes().
found(fileType))
121 surf->transfer(*proxyType::New(
name, fileType));
128 <<
"Unknown surface format " << fileType
129 <<
" for reading file " <<
name <<
nl
130 <<
"Valid types:" <<
nl
149 return New(unzipName, unzipName.
ext());
Input from file stream, using an ISstream.
A surface geometry mesh with zone information, not to be confused with the similarly named surfaceMes...
static autoPtr< Time > New()
Construct (dummy) Time - no functionObjects or libraries.
A surface geometry mesh, in which the surface zone information is conveyed by the 'zoneId' associated...
Pointer management similar to std::unique_ptr, with some additional methods and type checking.
A class for handling file names.
word ext() const
Return file name extension (part after last .)
static autoPtr< triSurface > New(const fileName &name, const word &fileType)
Read construct from filename with given file type.
static wordHashSet readTypes()
Known readable file-types, including via friends or proxies.
A class for handling words, derived from Foam::string.
word ext() const
Return file name extension (part after last .)
word lessExt() const
Return word without extension (part before last .)
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
FlatOutput::OutputAdaptor< Container, Delimiters > flatOutput(const Container &obj, Delimiters delim)
Global flatOutput() function with specified output delimiters.
tmp< DimensionedField< TypeR, GeoMesh > > New(const tmp< DimensionedField< TypeR, GeoMesh > > &tdf1, const word &name, const dimensionSet &dimensions)
Global function forwards to reuseTmpDimensionedField::New.
word name(const expressions::valueTypeCode typeCode)
A word representation of a valueTypeCode. Empty for INVALID.
errorManipArg< error, int > exit(error &err, const int errNo=1)
constexpr char nl
The newline '\n' character (0x0a)