51 <<
"Cannot determine format from filename" <<
nl
58 else if (fileType ==
"gz")
66 return New(
name.lessExt(), fileType);
78 if (fileType ==
"ftr")
86 else if (fileType ==
"stl")
93 else if (fileType ==
"stlb")
97 surf->readSTL(
name,
true);
104 if (proxyType::readTypes().
found(fileType))
108 surf->transfer(*proxyType::New(
name, fileType));
116 if (proxyType::readTypes().
found(fileType))
120 surf->transfer(*proxyType::New(
name, fileType));
127 <<
"Unknown surface format " << fileType
128 <<
" for reading file " <<
name <<
nl
129 <<
"Valid types:" <<
nl
142 if (
name.has_ext(
"gz"))
Input from file stream as an ISstream, normally using std::ifstream for the actual input.
A surface geometry mesh with zone information, not to be confused with the similarly named surfaceMes...
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.
static autoPtr< T > New(Args &&... args)
Construct autoPtr with forwarding arguments.
A class for handling file names.
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.
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
tmp< DimensionedField< TypeR, GeoMesh > > New(const tmp< DimensionedField< TypeR, GeoMesh > > &tf1, const word &name, const dimensionSet &dimensions, const bool initCopy=false)
Global function forwards to reuseTmpDimensionedField::New.
FlatOutput::OutputAdaptor< Container, Delimiters > flatOutput(const Container &obj, Delimiters delim)
Global flatOutput() function with specified output delimiters.
error FatalError
Error stream (stdout output on all processes), with additional 'FOAM FATAL ERROR' header text and sta...
word name(const expressions::valueTypeCode typeCode)
A word representation of a valueTypeCode. Empty for expressions::valueTypeCode::INVALID.
errorManipArg< error, int > exit(error &err, const int errNo=1)
constexpr char nl
The newline '\n' character (0x0a).