Go to the documentation of this file.
42 return wordHashSet(*writefileExtensionMemberFunctionTablePtr_);
53 return fileFormats::surfaceFormatsCore::checkSupport
55 writeTypes(), ext, verbose,
"writing"
86 auto mfIter = writefileExtensionMemberFunctionTablePtr_->cfind(ext);
91 <<
"Unknown file extension " << ext <<
nl <<
nl
92 <<
"Valid types:" <<
nl
97 mfIter()(
name, surf, options);
120 t.
timePath()/surfaceRegistry::prefix/
name/surfMesh::meshSubDir
123 if (!
isDir(objectDir))
137 surfMesh::meshSubDir,
149 IOstream::currentVersion,
157 io.writeEndDivider(os);
169 surfMesh::meshSubDir,
181 IOstream::currentVersion,
186 if (this->useFaceMap())
188 os << UIndirectList<Face>(this->surfFaces(), this->
faceMap());
192 os << this->surfFaces();
195 io.writeEndDivider(os);
207 surfMesh::meshSubDir,
219 os << this->surfZones();
256 for (
const Face&
f : this->surfFaces())
258 nTri +=
f.nTriangles();
int debug
Static debugging option.
Defines the attributes of an object for which implicit objectRegistry management is supported,...
#define InfoInFunction
Report an information message using Foam::Info.
Class to control time during OpenFOAM simulations that is also the top-level objectRegistry.
Pair< int > faceMap(const label facePi, const face &faceP, const label faceNi, const face &faceN)
const word & name() const
Return name.
A class for handling words, derived from Foam::string.
A class for handling file names.
A primitive field of type <T> with automated input and output.
label nTriangles() const
Count number of triangles.
static Ostream & writeEndDivider(Ostream &os)
Write the standard end file divider.
static word timeName(const scalar t, const int precision=precision_)
static bool canWriteType(const word &ext, const bool verbose=false)
Can this file format type be written via MeshedSurfaceProxy?
Ostream & endl(Ostream &os)
Add newline and flush stream.
word ext() const
Return file name extension (part after last .)
A proxy for writing MeshedSurface, UnsortedMeshedSurface and surfMesh to various file formats.
IOobject for a surfZoneList.
static void write(const fileName &name, const MeshedSurfaceProxy &surf, const dictionary &options)
Write to file, select based on its extension.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
word name(const complex &c)
Return string representation of complex.
fileName timePath() const
Return current time path.
static const word defaultName("coeffs")
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
errorManipArg< error, int > exit(error &err, const int errNo=1)
Output to file stream, using an OSstream.
static wordHashSet writeTypes()
The file format types that can be written via MeshedSurfaceProxy.
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
FlatOutput< Container > flatOutput(const Container &obj, label len=0)
Global flatOutput function.
void write(vtk::formatter &fmt, const Type &val, const label n=1)
Component-wise write of a value (N times)
HashSet< word > wordHashSet
A HashSet with word keys.
bool writeHeader(Ostream &os) const
Write header.
Various functions to operate on Lists.
bool mkDir(const fileName &pathName, mode_t mode=0777)
Make a directory and return an error if it could not be created.
MeshedSurfaceProxy(const pointField &pointLst, const UList< Face > &faceLst, const UList< surfZone > &zoneLst=List< surfZone >(), const labelUList &faceMap=labelUList::null())
Construct from component references.
bool isDir(const fileName &name, const bool followLink=true)
Does the name exist as a DIRECTORY in the file system?