ensightFaMesh Class Reference

Encapsulation of area meshes for writing in ensight format. More...

Public Member Functions

 ensightFaMesh (const faMesh &mesh)
 Construct from mesh with all default options. More...
 
int verbose () const noexcept
 Output verbosity level. More...
 
int verbose (const int level) noexcept
 Change the output verbosity level. More...
 
const faMeshmesh () const noexcept
 Reference to the underlying faMesh. More...
 
const ensightFacesareaPart () const noexcept
 Face elements for finite-area. More...
 
bool needsUpdate () const noexcept
 Does the content need an update? More...
 
bool expire ()
 Mark as needing an update. More...
 
void correct ()
 Update for new mesh. More...
 
void write (ensightGeoFile &os, bool parallel=Pstream::parRun()) const
 Write geometry to file. Normally in parallel. More...
 
void write (autoPtr< ensightGeoFile > &os, bool parallel=Pstream::parRun()) const
 Write geometry to file. Normally in parallel. More...
 

Detailed Description

Encapsulation of area meshes for writing in ensight format.

Note
Currently restricted to a single faMesh representation. The face elements are created from a specified subset of polyMesh faces. The original ordering of these faces is retained in the ensightFaces faceOrder().
Source files

Definition at line 62 of file ensightFaMesh.H.

Constructor & Destructor Documentation

◆ ensightFaMesh()

ensightFaMesh ( const faMesh mesh)
explicit

Construct from mesh with all default options.

Definition at line 50 of file ensightFaMesh.C.

References ensightFaMesh::correct().

Here is the call graph for this function:

Member Function Documentation

◆ verbose() [1/2]

int verbose ( ) const
noexcept

Output verbosity level.

Definition at line 69 of file ensightFaMesh.C.

◆ verbose() [2/2]

int verbose ( const int  level)
noexcept

Change the output verbosity level.

Returns
old level

Definition at line 75 of file ensightFaMesh.C.

◆ mesh()

const faMesh & mesh ( ) const
inlinenoexcept

Reference to the underlying faMesh.

Definition at line 115 of file ensightFaMesh.H.

Referenced by Foam::writeAreaFields().

Here is the caller graph for this function:

◆ areaPart()

const ensightFaces & areaPart ( ) const
inlinenoexcept

Face elements for finite-area.

Definition at line 121 of file ensightFaMesh.H.

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

Here is the caller graph for this function:

◆ needsUpdate()

bool needsUpdate ( ) const
inlinenoexcept

Does the content need an update?

Definition at line 130 of file ensightFaMesh.H.

◆ expire()

bool expire ( )
inline

Mark as needing an update.

May also free up unneeded data. Return false if already marked as expired.

Definition at line 30 of file ensightFaMeshI.H.

◆ correct()

void correct ( )

Update for new mesh.

Definition at line 83 of file ensightFaMesh.C.

References ensightFaces::classify(), clear(), ensightFaces::clear(), ensightPart::identifier(), ensightFaces::info(), Foam::Info, ensightFaces::reduce(), ensightPart::rename(), and Foam::renumber().

Referenced by ensightFaMesh::ensightFaMesh().

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

◆ write() [1/2]

void write ( ensightGeoFile os,
bool  parallel = Pstream::parRun() 
) const

Write geometry to file. Normally in parallel.

Definition at line 122 of file ensightFaMesh.C.

References os().

Here is the call graph for this function:

◆ write() [2/2]

void write ( autoPtr< ensightGeoFile > &  os,
bool  parallel = Pstream::parRun() 
) const
inline

Write geometry to file. Normally in parallel.

Definition at line 45 of file ensightFaMeshI.H.

References os(), and write().

Here is the call graph for this function:

The documentation for this class was generated from the following files: