Loading...
Searching...
No Matches
ensightOutput.H File Reference
Include dependency graph for ensightOutput.H:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  Foam::ensightOutput
 A collection of functions for writing ensight file content.
namespace  Foam
 Namespace for OpenFOAM.
namespace  Foam::ListListOps
 Various utility functions to work on Lists of Lists (usually resulting from 'gather'ing and combining information from individual processors).
namespace  Foam::ensightOutput::Detail
 Implementation details and output backends that would not normally be called directly by a user.

Functions

template<class T, class Addr, class AccessOp>
labelList subSizes (const IndirectListBase< T, Addr > &lists, AccessOp aop)
 Return the sizes of the sub-lists.
template<class IntListType>
void inplaceRenumber (const labelUList &oldToNew, IntListType &lists)
 Inplace renumber the values (not the indices) of a list of lists.
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.
labelList getFaceSizes (const UList< face > &faces)
 Return sizes of faces in the list.
labelList getFaceSizes (const UIndirectList< face > &faces)
 Return sizes of faces in the list.
labelList getPolysNFaces (const polyMesh &mesh, const labelUList &addr)
 The number of faces per poly element.
labelList getPolysNPointsPerFace (const polyMesh &mesh, const labelUList &addr)
 The number of points for each face of the poly elements.
CompactListList< label > getPolysFacePoints (const polyMesh &mesh, const labelUList &addr, const labelList &pointMap)
 Generate 0-based point ids for each poly element face.
void writeLabelListList (ensightGeoFile &os, const labelUList &offsets, const labelUList &values, const label pointOffset)
 Write CompactListList<label> by components.
template<class LabelListListType>
void writeLabelListList (ensightGeoFile &os, const LabelListListType &listOfLists, const label pointOffset)
 Write a list of faces or cell shapes with one-entity per line.
template<template< typename > class FieldContainer, class Type>
void copyComponent (const FieldContainer< Type > &input, const direction cmpt, UList< float > &cmptBuffer)
 Copy specified field component into a scalar buffer. Works for various lists types. Must be adequately sized before calling.
template<template< typename > class FieldContainer>
bool writeCoordinates (ensightGeoFile &os, const label partId, const word &partName, const label nPoints, const FieldContainer< Foam::point > &fld, bool parallel)
 Write coordinates (component-wise) for the given part.
template<template< typename > class FieldContainer, class Type>
void writeFieldComponents (ensightOutput::floatBufferType &scratch, ensightFile &os, const char *key, const FieldContainer< Type > &fld, bool parallel)
 Write field content (component-wise) for the given ensight element type.
template<template< typename > class FieldContainer, class Type>
void writeFieldComponents (ensightFile &os, const char *key, const FieldContainer< Type > &fld, bool parallel)
 Write field content (component-wise) for the given ensight element type.
template<class Type>
bool writeFaceSubField (ensightOutput::floatBufferType &scratch, ensightFile &os, const Field< Type > &fld, const ensightFaces &part, bool parallel)
 Write a sub-field of faces values as an indirect list, using the sub-list sizing information from ensightFaces.
template<class Type>
bool writeFaceSubField (ensightFile &os, const Field< Type > &fld, const ensightFaces &part, bool parallel)
 Write a sub-field of faces values as an indirect list, using the sub-list sizing information from ensightFaces.
template<class Type>
bool writeFaceLocalField (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 order from ensightFaces.
template<class Type>
bool writeFaceLocalField (ensightFile &os, const Field< Type > &fld, const ensightFaces &part, bool parallel)
 Write a field of faces values as an indirect list, using the face order from ensightFaces.

Detailed Description

Original source file ensightOutput.H

Definition in file ensightOutput.H.