60 #ifndef Foam_ensightMesh_H 61 #define Foam_ensightMesh_H 99 const std::unique_ptr<options> options_;
115 mutable bool needsUpdate_;
173 return cellZoneParts_;
180 return faceZoneParts_;
187 return boundaryParts_;
299 return patchInclude_;
305 return patchExclude_;
311 return faceZoneInclude_;
317 return cellZoneInclude_;
const wordRes & cellZoneSelection() const noexcept
Selection of faceZones. Empty if unspecified.
options()
Default construct. Non-lazy with internal/boundary/cellZones.
void write(ensightGeoFile &os, bool parallel=Pstream::parRun()) const
Write geometry to file. Normally in parallel.
const ensightMesh::options & option() const
Reference to the writer/mesh options.
IntListType renumber(const labelUList &oldToNew, const IntListType &input)
Renumber the values (not the indices) of a list.
Specialized Ensight output with extra geometry file header.
static bool & parRun() noexcept
Test if this a parallel run.
const polyMesh & mesh() const noexcept
Reference to the underlying polyMesh.
void correct()
Update for new mesh.
const wordRes & patchSelection() const noexcept
Selection of patches. Empty if unspecified.
const Map< ensightFaces > & boundaryParts() const noexcept
Face elements per selected patch, lookup by patch index.
bool needsUpdate() const noexcept
Does the content need an update?
bool useCellZones() const noexcept
Using cellZones?
A List of wordRe with additional matching capabilities.
const Map< ensightFaces > & faceZoneParts() const noexcept
Face elements per faceZone, lookup by zone index.
bool useBoundaryMesh() const noexcept
Using boundary?
const Map< ensightCells > & cellZoneParts() const noexcept
Face elements per selected patch, lookup by patch index.
void reset()
Reset to defaults.
Encapsulation of volume meshes for writing in ensight format. It manages cellZones, facesZone, patches.
const wordRes & faceZoneSelection() const noexcept
Selection of faceZones. Empty if unspecified.
OBJstream os(runTime.globalPath()/outputName)
bool useFaceZones() const noexcept
Using faceZones?
bool expire()
Mark as needing an update.
bool useInternalMesh() const noexcept
Using internal?
const wordRes & patchExclude() const noexcept
Selection of black listed patches. Empty if unspecified.
label size() const noexcept
Number of parts.
static const label internalZone
The zone-id for internal mesh or unzoned cells.
Configuration options for the ensightMesh.
void print(Ostream &os) const
Report values.
Pointer management similar to std::unique_ptr, with some additional methods and type checking...
Mesh consisting of general polyhedral cells.
int verbose() const noexcept
Output verbosity level.
bool lazy() const noexcept
Lazy creation? (ie, starts as needsUpdate)
bool empty() const noexcept
Any parts?
A HashTable to objects of type <T> with a label key.