46 #ifndef Foam_ensightOutputSurface_H 47 #define Foam_ensightOutputSurface_H 95 const string& description =
"surface" 111 bool old(vertexOutput_);
141 const bool isPointData =
false 169 #include "ensightOutputSurface.txx" A variant of OFstream with specialised handling for Ensight writing of strings, integers and floats (...
bool empty() const noexcept
Processor-local test for any elements.
void size(const label n)
Older name for setAddressableSize.
void writePointData(ensightFile &os, const Field< Type > &fld) const
Write a field of point values (serial-only)
label size() const noexcept
Processor-local size of all elements.
bool empty() const noexcept
True if List is empty (ie, size() is zero)
A variant of ensightFile (Ensight writing) that includes the extra geometry file header information...
void writeData(ensightFile &os, const Field< Type > &fld, const bool isPointData=false) const
Write a field of cell or point values (serial-only)
Sorting/classification of faces (2D) into corresponding ensight types.
bool vertexOutput() const noexcept
Output as 1D vertex/point elements instead of faces.
bool empty() const noexcept
Processor-local test for any elements.
label size() const noexcept
Processor-local size of all elements.
void operator=(const ensightOutputSurface &)=delete
No copy assignment.
ensightOutputSurface(const ensightOutputSurface &)=delete
No copy construct.
A variant of ensightFaces that holds references to contiguous points/faces with its own encapsulated ...
gmvFile<< "tracers "<< particles.size()<< nl;for(const passiveParticle &p :particles){ gmvFile<< p.position().x()<< ' ';}gmvFile<< nl;for(const passiveParticle &p :particles){ gmvFile<< p.position().y()<< ' ';}gmvFile<< nl;for(const passiveParticle &p :particles){ gmvFile<< p.position().z()<< ' ';}gmvFile<< nl;for(const word &name :lagrangianScalarNames){ IOField< scalar > fld(IOobject(name, runTime.timeName(), cloud::prefix, mesh, IOobject::MUST_READ, IOobject::NO_WRITE))
virtual ~ensightOutputSurface()=default
Destructor.
Mesh consisting of general polyhedral cells.
void write(ensightGeoFile &os) const
Write processor-local geometry (serial-only). No beginGeometry() marker.
void writeCellData(ensightFile &os, const Field< Type > &fld) const
Write a field of cell (face or vertex) values (serial-only)