FreeFOAM The Cross-Platform CFD Toolkit
Hosted by SourceForge:
Get FreeFOAM at SourceForge.net.
            Fast, secure and Free Open Source software downloads

ensightParts Class Reference

A collection of several ensightPart elements. More...

#include <conversion/ensightParts.H>


Detailed Description

A collection of several ensightPart elements.

Source files

Definition at line 53 of file ensightParts.H.

Collaboration diagram for ensightParts:

List of all members.

Public Member Functions

 ensightParts (const polyMesh &)
 Construct from polyMesh.
 ensightParts (const IOobject &)
 Construct from IOobject.
 ~ensightParts ()
 Destructor.
void  recalculate (const polyMesh &)
 clear old information and construct anew from polyMesh
void  renumber (const labelList &origCellId, const labelList &origFaceId)
 renumber elements
label  size () const
 number of parts
void  writeGeometry (ensightGeoFile &) const
 write the geometry
bool  writeSummary (Ostream &) const
 write summary information about the objects
void  writeData (Ostream &) const
 write the lists
void  writeScalarField (ensightFile &, const List< scalar > &field, bool useFaceData=false) const
 write scalar field
void  writeVectorField (ensightFile &, const List< scalar > &field0, const List< scalar > &field1, const List< scalar > &field2, bool useFaceData=false) const
 write vector field components
template<class Type >
void  writeField (ensightFile &, const GeometricField< Type, fvPatchField, volMesh > &) const
 write generalized field components

Friends

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

Constructor & Destructor Documentation

ensightParts ( const polyMesh &   pMesh  )

Construct from polyMesh.

Definition at line 30 of file ensightParts.C.

References ensightParts::recalculate().

ensightParts ( const IOobject &   ioObj  )

Construct from IOobject.

Definition at line 38 of file ensightParts.C.

References PtrList< T >::transfer().

~ensightParts (  )

Destructor.

Definition at line 49 of file ensightParts.C.


Member Function Documentation

void recalculate ( const polyMesh &   pMesh  )

clear old information and construct anew from polyMesh

Definition at line 55 of file ensightParts.C.

References polyMesh::boundaryMesh(), polyMesh::cellZones(), forAll, primitiveMesh::nCells(), PtrList< T >::set(), List< T >::size(), and PtrList< T >::size().

Referenced by ensightParts::ensightParts().

void renumber ( const labelList &   origCellId,
const labelList &   origFaceId  
)

renumber elements

Definition at line 183 of file ensightParts.C.

References forAll.

label size (  ) const [inline]

number of parts

Definition at line 97 of file ensightParts.H.

References PtrList< T >::size().

void writeGeometry ( ensightGeoFile &   os  ) const

write the geometry

Definition at line 202 of file ensightParts.C.

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

bool writeSummary ( Ostream &   os  ) const

write summary information about the objects

Definition at line 215 of file ensightParts.C.

References forAll.

void writeData ( Ostream &   os  ) const

write the lists

Definition at line 226 of file ensightParts.C.

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

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

write scalar field

Definition at line 249 of file ensightParts.C.

References forAll.

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

write vector field components

Definition at line 271 of file ensightParts.C.

References forAll.

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

write generalized field components

Definition at line 35 of file ensightPartsI.H.

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


Friends And Related Function Documentation

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

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