NeoPZ
Public Member Functions | Private Attributes | List of all members
TPZV3DGraphMesh Class Reference

To export a graphical three dimensional mesh to use at V3D package. Post processing. More...

#include <pzv3dmesh.h>

Inheritance diagram for TPZV3DGraphMesh:
[legend]
Collaboration diagram for TPZV3DGraphMesh:
[legend]

Public Member Functions

 TPZV3DGraphMesh (TPZCompMesh *cmesh, int dimension, const std::set< int > &matids, const TPZVec< std::string > &scalarnames, const TPZVec< std::string > &vecnames)
 Constructor for graphical mesh using 3D Image Visualization format. More...
 
 TPZV3DGraphMesh (TPZCompMesh *cmesh, int dim, TPZV3DGraphMesh *graph)
 Copy constructor for graphical mesh using 3D Image Visualization format. More...
 
virtual ~TPZV3DGraphMesh ()
 Default destructor. More...
 
virtual void DrawMesh (int numcases)
 Draw the nodal coordinates and the connectivity. More...
 
virtual void DrawSolution (TPZBlock< REAL > &Sol)
 Draw the solution associated with Sol (not implemented) More...
 
virtual void DrawSolution (char *var=0)
 Draw the solution associated with the variable name. More...
 
virtual void DrawSolution (int step, REAL time)
 Draw the solution sequence. More...
 
virtual void SequenceNodes ()
 
- Public Member Functions inherited from TPZGraphMesh
 TPZGraphMesh (TPZCompMesh *cm, int dimension, const std::set< int > &matids, const TPZVec< std::string > &scalarnames, const TPZVec< std::string > &vecnames)
 Constructor for graphical mesh. More...
 
 TPZGraphMesh (TPZCompMesh *cm, int dimension, const std::set< int > &matids, const TPZVec< std::string > &scalarnames, const TPZVec< std::string > &vecnames, const TPZVec< std::string > &tensornames)
 Constructor with tensorial names for graphical mesh. More...
 
virtual ~TPZGraphMesh (void)
 Default destructor. More...
 
int ClassId () const override
 Define the class id associated with the class. More...
 
void Read (TPZStream &buf, void *context) override
 read objects from the stream More...
 
void Write (TPZStream &buf, int withclassid) const override
 Writes this object to the TPZStream buffer. Include the classid if withclassid = true. More...
 
TPZGraphNodeFindNode (int64_t side)
 Find graphical node (connect) More...
 
TPZGraphElFindElement (int64_t sid)
 
TPZAdmChunkVector< TPZGraphEl * > & ElementList ()
 Vector of the graphical elements. More...
 
TPZAdmChunkVector< TPZGraphNode > & NodeMap ()
 Vector of the graphical nodes. More...
 
int64_t NPoints ()
 Number of points to drawing, depending on the resolution. More...
 
int64_t NElements (MElementType type)
 
int Res ()
 Get the resolution of the draw. More...
 
virtual void SetCompMesh (TPZCompMesh *mesh, const std::set< int > &matids)
 Sets the computational mesh to associate. More...
 
virtual void DrawNodes ()
 Draw the graphical nodes information. More...
 
virtual void DrawConnectivity (MElementType type)
 Draw the connectivity information. More...
 
TPZDrawStyle Style ()
 Gets the style of the graphical mesh. More...
 
virtual void SetFileName (const std::string &filename)
 Sets the filename to output of graph. More...
 
std::ostream & Out ()
 
void SetResolution (int res)
 Sets resolution. More...
 
void Print (std::ostream &out)
 Print object attributes. More...
 
void SetNames (const TPZVec< std::string > &scalarnames, const TPZVec< std::string > &vecnames)
 Set names with scalar and vector variable names. More...
 
void SetNames (const TPZVec< std::string > &scalarnames, const TPZVec< std::string > &vecnames, const TPZVec< std::string > &tensornames)
 Set names with scalar, vectorial and tensorial variable names. More...
 
void SetMaterialIds (const std::set< int > &matids)
 Set material ids. More...
 
std::set< int > MaterialIds ()
 Get material ids. More...
 
bool Material_Is_PostProcessed (int matid)
 Return a directive if the material id is being postprocessed. More...
 
virtual TPZCompMeshMesh ()
 Return of the material for graphical mesh. More...
 
TPZVec< std::string > ScalarNames ()
 Return scalar variable names. More...
 
TPZVec< std::string > VecNames ()
 Return vectorial variable names. More...
 
TPZVec< std::string > TensorNames ()
 Return tensorial variable names. More...
 
- Public Member Functions inherited from TPZSavable
 TPZSavable ()
 
virtual ~TPZSavable ()
 
virtual std::list< std::map< std::string, uint64_t > > VersionHistory () const
 
virtual std::pair< std::string, uint64_t > Version () const
 
virtual bool Compare (TPZSavable *copy, bool override=false)
 Compares the object for identity with the object pointed to, eventually copy the object. More...
 
virtual bool Compare (TPZSavable *copy, bool override=false) const
 Compares the object for identity with the object pointed to, eventually copy the object. More...
 
- Public Member Functions inherited from TPZRegisterClassId
template<typename T >
 TPZRegisterClassId (int(T::*)() const)
 
 TPZRegisterClassId ()=default
 

Private Attributes

TPZCompMeshfMesh
 
int fNumCases
 
int fInterval
 
int fLoadStep
 
int fTotScal
 
int fNumScal [6]
 

Additional Inherited Members

- Static Public Member Functions inherited from TPZSavable
static std::set< TPZRestoreClassBase * > & RestoreClassSet ()
 This static function guarantees that the gMap object is available when needed. More...
 
static std::map< int, TPZRestore_t > & ClassIdMap ()
 This static function guarantees that the gMap object is available when needed. More...
 
static std::pair< std::string, uint64_t > NeoPZVersion ()
 
static void Register (TPZRestoreClassBase *restore)
 
static void RegisterClassId (int classid, TPZRestore_t fun)
 
static TPZSavableCreateInstance (const int &classId)
 
- Protected Member Functions inherited from TPZGraphMesh
TPZCompElFindFirstInterpolatedElement (TPZCompMesh *mesh, int dimension)
 
- Protected Attributes inherited from TPZGraphMesh
TPZCompMeshfCompMesh
 Computational mesh associated. More...
 
TPZGeoMeshfGeoMesh
 Geometric mesh related. More...
 
std::set< int > fMaterialIds
 Set of material ids being post-processed. More...
 
int fDimension
 Dimension of the graphical mesh. More...
 
TPZAdmChunkVector< TPZGraphEl * > fElementList
 Vector of graphical elements. More...
 
TPZAdmChunkVector< TPZGraphNodefNodeMap
 Vector of graphical nodes (connects) More...
 
int fResolution
 Resolution of the graphical object. More...
 
TPZDrawStyle fStyle
 Style of the graphical file. More...
 
std::ofstream fOutFile
 
std::string fFileName
 
TPZVec< std::string > fScalarNames
 Vectors of the variables names (scalar, vectorial, and tensorial) More...
 
TPZVec< std::string > fVecNames
 
TPZVec< std::string > fTensorNames
 

Detailed Description

To export a graphical three dimensional mesh to use at V3D package. Post processing.

V3D is a 3D Image Visualization package.
You can to download from http://penglab.janelia.org/proj/v3d/V3D/Download.html

Definition at line 20 of file pzv3dmesh.h.

Constructor & Destructor Documentation

◆ TPZV3DGraphMesh() [1/2]

TPZV3DGraphMesh::TPZV3DGraphMesh ( TPZCompMesh cmesh,
int  dimension,
const std::set< int > &  matids,
const TPZVec< std::string > &  scalarnames,
const TPZVec< std::string > &  vecnames 
)

Constructor for graphical mesh using 3D Image Visualization format.

Definition at line 17 of file pzv3dmesh.cpp.

References EV3DStyle, fInterval, fLoadStep, fMesh, fNumCases, fNumScal, TPZGraphMesh::fStyle, and fTotScal.

◆ TPZV3DGraphMesh() [2/2]

TPZV3DGraphMesh::TPZV3DGraphMesh ( TPZCompMesh cmesh,
int  dim,
TPZV3DGraphMesh graph 
)

Copy constructor for graphical mesh using 3D Image Visualization format.

Definition at line 28 of file pzv3dmesh.cpp.

References EV3DStyle, fInterval, fLoadStep, fMesh, fNumCases, fNumScal, TPZGraphMesh::fStyle, and fTotScal.

◆ ~TPZV3DGraphMesh()

virtual TPZV3DGraphMesh::~TPZV3DGraphMesh ( )
inlinevirtual

Default destructor.

Definition at line 30 of file pzv3dmesh.h.

References DrawMesh(), DrawSolution(), and SequenceNodes().

Member Function Documentation

◆ DrawMesh()

void TPZV3DGraphMesh::DrawMesh ( int  numcases)
virtual

Draw the nodal coordinates and the connectivity.

Reimplemented from TPZGraphMesh.

Definition at line 39 of file pzv3dmesh.cpp.

References TPZGraphMesh::DrawConnectivity(), TPZGraphMesh::DrawNodes(), ENoType, EOned, EQuadrilateral, ETriangle, fInterval, fLoadStep, fNumCases, TPZGraphMesh::fOutFile, TPZGraphMesh::NElements(), and TPZGraphMesh::NPoints().

Referenced by ~TPZV3DGraphMesh().

◆ DrawSolution() [1/3]

void TPZV3DGraphMesh::DrawSolution ( TPZBlock< REAL > &  Sol)
virtual

Draw the solution associated with Sol (not implemented)

Definition at line 58 of file pzv3dmesh.cpp.

Referenced by ~TPZV3DGraphMesh().

◆ DrawSolution() [2/3]

void TPZV3DGraphMesh::DrawSolution ( char *  var = 0)
virtual

Draw the solution associated with the variable name.

Definition at line 62 of file pzv3dmesh.cpp.

◆ DrawSolution() [3/3]

void TPZV3DGraphMesh::DrawSolution ( int  step,
REAL  time 
)
virtual

◆ SequenceNodes()

void TPZV3DGraphMesh::SequenceNodes ( )
virtual

Member Data Documentation

◆ fInterval

int TPZV3DGraphMesh::fInterval
private

Definition at line 48 of file pzv3dmesh.h.

Referenced by DrawMesh(), DrawSolution(), and TPZV3DGraphMesh().

◆ fLoadStep

int TPZV3DGraphMesh::fLoadStep
private

Definition at line 49 of file pzv3dmesh.h.

Referenced by DrawMesh(), DrawSolution(), and TPZV3DGraphMesh().

◆ fMesh

TPZCompMesh* TPZV3DGraphMesh::fMesh
private

Definition at line 46 of file pzv3dmesh.h.

Referenced by TPZV3DGraphMesh().

◆ fNumCases

int TPZV3DGraphMesh::fNumCases
private

Definition at line 47 of file pzv3dmesh.h.

Referenced by DrawMesh(), DrawSolution(), and TPZV3DGraphMesh().

◆ fNumScal

int TPZV3DGraphMesh::fNumScal[6]
private

Definition at line 51 of file pzv3dmesh.h.

Referenced by DrawSolution(), and TPZV3DGraphMesh().

◆ fTotScal

int TPZV3DGraphMesh::fTotScal
private

Definition at line 50 of file pzv3dmesh.h.

Referenced by DrawSolution(), and TPZV3DGraphMesh().


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