Foam::ensightOutput::Detail Namespace Reference

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 (scalarField &res, const FieldContainer< Type > &input, const direction cmpt)
 Copy specified field component into a scalarField. 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)
 

Detailed Description

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

Function Documentation

◆ getFaceSizes() [1/2]

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().

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

◆ getFaceSizes() [2/2]

Foam::labelList getFaceSizes ( const UIndirectList< face > &  faces)

Return sizes of faces in the list.

Definition at line 60 of file ensightOutput.C.

References f().

Here is the call graph for this function:

◆ getPolysNFaces()

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().

Here is the call graph for this function:

◆ getPolysNPointsPerFace()

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.

References cellId, and mesh.

◆ copyComponent()

void copyComponent ( scalarField res,
const FieldContainer< Type > &  input,
const direction  cmpt 
)

Copy specified field component into a scalarField.

works for various lists types

Definition at line 35 of file ensightOutputTemplates.C.

References Foam::component().

Referenced by writeCoordinates(), and writeFieldComponents().

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

◆ writeCoordinates()

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.

Parameters
parallelCollective write?

Definition at line 55 of file ensightOutputTemplates.C.

References ensightGeoFile::beginCoordinates(), ensightGeoFile::beginPart(), copyComponent(), fld, nPoints, and ensightFile::writeList().

Referenced by ensightOutputSurface::write(), ensightFaces::write(), and ensightCells::write().

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

◆ writeFieldComponents()

bool writeFieldComponents ( ensightFile os,
const char *  key,
const FieldContainer< Type > &  fld,
bool  parallel 
)

Write field content (component-wise) for the given ensight element type.

Parameters
parallelCollective write?

Definition at line 117 of file ensightOutputTemplates.C.

References copyComponent(), fld, reduce(), ensightFile::writeKeyword(), and ensightFile::writeList().

Referenced by writeFaceSubField(), Foam::ensightOutput::writeField(), ensightOutputSurface::writePointData(), and Foam::ensightOutput::writePointField().

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

◆ writeFaceSubField()

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

Parameters
parallelCollective write?

Definition at line 194 of file ensightOutputTemplates.C.

References ensightFile::beginPart(), fld, ensightPart::index(), ensightFaces::range(), reduce(), ensightFaces::size(), ensightFaces::total(), and writeFieldComponents().

Referenced by Foam::ensightOutput::writeVolField().

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