Foam::ensightOutput Namespace Reference

A collection of functions for writing ensight file content. More...

Namespaces

 Detail
 Implementation details and output backends that would not normally be called directly by a user.
 
 Serial
 Output routines that are either designed for serial-only, or for which parallelization is pending.
 

Functions

template<class Type >
bool writeVolField (const GeometricField< Type, fvPatchField, volMesh > &, const ensightMesh &ensMesh, ensightFile &os, const bool nodeValues=false)
 Write volume field component-wise. More...
 
bool writeCloudPositions (const fvMesh &mesh, const word &cloudName, bool exists, autoPtr< ensightFile > &output, Pstream::commsTypes comm=Pstream::commsTypes::blocking)
 Write cloud positions. More...
 
template<class Type >
bool writeCloudField (const IOField< Type > &field, ensightFile &os, Pstream::commsTypes comm=Pstream::commsTypes::blocking)
 Write cloud field, returning true if the field is non-empty. More...
 
template<class Type >
bool writeCloudField (const IOobject &io, bool exists, autoPtr< ensightFile > &output, Pstream::commsTypes comm=Pstream::commsTypes::blocking)
 

Detailed Description

A collection of functions for writing ensight file content.

Source files

Function Documentation

◆ writeVolField()

bool writeVolField ( const GeometricField< Type, fvPatchField, volMesh > &  vf,
const ensightMesh ensMesh,
ensightFile os,
const bool  nodeValues = false 
)

Write volume field component-wise.

Definition at line 290 of file ensightOutputVolFieldTemplates.C.

References Foam::fac::interpolate(), Foam::New(), and tmp< T >::ref().

Here is the call graph for this function:

◆ writeCloudPositions()

bool writeCloudPositions ( const fvMesh mesh,
const word cloudName,
bool  exists,
autoPtr< ensightFile > &  output,
Pstream::commsTypes  comm = Pstream::commsTypes::blocking 
)

Write cloud positions.

Definition at line 79 of file ensightOutputCloud.C.

References ensightFile::beginParticleCoordinates(), cloudName(), Foam::exists(), IOstreamOption::format(), mesh, p, Foam::returnReduce(), ensightFile::write(), and Foam::writeMeasured().

Referenced by if().

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

◆ writeCloudField() [1/2]

bool writeCloudField ( const IOField< Type > &  field,
ensightFile os,
Pstream::commsTypes  comm = Pstream::commsTypes::blocking 
)

Write cloud field, returning true if the field is non-empty.

Definition at line 35 of file ensightOutputCloudTemplates.C.

References Foam::component(), Foam::BitOps::count(), Foam::constant::electromagnetic::e, field(), Foam::mag(), ensightFile::newline(), Foam::returnReduce(), Foam::val, ensightFile::write(), and Foam::Zero.

Referenced by writeCloudField().

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

◆ writeCloudField() [2/2]

bool writeCloudField ( const IOobject io,
bool  exists,
autoPtr< ensightFile > &  output,
Pstream::commsTypes  comm = Pstream::commsTypes::blocking 
)

Read cloud field from IOobject (if exists == true) and write, always returning true.

Definition at line 119 of file ensightOutputCloudTemplates.C.

References Foam::exists(), field(), IOobject::readOpt(), autoPtr< T >::ref(), and writeCloudField().

Here is the call graph for this function: