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 cellZoneInclude_;
320 const wordRes& cellZoneExclude() const
noexcept 326 const wordRes& faceZoneSelection() const
noexcept 328 return faceZoneInclude_;
332 const wordRes& faceZoneExclude() const
noexcept 349 bool useInternalMesh(
bool on)
noexcept;
353 bool useBoundaryMesh(
bool on);
357 bool useCellZones(
bool on);
360 void patchSelection(
const UList<wordRe>& patterns);
363 void patchSelection(List<wordRe>&& patterns);
366 void patchExclude(
const UList<wordRe>& patterns);
369 void patchExclude(List<wordRe>&& patterns);
372 void cellZoneSelection(
const UList<wordRe>& patterns);
375 void cellZoneSelection(List<wordRe>&& patterns);
378 void faceZoneSelection(
const UList<wordRe>& patterns);
381 void faceZoneSelection(List<wordRe>&& patterns);
387 void print(Ostream& os)
const;
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.
static const wordRes & null() noexcept
Return a null wordRes (reference to a nullObject). Behaves like a empty wordRes.
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.
bool expire()
Mark as needing an update.
limits reset(1/(limits.max()+VSMALL), 1/(limits.min()+VSMALL))
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.