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.
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.
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.
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.
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...
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.
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.