Foam::ensightOutput Namespace Reference

A collection of functions for writing ensight file content. More...

Namespaces

 Detail
 Implementation details and output backends that would not normally be called directly by a user.
 

Functions

template<class Type >
bool writeVolField (ensightFile &os, const GeometricField< Type, fvPatchField, volMesh > &vf, const ensightMesh &ensMesh)
 Write volume field component-wise. More...
 
template<class Type >
bool writeVolField (ensightFile &os, const GeometricField< Type, fvPatchField, volMesh > &vf, const ensightMesh &ensMesh, const bool nodeValues)
 Write volume field component-wise, optionally forcing interpolation. More...
 
template<class Type >
bool writePointField (ensightFile &os, const GeometricField< Type, pointPatchField, pointMesh > &pf, const ensightMesh &ensMesh)
 Write point field component-wise. More...
 
void writeFaceList (ensightGeoFile &os, const UList< face > &faces)
 Write list of faces. More...
 
void writeFaceList (ensightGeoFile &os, const UIndirectList< face > &faces)
 Write list of faces. More...
 
void writeCellShapes (ensightGeoFile &os, const UList< cellShape > &shapes)
 Write cell connectivity via cell shapes. More...
 
void writePolysPoints (ensightGeoFile &os, const cellUList &meshCells, const labelUList &addr, const faceUList &meshFaces, const labelUList &faceOwner)
 Write the point ids per poly element. More...
 
void writePolysPoints (ensightGeoFile &os, const polyMesh &mesh, const labelUList &addr, const labelList &pointMap)
 Write the point ids per poly element, with point renumbering. More...
 
void writeFaceConnectivity (ensightGeoFile &os, const ensightFaces::elemType etype, const label nTotal, const UIndirectList< face > &faces, bool parallel)
 
void writeFaceConnectivity (ensightGeoFile &os, const ensightFaces::elemType etype, const label nTotal, const faceUList &faces, bool parallel)
 Write the regular face connectivity for specified type. More...
 
void writeFaceConnectivity (ensightGeoFile &os, const ensightFaces &part, const faceUList &faces, bool parallel)
 Write the face connectivity for the part. More...
 
void writeFaceConnectivityPresorted (ensightGeoFile &os, const ensightFaces &part, const faceUList &faces, bool parallel)
 Write the presorted face connectivity for the part. More...
 
template<class Type >
bool writeField (ensightFile &os, const Field< Type > &fld, const ensightCells &part, bool parallel)
 
template<class Type >
bool writeField (ensightFile &os, const Field< Type > &fld, const ensightFaces &part, bool parallel)
 
bool writeCloudPositions (const fvMesh &mesh, const word &cloudName, bool exists, autoPtr< ensightFile > &output, Pstream::commsTypes comm=Pstream::commsTypes::blocking)
 Write cloud positions. More...
 
template<class Type >
bool writeCloudField (const IOField< Type > &field, ensightFile &os, Pstream::commsTypes comm=Pstream::commsTypes::blocking)
 Write cloud field, returning true if the field is non-empty. More...
 
template<class Type >
bool writeCloudField (const IOobject &io, bool exists, autoPtr< ensightFile > &output, Pstream::commsTypes comm=Pstream::commsTypes::blocking)
 

Detailed Description

A collection of functions for writing ensight file content.

Source files

Function Documentation

◆ writeVolField() [1/2]

◆ writeVolField() [2/2]

bool writeVolField ( ensightFile &  os,
const GeometricField< Type, fvPatchField, volMesh > &  vf,
const ensightMesh &  ensMesh,
const bool  nodeValues 
)

Write volume field component-wise, optionally forcing interpolation.

Definition at line 296 of file ensightOutputVolFieldTemplates.C.

References Foam::fac::interpolate(), Foam::New(), and tmp< T >::ref().

Here is the call graph for this function:

◆ writePointField()

bool writePointField ( ensightFile &  os,
const GeometricField< Type, pointPatchField, pointMesh > &  pf,
const ensightMesh &  ensMesh 
)

◆ writeFaceList() [1/2]

void writeFaceList ( ensightGeoFile &  os,
const UList< face > &  faces 
)

Write list of faces.

Definition at line 137 of file ensightOutput.C.

References f(), ensightFile::newline(), and ensightFile::write().

Referenced by writeFaceConnectivity().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ writeFaceList() [2/2]

void writeFaceList ( ensightGeoFile &  os,
const UIndirectList< face > &  faces 
)

Write list of faces.

Definition at line 155 of file ensightOutput.C.

References f(), ensightFile::newline(), and ensightFile::write().

Here is the call graph for this function:

◆ writeCellShapes()

void writeCellShapes ( ensightGeoFile &  os,
const UList< cellShape > &  shapes 
)

Write cell connectivity via cell shapes.

Definition at line 173 of file ensightOutput.C.

References ensightFile::newline(), and ensightFile::write().

Here is the call graph for this function:

◆ writePolysPoints() [1/2]

void writePolysPoints ( ensightGeoFile &  os,
const cellUList &  meshCells,
const labelUList &  addr,
const faceUList &  meshFaces,
const labelUList &  faceOwner 
)

Write the point ids per poly element.

Points have been already renumbered

Parameters
addrCell ids to write

Definition at line 238 of file ensightOutput.C.

References cellId, f(), faceId(), ensightFile::newline(), UList< T >::size(), and ensightFile::write().

Here is the call graph for this function:

◆ writePolysPoints() [2/2]

void writePolysPoints ( ensightGeoFile &  os,
const polyMesh &  mesh,
const labelUList &  addr,
const labelList &  pointMap 
)

Write the point ids per poly element, with point renumbering.

Parameters
addrCell ids to write
pointMapPoint map to use

Definition at line 195 of file ensightOutput.C.

References cellId, f(), faceId(), mesh, ensightFile::newline(), and ensightFile::write().

Here is the call graph for this function:

◆ writeFaceConnectivity() [1/3]

void writeFaceConnectivity ( ensightGeoFile &  os,
const ensightFaces::elemType  etype,
const label  nTotal,
const UIndirectList< face > &  faces,
bool  parallel 
)

Write the regular face connectivity for specified type and and specified faces

Parameters
parallelCollective write?

Definition at line 360 of file ensightOutput.C.

References Foam::ensightOutput::Detail::getFaceSizes(), ensightFile::newline(), ensightFile::write(), writeFaceList(), ensightGeoFile::writeKeyword(), and ensightFile::writeLabels().

Referenced by ensightOutputSurface::write(), writeFaceConnectivity(), and writeFaceConnectivityPresorted().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ writeFaceConnectivity() [2/3]

void writeFaceConnectivity ( ensightGeoFile &  os,
const ensightFaces::elemType  etype,
const label  nTotal,
const faceUList &  faces,
bool  parallel 
)

Write the regular face connectivity for specified type.

Parameters
parallelCollective write?

Definition at line 278 of file ensightOutput.C.

References Foam::ensightOutput::Detail::getFaceSizes(), ensightFile::newline(), ensightFile::write(), writeFaceList(), ensightGeoFile::writeKeyword(), and ensightFile::writeLabels().

Here is the call graph for this function:

◆ writeFaceConnectivity() [3/3]

void writeFaceConnectivity ( ensightGeoFile &  os,
const ensightFaces &  part,
const faceUList &  faces,
bool  parallel 
)

Write the face connectivity for the part.

Parameters
parallelCollective write?

Definition at line 443 of file ensightOutput.C.

References ensightFaces::faceIds(), ensightFaces::total(), and writeFaceConnectivity().

Here is the call graph for this function:

◆ writeFaceConnectivityPresorted()

void writeFaceConnectivityPresorted ( ensightGeoFile &  os,
const ensightFaces &  part,
const faceUList &  faces,
bool  parallel 
)

Write the presorted face connectivity for the part.

This is a special case when the list of faces is already in ensight sorted order

Parameters
parallelCollective write?

Definition at line 467 of file ensightOutput.C.

References ensightFaces::range(), ensightFaces::total(), and writeFaceConnectivity().

Referenced by ensightFaces::write().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ writeField() [1/2]

bool writeField ( ensightFile &  os,
const Field< Type > &  fld,
const ensightCells &  part,
bool  parallel 
)

Write a field of cell values as an indirect list, using the cell ids from ensightCells

Parameters
parallelCollective write?

Definition at line 246 of file ensightOutputTemplates.C.

References ensightFile::beginPart(), ensightCells::cellIds(), fld, ensightPart::index(), reduce(), ensightCells::size(), ensightCells::total(), and Foam::ensightOutput::Detail::writeFieldComponents().

Referenced by rotorDiskSource::read(), ensightOutputSurface::writeFaceData(), and writeVolField().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ writeField() [2/2]

bool writeField ( ensightFile &  os,
const Field< Type > &  fld,
const ensightFaces &  part,
bool  parallel 
)

Write a field of faces values as an indirect list, using the face ids from ensightFaces

Parameters
parallelCollective write?

Definition at line 295 of file ensightOutputTemplates.C.

References ensightFile::beginPart(), ensightFaces::faceIds(), fld, ensightPart::index(), reduce(), ensightFaces::size(), ensightFaces::total(), and Foam::ensightOutput::Detail::writeFieldComponents().

Here is the call graph for this function:

◆ writeCloudPositions()

bool writeCloudPositions ( const fvMesh &  mesh,
const word &  cloudName,
bool  exists,
autoPtr< ensightFile > &  output,
Pstream::commsTypes  comm = Pstream::commsTypes::blocking 
)

Write cloud positions.

Definition at line 79 of file ensightOutputCloud.C.

References ensightFile::beginParticleCoordinates(), cloudName(), Foam::exists(), IOstreamOption::format(), mesh, p, Foam::returnReduce(), ensightFile::write(), and Foam::writeMeasured().

Referenced by if().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ writeCloudField() [1/2]

bool writeCloudField ( const IOField< Type > &  field,
ensightFile &  os,
Pstream::commsTypes  comm = Pstream::commsTypes::blocking 
)

Write cloud field, returning true if the field is non-empty.

Definition at line 35 of file ensightOutputCloudTemplates.C.

References Foam::component(), Foam::BitOps::count(), Foam::constant::electromagnetic::e, field(), Foam::mag(), ensightFile::newline(), Foam::returnReduce(), ensightFile::write(), and Foam::Zero.

Referenced by writeCloudField().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ writeCloudField() [2/2]

bool writeCloudField ( const IOobject &  io,
bool  exists,
autoPtr< ensightFile > &  output,
Pstream::commsTypes  comm = Pstream::commsTypes::blocking 
)

Read cloud field from IOobject (if exists == true) and write, always returning true.

Definition at line 119 of file ensightOutputCloudTemplates.C.

References Foam::exists(), field(), IOobject::readOpt(), autoPtr< T >::ref(), and writeCloudField().

Here is the call graph for this function: