Implementation details and output backends that would not normally be called directly by a user. More...
Functions | |
labelList | getFaceSizes (const UList< face > &faces) |
Return sizes of faces in the list. More... | |
labelList | getFaceSizes (const UIndirectList< face > &faces) |
Return sizes of faces in the list. More... | |
labelList | getPolysNFaces (const polyMesh &mesh, const labelUList &addr) |
The number of faces per poly element. More... | |
labelList | getPolysNPointsPerFace (const polyMesh &mesh, const labelUList &addr) |
The number of points for each face of the poly elements. More... | |
template<template< typename > class FieldContainer, class Type > | |
void | copyComponent (List< scalar > &cmptBuffer, const FieldContainer< Type > &input, const direction cmpt) |
template<template< typename > class FieldContainer, class Type > | |
void | writeFieldContent (ensightFile &os, const FieldContainer< Type > &fld, bool parallel) |
Write field content (component-wise) More... | |
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. More... | |
template<template< typename > class FieldContainer, class Type > | |
bool | writeFieldComponents (ensightFile &os, const char *key, const FieldContainer< Type > &fld, bool parallel) |
Write field content (component-wise) for the given ensight element type. More... | |
template<class Type > | |
bool | writeFaceSubField (ensightFile &os, const Field< Type > &fld, const ensightFaces &part, bool parallel) |
template<class Type > | |
bool | writeFaceLocalField (ensightFile &os, const Field< Type > &fld, const ensightFaces &part, bool parallel) |
template<class Type > | |
label | writeCloudFieldContent (ensightFile &os, const UList< Type > &fld, label count=0) |
Write cloud field data (serial) with rounding and newlines. More... | |
Implementation details and output backends that would not normally be called directly by a user.
Foam::labelList getFaceSizes | ( | const UList< face > & | faces | ) |
Return sizes of faces in the list.
Definition at line 41 of file ensightOutput.C.
References f(), and UList< T >::size().
Referenced by Foam::ensightOutput::writeFaceConnectivity().
Foam::labelList getFaceSizes | ( | const UIndirectList< face > & | faces | ) |
Return sizes of faces in the list.
Definition at line 60 of file ensightOutput.C.
References f().
Foam::labelList getPolysNFaces | ( | const polyMesh & | mesh, |
const labelUList & | addr | ||
) |
The number of faces per poly element.
Definition at line 79 of file ensightOutput.C.
References cellId, mesh, and UList< T >::size().
Foam::labelList getPolysNPointsPerFace | ( | const polyMesh & | mesh, |
const labelUList & | addr | ||
) |
The number of points for each face of the poly elements.
Definition at line 102 of file ensightOutput.C.
void copyComponent | ( | List< scalar > & | cmptBuffer, |
const FieldContainer< Type > & | input, | ||
const direction | cmpt | ||
) |
Copy specified field component into a scalar buffer works for various lists types. Must be adequately sized before calling
Definition at line 36 of file ensightOutputTemplates.C.
References Foam::component(), Foam::exit(), Foam::FatalError, FatalErrorInFunction, Foam::input(), and Foam::nl.
Referenced by writeFieldContent().
void writeFieldContent | ( | ensightFile & | os, |
const FieldContainer< Type > & | fld, | ||
bool | parallel | ||
) |
Write field content (component-wise)
parallel | Collective write? |
Definition at line 62 of file ensightOutputTemplates.C.
References copyComponent(), fld, globalIndex::localSize(), globalIndex::maxSize(), os(), Foam::blockMeshTools::read(), globalIndex::reset(), List< T >::resize_nocopy(), globalIndex::subProcs(), and Foam::vtk::write().
Referenced by writeCoordinates(), and writeFieldComponents().
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.
parallel | Collective write? |
Definition at line 136 of file ensightOutputTemplates.C.
References fld, nPoints, os(), and writeFieldContent().
Referenced by ensightOutputSurface::write(), ensightFaces::write(), and ensightCells::write().
bool writeFieldComponents | ( | ensightFile & | os, |
const char * | key, | ||
const FieldContainer< Type > & | fld, | ||
bool | parallel | ||
) |
Write field content (component-wise) for the given ensight element type.
parallel | Collective write? |
Definition at line 161 of file ensightOutputTemplates.C.
References fld, Foam::glTF::key(), os(), reduce(), and writeFieldContent().
Referenced by writeFaceLocalField(), writeFaceSubField(), Foam::ensightOutput::writeField(), ensightOutputSurface::writePointData(), and Foam::ensightOutput::writePointField().
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
parallel | Collective write? |
Definition at line 197 of file ensightOutputTemplates.C.
References fld, ensightPart::index(), Foam::glTF::key(), os(), ensightFaces::range(), reduce(), ensightFaces::size(), ensightFaces::total(), and writeFieldComponents().
Referenced by Foam::ensightOutput::writeVolField().
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
parallel | Collective write? |
Definition at line 247 of file ensightOutputTemplates.C.
References Foam::exit(), ensightFaces::faceOrder(), Foam::FatalError, FatalErrorInFunction, fld, ensightPart::index(), Foam::glTF::key(), Foam::nl, os(), reduce(), ensightFaces::size(), ensightFaces::total(), and writeFieldComponents().
Referenced by Foam::ensightOutput::writeAreaField().
label Foam::ensightOutput::Detail::writeCloudFieldContent | ( | ensightFile & | os, |
const UList< Type > & | fld, | ||
label | count = 0 |
||
) |
Write cloud field data (serial) with rounding and newlines.
count | The current output count |
Referenced by Foam::ensightOutput::writeCloudField().