Namespaces | Functions
Foam::ensightOutput Namespace Reference

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

Namespaces

 Detail
 

Functions

template<class Type >
bool writeAreaField (ensightFile &os, const GeometricField< Type, faPatchField, areaMesh > &fld, const ensightFaMesh &ensMesh)
 
template<class Type >
bool writeVolField (ensightFile &os, const GeometricField< Type, fvPatchField, volMesh > &vf, const ensightMesh &ensMesh)
 
template<class Type >
bool writeVolField (ensightFile &os, const GeometricField< Type, fvPatchField, volMesh > &vf, const ensightMesh &ensMesh, const bool nodeValues)
 
template<class Type >
bool writePointField (ensightFile &os, const GeometricField< Type, pointPatchField, pointMesh > &pf, const ensightMesh &ensMesh)
 
void writeFaceList (ensightGeoFile &os, const UList< face > &faces)
 
void writeFaceList (ensightGeoFile &os, const UIndirectList< face > &faces)
 
void writeCellShapes (ensightGeoFile &os, const UList< cellShape > &shapes)
 
void writePolysPoints (ensightGeoFile &os, const cellUList &meshCells, const labelUList &addr, const faceUList &meshFaces, const labelUList &faceOwner)
 
void writePolysPoints (ensightGeoFile &os, const polyMesh &mesh, const labelUList &addr, const labelList &pointMap)
 
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)
 
void writeFaceConnectivity (ensightGeoFile &os, const ensightFaces &part, const faceUList &faces, bool parallel)
 
void writeFaceConnectivityPresorted (ensightGeoFile &os, const ensightFaces &part, const faceUList &faces, bool parallel)
 
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)
 
template<class Type >
bool writeCloudField (const IOField< Type > &field, ensightFile &os)
 
template<class Type >
bool writeCloudField (const IOobject &io, bool exists, autoPtr< ensightFile > &output)
 

Detailed Description

A collection of functions for writing ensight file content.

Source files

Function Documentation

◆ writeAreaField()

bool writeAreaField ( ensightFile os,
const GeometricField< Type, faPatchField, areaMesh > &  fld,
const ensightFaMesh ensMesh 
)

Definition at line 29 of file ensightOutputAreaFieldTemplates.C.

References ensightFaMesh::areaPart(), fld, os(), and Foam::ensightOutput::Detail::writeFaceLocalField().

Here is the call graph for this function:

◆ writeVolField() [1/2]

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

◆ writeVolField() [2/2]

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

Definition at line 323 of file ensightOutputVolFieldTemplates.C.

References Foam::New(), os(), and tmp::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 
)

Definition at line 130 of file ensightOutput.C.

References f(), and os().

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 
)

Definition at line 148 of file ensightOutput.C.

References f(), and os().

Here is the call graph for this function:

◆ writeCellShapes()

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

Definition at line 166 of file ensightOutput.C.

References os().

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 
)
Parameters
addrCell ids to write

Definition at line 231 of file ensightOutput.C.

References cellId, f(), faceId(), os(), and UList::size().

Here is the call graph for this function:

◆ writePolysPoints() [2/2]

void writePolysPoints ( ensightGeoFile os,
const polyMesh mesh,
const labelUList addr,
const labelList pointMap 
)
Parameters
addrCell ids to write
pointMapPoint map to use

Definition at line 188 of file ensightOutput.C.

References cellId, f(), faceId(), mesh, and os().

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 
)
Parameters
parallelCollective write?

Definition at line 362 of file ensightOutput.C.

References Foam::ensightOutput::Detail::getFaceSizes(), Foam::glTF::key(), os(), and writeFaceList().

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 
)
Parameters
parallelCollective write?

Definition at line 271 of file ensightOutput.C.

References Foam::ensightOutput::Detail::getFaceSizes(), Foam::glTF::key(), os(), and writeFaceList().

Here is the call graph for this function:

◆ writeFaceConnectivity() [3/3]

void writeFaceConnectivity ( ensightGeoFile os,
const ensightFaces part,
const faceUList faces,
bool  parallel 
)
Parameters
parallelCollective write?

Definition at line 455 of file ensightOutput.C.

References ensightFaces::faceIds(), os(), 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 
)
Parameters
parallelCollective write?

Definition at line 479 of file ensightOutput.C.

References os(), 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 
)
Parameters
parallelCollective write?

Definition at line 306 of file ensightOutputTemplates.C.

References ensightCells::cellIds(), fld, ensightPart::index(), Foam::glTF::key(), os(), reduce(), ensightCells::size(), ensightCells::total(), and Foam::ensightOutput::Detail::writeFieldComponents().

Referenced by rotorDiskSource::read(), exprResult::writeDict(), 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 
)
Parameters
parallelCollective write?

Definition at line 356 of file ensightOutputTemplates.C.

References ensightFaces::faceIds(), fld, ensightPart::index(), Foam::glTF::key(), os(), 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 
)

◆ writeCloudField() [1/2]

bool writeCloudField ( const IOField< Type > &  field,
ensightFile os 
)

◆ writeCloudField() [2/2]

bool writeCloudField ( const IOobject io,
bool  exists,
autoPtr< ensightFile > &  output 
)

Definition at line 145 of file ensightOutputCloudTemplates.C.

References Foam::exists(), field(), Foam::output(), IOobject::readOpt(), and writeCloudField().

Here is the call graph for this function: