Functions
Foam::ensightOutput::Detail Namespace Reference

Functions

labelList getFaceSizes (const UList< face > &faces)
 
labelList getFaceSizes (const UIndirectList< face > &faces)
 
labelList getPolysNFaces (const polyMesh &mesh, const labelUList &addr)
 
labelList getPolysNPointsPerFace (const polyMesh &mesh, const labelUList &addr)
 
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)
 
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)
 
template<template< typename > class FieldContainer, class Type >
bool writeFieldComponents (ensightFile &os, const char *key, const FieldContainer< Type > &fld, bool parallel)
 
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)
 

Function Documentation

◆ getFaceSizes() [1/2]

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

Definition at line 34 of file ensightOutput.C.

References f(), and UList::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)

Definition at line 53 of file ensightOutput.C.

References f().

Here is the call graph for this function:

◆ getPolysNFaces()

Foam::labelList getPolysNFaces ( const polyMesh mesh,
const labelUList addr 
)

Definition at line 72 of file ensightOutput.C.

References cellId, mesh, and UList::size().

Here is the call graph for this function:

◆ getPolysNPointsPerFace()

Foam::labelList getPolysNPointsPerFace ( const polyMesh mesh,
const labelUList addr 
)

Definition at line 95 of file ensightOutput.C.

References cellId, and mesh.

◆ copyComponent()

void copyComponent ( List< scalar > &  cmptBuffer,
const FieldContainer< Type > &  input,
const direction  cmpt 
)

Definition at line 29 of file ensightOutputTemplates.C.

References Foam::component(), Foam::exit(), Foam::FatalError, FatalErrorInFunction, Foam::input(), and Foam::nl.

Referenced by writeFieldContent().

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

◆ writeFieldContent()

void writeFieldContent ( ensightFile os,
const FieldContainer< Type > &  fld,
bool  parallel 
)
Parameters
parallelCollective write?

Definition at line 55 of file ensightOutputTemplates.C.

References copyComponent(), fld, globalIndex::localSize(), globalIndex::maxSize(), os(), Foam::blockMeshTools::read(), globalIndex::reset(), DynamicList::resize_nocopy(), globalIndex::subProcs(), and Foam::vtk::write().

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

Definition at line 129 of file ensightOutputTemplates.C.

References fld, nPoints, os(), and writeFieldContent().

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

Definition at line 154 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().

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

Definition at line 190 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().

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

◆ writeFaceLocalField()

bool writeFaceLocalField ( ensightFile os,
const Field< Type > &  fld,
const ensightFaces part,
bool  parallel 
)
Parameters
parallelCollective write?

Definition at line 240 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().

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

◆ writeCloudFieldContent()

label Foam::ensightOutput::Detail::writeCloudFieldContent ( ensightFile os,
const UList< Type > &  fld,
label  count = 0 
)
Parameters
countThe current output count

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

Here is the caller graph for this function: