Loading...
Searching...
No Matches
ensightFaMesh Class Reference

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

#include <ensightFaMesh.H>

Public Member Functions

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

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 58 of file ensightFaMesh.H.

Constructor & Destructor Documentation

◆ ensightFaMesh() [1/2]

ensightFaMesh ( const ensightFaMesh & )
delete

No copy construct.

References ensightFaMesh().

Referenced by ensightFaMesh(), and operator=().

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

◆ ensightFaMesh() [2/2]

ensightFaMesh ( const faMesh & mesh)
explicit

Construct from mesh with all default options.

Definition at line 43 of file ensightFaMesh.C.

References correct(), and mesh().

Here is the call graph for this function:

Member Function Documentation

◆ operator=()

void operator= ( const ensightFaMesh & )
delete

No copy assignment.

References ensightFaMesh(), mesh(), Foam::noexcept, and verbose().

Here is the call graph for this function:

◆ verbose() [1/2]

int verbose ( ) const
noexcept

Output verbosity level.

Definition at line 62 of file ensightFaMesh.C.

References Foam::noexcept.

Referenced by operator=().

Here is the caller graph for this function:

◆ verbose() [2/2]

int verbose ( const int level)
noexcept

Change the output verbosity level.

Returns
old level

Definition at line 68 of file ensightFaMesh.C.

◆ mesh()

const faMesh & mesh ( ) const
inlinenoexcept

Reference to the underlying faMesh.

Definition at line 139 of file ensightFaMesh.H.

References mesh(), and Foam::noexcept.

Referenced by ensightFaMesh(), mesh(), operator=(), and Foam::writeAreaFields().

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

◆ areaPart()

const ensightFaces & areaPart ( ) const
inlinenoexcept

Face elements for finite-area.

Definition at line 147 of file ensightFaMesh.H.

References Foam::noexcept.

◆ needsUpdate()

bool needsUpdate ( ) const
inlinenoexcept

Does the content need an update?

Definition at line 158 of file ensightFaMesh.H.

References Foam::noexcept.

◆ 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 23 of file ensightFaMeshI.H.

References clear().

Here is the call graph for this function:

◆ correct()

void correct ( )

Update for new mesh.

Definition at line 76 of file ensightFaMesh.C.

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

Referenced by 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 = UPstream::parRun() ) const

Write geometry to file (normally in parallel). Adds beginGeometry() marker.

Definition at line 115 of file ensightFaMesh.C.

References UPstream::master(), and os().

Here is the call graph for this function:

◆ write() [2/2]

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

Write geometry to file (normally in parallel). Adds beginGeometry() marker.

Definition at line 38 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: