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_;
290 bool useInternalMesh() const
noexcept;
293 bool useBoundaryMesh() const
noexcept;
304 return patchInclude_;
310 return patchExclude_;
316 return faceZoneInclude_;
320 const wordRes& cellZoneSelection() const
noexcept 322 return cellZoneInclude_;
337 bool useInternalMesh(
bool on)
noexcept;
341 bool useBoundaryMesh(
bool on);
345 bool useCellZones(
bool on);
348 void patchSelection(
const UList<wordRe>& patterns);
351 void patchSelection(List<wordRe>&& patterns);
354 void patchExclude(
const UList<wordRe>& patterns);
357 void patchExclude(List<wordRe>&& patterns);
360 void faceZoneSelection(
const UList<wordRe>& patterns);
363 void faceZoneSelection(List<wordRe>&& patterns);
366 void cellZoneSelection(
const UList<wordRe>& patterns);
369 void cellZoneSelection(List<wordRe>&& patterns);
const ensightMesh::options & option() const
Reference to the writer/mesh options.
Ostream & print(Ostream &os, UIntType value, char off='0', char on='1')
Print 0/1 bits in the (unsigned) integral type.
IntListType renumber(const labelUList &oldToNew, const IntListType &input)
Renumber the values within a list.
A variant of ensightFile (Ensight writing) that includes the extra geometry file header information...
static bool & parRun() noexcept
Test if this a parallel run.
const polyMesh & mesh() const noexcept
Reference to the underlying polyMesh.
class FOAM_DEPRECATED_FOR(2017-05, "Foam::Enum") NamedEnum
void correct()
Update for new mesh.
void write(ensightGeoFile &os, bool parallel=UPstream::parRun()) const
Write geometry to file (normally in parallel). Adds beginGeometry() marker.
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?
A List of wordRe with additional matching capabilities.
const Map< ensightFaces > & faceZoneParts() const noexcept
Face elements per faceZone, lookup by zone index.
const Map< ensightCells > & cellZoneParts() const noexcept
Face elements per selected patch, lookup by patch index.
Encapsulation of volume meshes for writing in ensight format. It manages cellZones, facesZone, patches.
OBJstream os(runTime.globalPath()/outputName)
bool expire()
Mark as needing an update.
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.
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 empty() const noexcept
Any parts?
Inter-processor communications stream.
A HashTable to objects of type <T> with a label key.