ensightParts Class Reference

A collection of several ensightPart elements. More...

Public Member Functions

 ensightParts (const polyMesh &)
 Construct from polyMesh. More...
 
 ensightParts (const IOobject &)
 Construct from IOobject. More...
 
 ensightParts (const ensightParts &)=delete
 Disallow default bitwise copy construction. More...
 
 ~ensightParts ()
 Destructor. More...
 
void recalculate (const polyMesh &)
 Clear old information and construct anew from polyMesh. More...
 
void renumber (const labelUList &origCellId, const labelUList &origFaceId)
 Renumber elements. More...
 
label size () const
 Number of parts. More...
 
void writeGeometry (ensightGeoFile &) const
 Write the geometry. More...
 
bool writeSummary (Ostream &) const
 Write summary information about the objects. More...
 
void writeData (Ostream &) const
 Write the lists. More...
 
void writeScalarField (ensightFile &, const List< scalar > &field, const bool useFaceData=false, const bool perNode=false) const
 Write (volume) scalar field. More...
 
void writeVectorField (ensightFile &, const List< scalar > &field0, const List< scalar > &field1, const List< scalar > &field2, const bool useFaceData=false, const bool perNode=false) const
 Write (volume) vector field components. More...
 
template<class Type >
void writeField (ensightFile &, const GeometricField< Type, fvPatchField, volMesh > &) const
 Write generalized volume field components. More...
 
void operator= (const ensightParts &)=delete
 Disallow default bitwise assignment. More...
 

Friends

ensightGeoFileoperator<< (ensightGeoFile &, const ensightParts &)
 Write geometry. More...
 

Detailed Description

A collection of several ensightPart elements.

Source files

Definition at line 59 of file ensightParts.H.

Constructor & Destructor Documentation

◆ ensightParts() [1/3]

ensightParts ( const polyMesh mesh)

Construct from polyMesh.

Definition at line 30 of file ensightParts.C.

References ensightParts::recalculate().

Here is the call graph for this function:

◆ ensightParts() [2/3]

ensightParts ( const IOobject ioObj)

Construct from IOobject.

Definition at line 38 of file ensightParts.C.

◆ ensightParts() [3/3]

ensightParts ( const ensightParts )
delete

Disallow default bitwise copy construction.

◆ ~ensightParts()

Destructor.

Definition at line 49 of file ensightParts.C.

Member Function Documentation

◆ recalculate()

void recalculate ( const polyMesh mesh)

Clear old information and construct anew from polyMesh.

Definition at line 55 of file ensightParts.C.

References polyMesh::boundaryMesh(), polyMesh::cellZones(), forAll, primitiveMesh::nCells(), patchi, ensightParts::renumber(), UPtrList< T >::size(), and List< T >::size().

Referenced by ensightParts::ensightParts().

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

◆ renumber()

void renumber ( const labelUList origCellId,
const labelUList origFaceId 
)

Renumber elements.

Definition at line 164 of file ensightParts.C.

References forAll.

Referenced by ensightParts::recalculate().

Here is the caller graph for this function:

◆ size()

◆ writeGeometry()

void writeGeometry ( ensightGeoFile os) const

Write the geometry.

Definition at line 183 of file ensightParts.C.

References Foam::flush(), forAll, Foam::Info, and Foam::nl.

Referenced by ensightParts::size().

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

◆ writeSummary()

bool writeSummary ( Ostream os) const

Write summary information about the objects.

Definition at line 196 of file ensightParts.C.

References forAll.

Referenced by ensightParts::size().

Here is the caller graph for this function:

◆ writeData()

void writeData ( Ostream os) const

Write the lists.

Definition at line 207 of file ensightParts.C.

References token::BEGIN_LIST, IOstream::check(), token::END_LIST, forAll, Foam::nl, and ensightParts::writeScalarField().

Referenced by ensightParts::size().

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

◆ writeScalarField()

void writeScalarField ( ensightFile os,
const List< scalar > &  field,
const bool  useFaceData = false,
const bool  perNode = false 
) const

Write (volume) scalar field.

optionally write data for face parts optionally write data per node

Definition at line 228 of file ensightParts.C.

References forAll, and ensightParts::writeVectorField().

Referenced by ensightParts::size(), and ensightParts::writeData().

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

◆ writeVectorField()

void writeVectorField ( ensightFile os,
const List< scalar > &  field0,
const List< scalar > &  field1,
const List< scalar > &  field2,
const bool  useFaceData = false,
const bool  perNode = false 
) const

Write (volume) vector field components.

optionally write data for face parts optionally write data per node

Definition at line 251 of file ensightParts.C.

References forAll.

Referenced by ensightParts::size(), and ensightParts::writeScalarField().

Here is the caller graph for this function:

◆ writeField()

void writeField ( ensightFile os,
const GeometricField< Type, fvPatchField, volMesh > &  field 
) const

Write generalized volume field components.

Definition at line 35 of file ensightPartsTemplates.C.

References GeometricField< Type, PatchField, GeoMesh >::boundaryField(), forAll, and patchi.

Referenced by ensightParts::size().

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

◆ operator=()

void operator= ( const ensightParts )
delete

Disallow default bitwise assignment.

Referenced by ensightParts::size().

Here is the caller graph for this function:

Friends And Related Function Documentation

◆ operator<<

ensightGeoFile& operator<< ( ensightGeoFile ,
const ensightParts  
)
friend

Write geometry.

Referenced by ensightParts::size().


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