Go to the documentation of this file.
38 return wordHashSet(*writefileExtensionMemberFunctionTablePtr_);
49 return fileFormats::surfaceFormatsCore::checkSupport
51 writeTypes(), ext, verbose,
"writing"
65 Info<<
"MeshedSurfaceProxy::write"
66 "(const fileName&, const MeshedSurfaceProxy&) : "
71 word ext =
name.ext();
73 typename writefileExtensionMemberFunctionTable::iterator mfIter =
74 writefileExtensionMemberFunctionTablePtr_->find(ext);
76 if (mfIter == writefileExtensionMemberFunctionTablePtr_->end())
79 <<
"Unknown file extension " << ext <<
nl <<
nl
80 <<
"Valid types are :" <<
endl
97 word
name(surfName.size() ? surfName : surfaceRegistry::defaultName);
101 Info<<
"MeshedSurfaceProxy::write"
102 "(const Time&, const word&) : "
103 "writing to " <<
name
109 const fileName objectDir
111 t.timePath()/surfaceRegistry::prefix/
name/surfMesh::meshSubDir
114 if (!
isDir(objectDir))
128 surfMesh::meshSubDir,
140 IOstream::currentVersion,
148 io.writeEndDivider(os);
160 surfMesh::meshSubDir,
172 IOstream::currentVersion,
177 if (this->useFaceMap())
187 io.writeEndDivider(os);
199 surfMesh::meshSubDir,
208 OFstream os(objectDir/io.name());
211 os << this->surfZones();
213 io.writeEndDivider(os);
Pair< int > faceMap(const label facePi, const face &faceP, const label faceNi, const face &faceN)
A class for handling words, derived from string.
A class for handling file names.
ListType reorder(const labelUList &oldToNew, const ListType &)
Reorder the elements (indices, not values) of a list.
static void write(const fileName &, const MeshedSurfaceProxy< Face > &)
Write to file.
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.
virtual ~MeshedSurfaceProxy()
Destructor.
A HashTable with keys but without contents.
A proxy for writing MeshedSurface, UnsortedMeshedSurface and surfMesh to various file formats.
vectorIOField pointIOField
pointIOField is a vectorIOField.
Pre-declare SubField and related Field type.
bool isDir(const fileName &)
Does the name exist as a DIRECTORY in the file system?
errorManipArg< error, int > exit(error &err, const int errNo=1)
static wordHashSet writeTypes()
The file format types that can be written via MeshedSurfaceProxy.
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
MeshedSurfaceProxy(const pointField &, const List< Face > &, const List< surfZone > &=List< surfZone >(), const List< label > &faceMap=List< label >())
Construct from component references.
HashSet wordHashSet
A HashSet with word keys.
Various functions to operate on Lists.
CompactIOList< face, label > faceCompactIOList
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.