A collection of functions for writing ensight file content. More...
Namespaces | |
| namespace | Detail |
| Implementation details and output backends that would not normally be called directly by a user. | |
Classes | |
| class | writerCaching |
| State information for writers with collated times. More... | |
Typedefs | |
| typedef DynamicList< float > | floatBufferType |
| The list type used for component-wise buffering. | |
Functions | |
| template<class Type> | |
| bool | writeAreaField (ensightOutput::floatBufferType &scratch, ensightFile &os, const GeometricField< Type, faPatchField, areaMesh > &fld, const ensightFaMesh &ensMesh) |
| Write finite-area field component-wise. | |
| template<class Type> | |
| bool | writeAreaField (ensightFile &os, const GeometricField< Type, faPatchField, areaMesh > &fld, const ensightFaMesh &ensMesh) |
| Write finite-area field component-wise. | |
| template<class Type> | |
| bool | writeVolField (ensightOutput::floatBufferType &scratch, ensightFile &os, const GeometricField< Type, fvPatchField, volMesh > &vf, const ensightMesh &ensMesh) |
| Write volume field component-wise. | |
| template<class Type> | |
| bool | writeVolField (ensightFile &os, const GeometricField< Type, fvPatchField, volMesh > &vf, const ensightMesh &ensMesh) |
| Write volume field component-wise. | |
| template<class Type> | |
| bool | writeVolField (ensightOutput::floatBufferType &scratch, ensightFile &os, const GeometricField< Type, fvPatchField, volMesh > &vf, const ensightMesh &ensMesh, const bool nodeValues) |
| Write volume field component-wise, optionally forcing interpolation. | |
| 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. | |
| template<class Type> | |
| bool | writePointField (ensightOutput::floatBufferType &scratch, ensightFile &os, const GeometricField< Type, pointPatchField, pointMesh > &pf, const ensightMesh &ensMesh) |
| Write point field component-wise. | |
| template<class Type> | |
| bool | writePointField (ensightFile &os, const GeometricField< Type, pointPatchField, pointMesh > &pf, const ensightMesh &ensMesh) |
| Write point field component-wise. | |
| void | writeFaceList (ensightGeoFile &os, const UList< face > &faces, const label pointOffset=0) |
| Write list of faces. | |
| void | writeFaceList (ensightGeoFile &os, const UIndirectList< face > &faces, const label pointOffset=0) |
| Write list of faces (indirect addressing). | |
| void | writeFaceList (ensightGeoFile &os, const CompactListList< label > &faces, const label pointOffset=0) |
| Write list of faces (stored in compact form). | |
| void | writeCellShapes (ensightGeoFile &os, const UList< cellShape > &shapes, const label pointOffset=0) |
| Write cell connectivity via cell shapes. | |
| void | writePolysPoints (ensightGeoFile &os, const cellUList &meshCells, const labelUList &addr, const faceUList &meshFaces, const labelUList &faceOwner) |
| Write the point ids per poly element. | |
| void | writePolysPoints (ensightGeoFile &os, const polyMesh &mesh, const labelUList &addr, const labelList &pointMap) |
| Write the point ids per poly element, with point renumbering. | |
| 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. | |
| void | writeFaceConnectivity (ensightGeoFile &os, const ensightFaces::elemType etype, const label nTotal, const faceUList &faces, bool parallel) |
| Write the regular face connectivity for specified type. | |
| void | writeFaceConnectivity (ensightGeoFile &os, const ensightFaces &part, const faceUList &faces, bool parallel) |
| Write the face connectivity for the part. | |
| void | writeFaceConnectivityPresorted (ensightGeoFile &os, const ensightFaces &part, const faceUList &faces, bool parallel) |
| Write the presorted face connectivity for the part. | |
| template<class Type> | |
| bool | writeField (ensightOutput::floatBufferType &scratch, 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. | |
| template<class Type> | |
| bool | writeField (ensightOutput::floatBufferType &scratch, 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. | |
| template<class Type> | |
| 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. | |
| template<class Type> | |
| 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. | |
| bool | writeCloudPositions (ensightFile &os, DynamicList< floatVector > &positions, const globalIndex &procAddr) |
| Write cloud positions. | |
| bool | writeCloudPositions (ensightFile &os, DynamicList< floatVector > &positions) |
| Write cloud positions. | |
| bool | writeCloudPositions (ensightFile &os, const fvMesh &mesh, const word &cloudName, bool exists) |
| Write cloud positions. | |
| template<class Type> | |
| bool | writeCloudField (ensightFile &os, const UList< Type > &field, const globalIndex &procAddr) |
| Write cloud field, returning true if the field is non-empty. | |
| template<class Type> | |
| bool | writeCloudField (ensightFile &os, const UList< Type > &field) |
| Write cloud field, returning true if the field is non-empty. | |
| template<class Type> | |
| bool | readWriteCloudField (ensightFile &os, const IOobject &fieldObject, bool existsAny) |
| Read cloud field from IOobject (if exists == true) and write, always returning true. | |
Variables | |
| int | debug |
| Static debugging option. | |
| int | maxChunk_ |
| Upper limit on number of items for bundled off-processor field transfers. The component-wise transfer uses float (4 bytes). | |
A collection of functions for writing ensight file content.
| typedef DynamicList<float> floatBufferType |
The list type used for component-wise buffering.
Always has value_type = float (what ensight uses internally)
Definition at line 55 of file ensightOutputFwd.H.
| bool writeAreaField | ( | ensightOutput::floatBufferType & | scratch, |
| ensightFile & | os, | ||
| const GeometricField< Type, faPatchField, areaMesh > & | fld, | ||
| const ensightFaMesh & | ensMesh ) |
Write finite-area field component-wise.
| scratch | Component scratch buffer |
| os | Output file (must be valid on master) |
| fld | The field content to be written |
| ensMesh | The addressing into the field |
Referenced by writeAreaField(), and Foam::writeAreaField().


| bool writeAreaField | ( | ensightFile & | os, |
| const GeometricField< Type, faPatchField, areaMesh > & | fld, | ||
| const ensightFaMesh & | ensMesh ) |
Write finite-area field component-wise.
| os | Output file (must be valid on master) |
| fld | The field content to be written |
| ensMesh | The addressing into the field |
Definition at line 74 of file ensightOutputAreaField.H.
References fld(), os(), and writeAreaField().

| bool writeVolField | ( | ensightOutput::floatBufferType & | scratch, |
| ensightFile & | os, | ||
| const GeometricField< Type, fvPatchField, volMesh > & | vf, | ||
| const ensightMesh & | ensMesh ) |
Write volume field component-wise.
| scratch | Component scratch buffer |
| os | Output file (must be valid on master) |
| vf | The field content to be written |
| ensMesh | The addressing (element-wise) into the field |
References os().
Referenced by writeVolField(), writeVolField(), and Foam::writeVolField().


| bool writeVolField | ( | ensightFile & | os, |
| const GeometricField< Type, fvPatchField, volMesh > & | vf, | ||
| const ensightMesh & | ensMesh ) |
Write volume field component-wise.
| os | Output file (must be valid on master) |
| vf | The field content to be written |
| ensMesh | The addressing (element-wise) into the field |
Definition at line 74 of file ensightOutputVolField.H.
References os(), and writeVolField().

| bool writeVolField | ( | ensightOutput::floatBufferType & | scratch, |
| ensightFile & | os, | ||
| const GeometricField< Type, fvPatchField, volMesh > & | vf, | ||
| const ensightMesh & | ensMesh, | ||
| const bool | nodeValues ) |
Write volume field component-wise, optionally forcing interpolation.
| scratch | Component scratch buffer |
| os | Output file (must be valid on master) |
| vf | The field content to be written |
| ensMesh | The addressing (element-wise) into the field |
| nodeValues | Interpolate values to points |
References os().

| bool writeVolField | ( | ensightFile & | os, |
| const GeometricField< Type, fvPatchField, volMesh > & | vf, | ||
| const ensightMesh & | ensMesh, | ||
| const bool | nodeValues ) |
Write volume field component-wise, optionally forcing interpolation.
| os | Output file (must be valid on master) |
| vf | The field content to be written |
| ensMesh | The addressing (element-wise) into the field |
| nodeValues | Interpolate values to points |
Definition at line 116 of file ensightOutputVolField.H.
References os(), and writeVolField().

| bool writePointField | ( | ensightOutput::floatBufferType & | scratch, |
| ensightFile & | os, | ||
| const GeometricField< Type, pointPatchField, pointMesh > & | pf, | ||
| const ensightMesh & | ensMesh ) |
Write point field component-wise.
| scratch | Component scratch buffer |
| os | Output file (must be valid on master) |
| pf | The field content to be written |
| ensMesh | The addressing (element-wise) into the field |
References os().
Referenced by writePointField(), and Foam::writePointField().


| bool writePointField | ( | ensightFile & | os, |
| const GeometricField< Type, pointPatchField, pointMesh > & | pf, | ||
| const ensightMesh & | ensMesh ) |
Write point field component-wise.
| os | Output file (must be valid on master) |
| pf | The field content to be written |
| ensMesh | The addressing (element-wise) into the field |
Definition at line 161 of file ensightOutputVolField.H.
References os(), and writePointField().

| void writeFaceList | ( | ensightGeoFile & | os, |
| const UList< face > & | faces, | ||
| const label | pointOffset = 0 ) |
Write list of faces.
| pointOffset | Additional point offset for each face |
Definition at line 175 of file ensightOutput.C.
References os(), and Foam::ensightOutput::Detail::writeLabelListList().
Referenced by writeFaceConnectivity(), and writeFaceConnectivity().


| void writeFaceList | ( | ensightGeoFile & | os, |
| const UIndirectList< face > & | faces, | ||
| const label | pointOffset = 0 ) |
Write list of faces (indirect addressing).
| pointOffset | Additional point offset for each face |
Definition at line 186 of file ensightOutput.C.
References os(), and Foam::ensightOutput::Detail::writeLabelListList().

| void writeFaceList | ( | ensightGeoFile & | os, |
| const CompactListList< label > & | faces, | ||
| const label | pointOffset = 0 ) |
Write list of faces (stored in compact form).
| pointOffset | Additional point offset for each face |
Definition at line 197 of file ensightOutput.C.
References os(), and Foam::ensightOutput::Detail::writeLabelListList().

| void writeCellShapes | ( | ensightGeoFile & | os, |
| const UList< cellShape > & | shapes, | ||
| const label | pointOffset = 0 ) |
Write cell connectivity via cell shapes.
| pointOffset | Additional point offset |
Definition at line 208 of file ensightOutput.C.
References os(), and Foam::ensightOutput::Detail::writeLabelListList().
Referenced by ensightCells::writeBox().


| 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
| addr | Cell ids to write |
Definition at line 341 of file ensightOutput.C.
References cellId, f(), faceId(), os(), and UList< T >::size().

| void writePolysPoints | ( | ensightGeoFile & | os, |
| const polyMesh & | mesh, | ||
| const labelUList & | addr, | ||
| const labelList & | pointMap ) |
Write the point ids per poly element, with point renumbering.
const cellList& meshCells = mesh.cells();
| addr | Cell ids to write |
| pointMap | Point map to use |
Definition at line 295 of file ensightOutput.C.
References cellId, f(), faceId(), mesh, MeshObject< polyMesh, UpdateableMeshObject, manifoldCellsMeshObject >::New(), os(), and UList< T >::size().

| 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.
| parallel | Prefer collective write? |
Definition at line 474 of file ensightOutput.C.
References Foam::ensightOutput::Detail::getFaceSizes(), ensightFaces::key(), UPstream::master(), UPstream::masterNo(), ensightFaces::NSIDED, os(), UPstream::parRun(), UPstream::scheduled, UPstream::subProcs(), and writeFaceList().
Referenced by ensightOutputSurface::write(), writeFaceConnectivity(), and writeFaceConnectivityPresorted().


| void writeFaceConnectivity | ( | ensightGeoFile & | os, |
| const ensightFaces::elemType | etype, | ||
| const label | nTotal, | ||
| const faceUList & | faces, | ||
| bool | parallel ) |
Write the regular face connectivity for specified type.
| parallel | Prefer collective write? |
Definition at line 383 of file ensightOutput.C.
References Foam::ensightOutput::Detail::getFaceSizes(), ensightFaces::key(), UPstream::master(), UPstream::masterNo(), ensightFaces::NSIDED, os(), UPstream::parRun(), UPstream::scheduled, UPstream::subProcs(), and writeFaceList().

| void writeFaceConnectivity | ( | ensightGeoFile & | os, |
| const ensightFaces & | part, | ||
| const faceUList & | faces, | ||
| bool | parallel ) |
Write the face connectivity for the part.
| parallel | Prefer collective write? |
Definition at line 567 of file ensightOutput.C.
References ensightFaces::faceIds(), ensightFaces::nTypes, os(), ensightFaces::total(), and writeFaceConnectivity().

| 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
| parallel | Prefer collective write? |
Definition at line 591 of file ensightOutput.C.
References ensightFaces::nTypes, os(), ensightFaces::range(), ensightFaces::total(), and writeFaceConnectivity().
Referenced by ensightFaces::write().


| bool writeField | ( | ensightOutput::floatBufferType & | scratch, |
| 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.
| scratch | Component scratch buffer |
| os | Output file (must be valid on master) |
| fld | The field content to be written |
| part | The addressing (element-wise) into the field |
| parallel | Prefer collective write? |
Referenced by writeField(), and writeField().


| bool writeField | ( | ensightOutput::floatBufferType & | scratch, |
| 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.
| scratch | Component scratch buffer |
| os | Output file (must be valid on master) |
| fld | The field content to be written |
| part | The addressing (element-wise) into the field |
| parallel | Prefer collective write? |

| 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.
| os | Output file (must be valid on master) |
| fld | The field content to be written |
| part | The addressing (element-wise) into the field |
| parallel | Prefer collective write? |
Definition at line 310 of file ensightOutput.H.
References fld(), os(), and writeField().

| 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.
| os | Output file (must be valid on master) |
| fld | The field content to be written |
| part | The addressing (element-wise) into the field |
| parallel | Prefer collective write? |
Definition at line 335 of file ensightOutput.H.
References fld(), os(), and writeField().

| bool writeCloudPositions | ( | ensightFile & | os, |
| DynamicList< floatVector > & | positions, | ||
| const globalIndex & | procAddr ) |
Write cloud positions.
| os | Output file (must be valid on master) |
| positions | The positions (measured data) to write. Also used as intermediate buffer (on master) |
| procAddr | The global sizes of positions (must be valid on master) and consistent with positions dimensions |
References os().

| bool writeCloudPositions | ( | ensightFile & | os, |
| DynamicList< floatVector > & | positions ) |
| bool writeCloudPositions | ( | ensightFile & | os, |
| const fvMesh & | mesh, | ||
| const word & | cloudName, | ||
| bool | exists ) |
Write cloud positions.
| os | Output file (must be valid on master) |
| mesh | The associated volume mesh |
| cloudName | The name of the cloud |
| exists | The processor-local existence |
References cloudName(), Foam::exists(), mesh, and os().

| bool writeCloudField | ( | ensightFile & | os, |
| const UList< Type > & | field, | ||
| const globalIndex & | procAddr ) |
| bool writeCloudField | ( | ensightFile & | os, |
| const UList< Type > & | field ) |
| bool readWriteCloudField | ( | ensightFile & | os, |
| const IOobject & | fieldObject, | ||
| bool | existsAny ) |
Read cloud field from IOobject (if exists == true) and write, always returning true.
| os | Output file (must be valid on master) |
| fieldObject | The field object name/location for reading |
| existsAny | Exists anywhere? May still be missing on a local processor |
References os().

|
extern |
Static debugging option.
|
extern |
Upper limit on number of items for bundled off-processor field transfers. The component-wise transfer uses float (4 bytes).
Eg, 5M for 50 ranks of 100k cells each