NeoPZ
pzdxmesh.h
Go to the documentation of this file.
1 
6 #ifndef DXMESHH
7 #define DXMESHH
8 
9 #include "pzgraphmesh.h"
10 #include "pzstack.h"
11 
17 class TPZDXGraphMesh : public TPZGraphMesh {
18 
26  int fNumCases;
27  std::string fElementType;
28 
29 public:
30 
32  TPZDXGraphMesh(TPZCompMesh *mesh, int dimension, const std::set<int> & matids, const TPZVec<std::string> &scalarnames,const TPZVec<std::string> &vecnames);
34  TPZDXGraphMesh(TPZCompMesh *cmesh,int dim,TPZDXGraphMesh *graph);
36  virtual ~TPZDXGraphMesh();
37 
39  virtual void SetFileName(const std::string &filename);
40 
42  virtual void DrawMesh(int numcases);
44  virtual void DrawSolution(TPZBlock<REAL> &Sol);
46  virtual void DrawSolution(char * var = 0);
48  virtual void DrawSolution(int step, REAL time);
49 
51  int NNodes();
52  std::string ElementName();
53  void Close();
54 
55  void SetNumCases(int numcases) { fNumCases = numcases; }
56 
57 private:
58  void DrawNormals(int numnormals);
59 };
60 
61 #endif
Represents a graphical mesh used for post processing purposes. Post processing.
Definition: pzgraphmesh.h:34
virtual void SetFileName(const std::string &filename)
Sets the name of the output file.
Definition: pzdxmesh.cpp:418
filename
Definition: stats.py:82
int fNormalObject
Definition: pzdxmesh.h:23
Implements the interface of the graphmesh to the OpenDX graphics package. Post processing.
Definition: pzdxmesh.h:17
clarg::argInt dimension("-d", "Matrices dimension M x M", 1000)
std::string fElementType
Definition: pzdxmesh.h:27
void SetNumCases(int numcases)
Definition: pzdxmesh.h:55
int fNextDataField
Definition: pzdxmesh.h:19
TPZStack< int > fFirstFieldValues[3]
Definition: pzdxmesh.h:25
virtual ~TPZDXGraphMesh()
Default destructor.
Definition: pzdxmesh.cpp:76
virtual void DrawSolution(TPZBlock< REAL > &Sol)
Draw solution as dx file.
Definition: pzdxmesh.cpp:384
void DrawNormals(int numnormals)
Definition: pzdxmesh.cpp:411
int fNumConnectObjects[8]
Definition: pzdxmesh.h:20
int fElConnectivityObject[8]
Definition: pzdxmesh.h:21
Contains the TPZGraphMesh class which represents a graphical mesh used for post processing purposes...
virtual void DrawMesh(int numcases)
Draw mesh as dx file.
Definition: pzdxmesh.cpp:93
A simple stack.
Implements block matrices. Matrix utility.
Implements computational mesh. Computational Mesh.
Definition: pzcmesh.h:47
int NNodes()
Number of nodes.
Definition: pzdxmesh.cpp:80
int fNodePosObject[8]
Definition: pzdxmesh.h:22
TPZStack< REAL > fTimes
Definition: pzdxmesh.h:24
TPZDXGraphMesh(TPZCompMesh *mesh, int dimension, const std::set< int > &matids, const TPZVec< std::string > &scalarnames, const TPZVec< std::string > &vecnames)
Constructor for output in DX format.
Definition: pzdxmesh.cpp:19
std::string ElementName()
Definition: pzdxmesh.cpp:89