38 return wordHashSet(*writefileExtensionMemberFunctionTablePtr_);
49 return fileFormats::surfaceFormatsCore::checkSupport
51 writeTypes(), ext, verbose,
"writing" 70 typename writefileExtensionMemberFunctionTable::iterator mfIter =
71 writefileExtensionMemberFunctionTablePtr_->find(ext);
73 if (mfIter == writefileExtensionMemberFunctionTablePtr_->end())
76 <<
"Unknown file extension " << ext <<
nl <<
nl 77 <<
"Valid types are :" <<
endl 94 word name(surfName.size() ? surfName : surfaceRegistry::defaultName);
105 t.
timePath()/surfaceRegistry::prefix/name/surfMesh::meshSubDir
108 if (!
isDir(objectDir))
122 surfMesh::meshSubDir,
134 IOstream::currentVersion,
154 surfMesh::meshSubDir,
166 IOstream::currentVersion,
171 if (this->useFaceMap())
193 surfMesh::meshSubDir,
205 os << this->surfZones();
A HashTable with keys but without contents.
A class for handling file names.
errorManipArg< error, int > exit(error &err, const int errNo=1)
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
Ostream & endl(Ostream &os)
Add newline and flush stream.
bool writeHeader(Ostream &) const
Write header.
bool isDir(const fileName &)
Does the name exist as a DIRECTORY in the file system?
static word timeName(const scalar, const int precision=precision_)
Return time name of given scalar time.
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)
Various functions to operate on Lists.
A class for handling words, derived from string.
MeshedSurfaceProxy(const pointField &, const List< Face > &, const List< surfZone > &=List< surfZone >(), const List< label > &faceMap=List< label >())
Construct from component references.
IOobject for a surfZoneList.
HashSet wordHashSet
A HashSet with word keys.
static bool canWriteType(const word &ext, const bool verbose=false)
Can this file format type be written via MeshedSurfaceProxy?
ListType reorder(const labelUList &oldToNew, const ListType &)
Reorder the elements (indices, not values) of a list.
A proxy for writing MeshedSurface, UnsortedMeshedSurface and surfMesh to various file formats...
bool mkDir(const fileName &, mode_t=0777)
Make a directory and return an error if it could not be created.
word name(const complex &)
Return a string representation of a complex.
static Stream & writeEndDivider(Stream &os)
Write the standard end file divider.
static void write(const fileName &, const MeshedSurfaceProxy< Face > &)
Write to file.
word ext() const
Return file name extension (part after last .)
virtual ~MeshedSurfaceProxy()
Destructor.
static wordHashSet writeTypes()
The file format types that can be written via MeshedSurfaceProxy.
fileName timePath() const
Return current time path.
IOobject defines the attributes of an object for which implicit objectRegistry management is supporte...
const word & name() const
Return name.
#define InfoInFunction
Report an information message using Foam::Info.