60#ifndef Foam_ensightMesh_H
61#define Foam_ensightMesh_H
99 const std::unique_ptr<options> options_;
115 mutable bool needsUpdate_;
130 ensightMesh(
const ensightMesh&) =
delete;
133 void operator=(
const ensightMesh&) =
delete;
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
345 bool lazy(
bool on)
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);
writer write("magLe", fld)
A 1D array of objects of type <T>, where the size of the vector is known and used for subscript bound...
A HashTable to objects of type <T> with a label key.
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
A 1D vector of objects of type <T>, where the size of the vector is known and can be used for subscri...
Inter-processor communications stream.
static bool parRun(const bool on) noexcept
Set as parallel run on/off.
Pointer management similar to std::unique_ptr, with some additional methods and type checking.
A variant of ensightFile (Ensight writing) that includes the extra geometry file header information.
Configuration options for the ensightMesh.
const wordRes & cellZoneExclude() const noexcept
Excluded cell zones. Future use.
bool useBoundaryMesh() const noexcept
Using boundary?
const wordRes & faceZoneSelection() const noexcept
Selection of face zones. Empty if unspecified.
bool useInternalMesh() const noexcept
Using internal?
bool useFaceZones() const noexcept
Using faceZones?
const wordRes & faceZoneExclude() const noexcept
Excluded face zones. Future use.
const wordRes & patchSelection() const noexcept
Selection of patches. Empty if unspecified.
bool lazy() const noexcept
Lazy creation? (ie, starts as needsUpdate).
const wordRes & patchExclude() const noexcept
Excluded patches. Empty if unspecified.
options()
Default construct. Non-lazy with internal/boundary/cellZones.
bool useCellZones() const noexcept
Using cellZones?
const wordRes & cellZoneSelection() const noexcept
Selection of cell zones. Empty if unspecified.
Encapsulation of volume meshes for writing in ensight format. It manages cellZones,...
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?
void write(ensightGeoFile &os, bool parallel=UPstream::parRun()) const
Write geometry to file (normally in parallel). Adds beginGeometry() marker.
void correct()
Update for new mesh.
int verbose() const noexcept
Output verbosity level.
bool empty() const noexcept
Any parts?
const ensightMesh::options & option() const
Reference to the writer/mesh options.
label size() const noexcept
Number of parts.
bool expire()
Mark as needing an update.
const Map< ensightCells > & cellZoneParts() const noexcept
Face elements per selected patch, lookup by patch index.
static const label internalZone
The zone-id for internal mesh or unzoned cells.
const polyMesh & mesh() const noexcept
Reference to the underlying polyMesh.
const Map< ensightFaces > & faceZoneParts() const noexcept
Face elements per faceZone, lookup by zone index.
Mesh consisting of general polyhedral cells.
A List of wordRe with additional matching capabilities.
static const wordRes & null() noexcept
Return a null wordRes (reference to a nullObject). Behaves like a empty wordRes.
limits reset(1/(limits.max()+VSMALL), 1/(limits.min()+VSMALL))
OBJstream os(runTime.globalPath()/outputName)
Ostream & print(Ostream &os, UIntType value, char off='0', char on='1')
Print 0/1 bits in the (unsigned) integral type.
#define FOAM_DEPRECATED_FOR(since, replacement)