Go to the documentation of this file.
48 bool parallel = Pstream::parRun();
59 for (
const label zoneId : cellZoneParts.sortedToc())
68 for (
const label
patchId : boundaryParts.sortedToc())
72 if (patchId < 0 || patchId >= bmesh.size())
100 if (faceZoneParts.empty())
114 const polyPatch& pp = bm[patchi].patch();
117 if (isA<processorFvPatch>(bm[patchi]))
127 ) = (0.5 * (bf.patchInternalField() + bf));
129 else if (!isA<emptyFvPatch>(bm[patchi]))
147 const auto& sfld = tsfld();
155 maxLen =
max(maxLen, iter.val().size());
164 for (
const label zoneId : faceZoneParts.sortedToc())
176 auto valIter =
values.begin();
207 bool parallel = Pstream::parRun();
218 for (
const label zoneId : cellZoneParts.sortedToc())
222 if (Pstream::master())
243 for (
const label
patchId : boundaryParts.sortedToc())
245 const ensightFaces& part = boundaryParts[
patchId];
247 if (Pstream::master())
249 os.beginPart(part.index());
253 part.uniqueMeshPoints(
mesh, uniquePointLabels, parallel);
258 const auto* vpp = isA<Field<Type>>(bfld);
266 const polyPatch& pp =
mesh.boundaryMesh()[
patchId];
268 for (label& pointi : uniquePointLabels)
270 pointi = pp.meshPointMap()[pointi];
277 UIndirectList<Type>(*vpp, uniquePointLabels),
296 for (
const label zoneId : faceZoneParts.sortedToc())
298 const ensightFaces& part = faceZoneParts[zoneId];
300 if (Pstream::master())
302 os.beginPart(part.index());
310 part.uniqueMeshPoints(
mesh, uniquePointLabels, parallel);
334 const bool nodeValues
343 pfld.
ref().checkOut();
344 pfld.
ref().rename(vf.name());
346 return ensightOutput::writePointField<Type>(
os, pfld, ensMesh);
349 return ensightOutput::writeVolField<Type>(
os, vf, ensMesh);
const labelList & faceIds() const noexcept
List< label > labelList
A List of labels.
const Map< ensightCells > & cellZoneParts() const noexcept
Encapsulation of volume meshes for writing in ensight format. It manages cellZones,...
void decrFaceIds(const label off)
label index() const noexcept
void resize(const label len)
A polyBoundaryMesh is a polyPatch list with additional search methods and registered IO.
A class for managing temporary objects.
static constexpr const zero Zero
List< T > values(const HashTable< T, Key, Hash > &tbl, const bool doSort=false)
A List obtained as a section of another List.
A HashTable to objects of type <T> with a label key.
bool writeFieldComponents(ensightFile &os, const char *key, const FieldContainer< Type > &fld, bool parallel)
label uniqueMeshPoints(const polyMesh &mesh, labelList &uniqueMeshPointLabels, bool parallel) const
const Internal & internalField() const
const polyMesh & mesh() const noexcept
Sorting/classification of faces (2D) into corresponding ensight types.
Mesh consisting of general polyhedral cells.
A patch is a list of labels that address the faces in the global face list.
PtrList< coordinateSystem > coordinates(solidRegions.size())
Sorting/classification of cells (3D) into corresponding ensight element types.
label max(const labelHashSet &set, label maxValue=labelMin)
bool writeFaceSubField(ensightFile &os, const Field< Type > &fld, const ensightFaces &part, bool parallel)
OBJstream os(runTime.globalPath()/outputName)
A collection of functions for writing volField content in ensight format.
Mesh data needed to do the Finite Volume discretisation.
Ensight output with specialized write() for strings, integers and floats. Correctly handles binary wr...
tmp< DimensionedField< TypeR, GeoMesh > > New(const tmp< DimensionedField< TypeR, GeoMesh >> &tdf1, const word &name, const dimensionSet &dimensions)
label uniqueMeshPoints(const polyMesh &mesh, labelList &uniqueMeshPointLabels, bool parallel) const
bool writeField(ensightFile &os, const Field< Type > &fld, const ensightCells &part, bool parallel)
tmp< GeometricField< Type, fvsPatchField, surfaceMesh > > linearInterpolate(const GeometricField< Type, fvPatchField, volMesh > &vf)
forAllConstIters(mixture.phases(), phase)
A 1D array of objects of type <T>, where the size of the vector is known and used for subscript bound...
bool writePointField(ensightFile &os, const GeometricField< Type, pointPatchField, pointMesh > &pf, const ensightMesh &ensMesh)
A List with indirect addressing.
const Map< label > & meshPointMap() const
const Map< ensightFaces > & faceZoneParts() const noexcept
Generic GeometricField class.
bool writeVolField(ensightFile &os, const GeometricField< Type, fvPatchField, volMesh > &vf, const ensightMesh &ensMesh)
label size(const elemType etype) const
const Boundary & boundaryField() const
const Map< ensightFaces > & boundaryParts() const noexcept