39 return wordHashSet(*writefileExtensionMemberFunctionTablePtr_);
50 return fileFormats::surfaceFormatsCore::checkSupport
52 writeTypes(), ext, verbose,
"writing"
69 word ext =
name.ext();
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();
Various functions to operate on Lists.
Functions used by OpenFOAM that are specific to POSIX compliant operating systems and need to be repl...
A HashTable with keys but without contents.
A primitive field of type <Type> with automated input and output.
IOobject defines the attributes of an object for which implicit objectRegistry management is supporte...
static Stream & writeEndDivider(Stream &os)
Write the standard end file divider.
const word & name() const
Return name.
bool writeHeader(Ostream &) const
Write header.
A proxy for writing MeshedSurface, UnsortedMeshedSurface and surfMesh to various file formats.
static void write(const fileName &, const MeshedSurfaceProxy< Face > &)
Write to file.
static wordHashSet writeTypes()
The file format types that can be written via MeshedSurfaceProxy.
MeshedSurfaceProxy(const pointField &, const List< Face > &, const List< surfZone > &=List< surfZone >(), const List< label > &faceMap=List< label >())
Construct from component references.
static bool canWriteType(const word &ext, const bool verbose=false)
Can this file format type be written via MeshedSurfaceProxy?
virtual ~MeshedSurfaceProxy()
Destructor.
Class to control time during OpenFOAM simulations that is also the top-level objectRegistry.
IOstream::streamFormat writeFormat() const
Default write format.
IOstream::compressionType writeCompression() const
Default write compression.
fileName timePath() const
Return current time path.
const word & name() const
Return const reference to name.
A class for handling file names.
IOobject for a surfZoneList.
A class for handling words, derived from string.
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
#define InfoInFunction
Report an information message using Foam::Info.
errorManipArg< error, int > exit(error &err, const int errNo=1)
Ostream & endl(Ostream &os)
Add newline and flush stream.
word name(const bool)
Return a word representation of a bool.
ListType reorder(const label size, const typename ListType::value_type &defaultValue, const labelUList &oldToNew, const ListType &lst)
bool isDir(const fileName &, const bool followLink=true)
Does the name exist as a directory in the file system?
Pair< int > faceMap(const label facePi, const face &faceP, const label faceNi, const face &faceN)
HashSet wordHashSet
A HashSet with word keys.