39 return wordHashSet(*writefileExtensionMemberFunctionTablePtr_);
50 return fileFormats::surfaceFormatsCore::checkSupport
52 writeTypes(), ext, verbose,
"writing" 71 typename writefileExtensionMemberFunctionTable::iterator mfIter =
72 writefileExtensionMemberFunctionTablePtr_->find(ext);
74 if (mfIter == writefileExtensionMemberFunctionTablePtr_->end())
77 <<
"Unknown file extension " << ext <<
nl <<
nl 78 <<
"Valid types are :" <<
endl 95 word name(surfName.size() ? surfName : surfaceRegistry::defaultName);
106 t.
timePath()/surfaceRegistry::prefix/name/surfMesh::meshSubDir
109 if (!
isDir(objectDir))
123 surfMesh::meshSubDir,
135 IOstream::currentVersion,
155 surfMesh::meshSubDir,
167 IOstream::currentVersion,
172 if (this->useFaceMap())
194 surfMesh::meshSubDir,
206 os << this->surfZones();
A HashTable with keys but without contents.
const word & name() const
Return name.
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.
fileName timePath() const
Return current time path.
Ostream & endl(Ostream &os)
Add newline and flush stream.
Class to control time during OpenFOAM simulations that is also the top-level objectRegistry.
word ext() const
Return file name extension (part after last .)
Pair< int > faceMap(const label facePi, const face &faceP, const label faceNi, const face &faceN)
Various functions to operate on Lists.
Functions used by OpenFOAM that are specific to POSIX compliant operating systems and need to be repl...
static word timeName(const scalar, const int precision=curPrecision_)
Return time name of given scalar time.
bool isDir(const fileName &, const bool followLink=true)
Does the name exist as a directory in the file system?
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...
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.
bool writeHeader(Ostream &) const
Write header.
virtual ~MeshedSurfaceProxy()
Destructor.
static wordHashSet writeTypes()
The file format types that can be written via MeshedSurfaceProxy.
IOobject defines the attributes of an object for which implicit objectRegistry management is supporte...
A primitive field of type <T> with automated input and output.
#define InfoInFunction
Report an information message using Foam::Info.