NeoPZ
pztrigraph.h
Go to the documentation of this file.
1 
6 #ifndef TRIGRAPH
7 #define TRIGRAPH
8 
9 #include "pzgraphel.h"
10 #include "pzvec.h"
11 
16 class TPZGraphElT : public TPZGraphEl {
17 
18  public :
19 
20 
23 
24  virtual int NConnects();
25 
26  virtual MElementType Type() {return ETriangle;}
27 
28  virtual int ExportType(TPZDrawStyle st);
29 
30  virtual int NNodes();
31 
32  virtual int NElements();
33 
34  virtual int NPoints(TPZGraphNode *n);
35 
36  virtual TPZGraphNode *Connect(int64_t i) {return fConnects[i];}
37 
38  virtual void Connectivity(TPZDrawStyle st = EDXStyle);
39 
40  virtual int64_t EqNum(TPZVec<int> &co);
41 
43  virtual int Dimension()
44  {
45  return 2;
46  }
47 
48 
49  protected :
50 
51  virtual void QsiEta(TPZVec<int> &i, int imax, TPZVec<REAL> &qsieta);
52 
53  virtual void FirstIJ(int no, TPZVec<int> &co, int &incr);
54 
55  virtual void NextIJ(int no, TPZVec<int> &co, int incr);
56 
57  virtual void SetNode(int64_t i,TPZGraphNode *gno) {
58  fConnects[i] = gno;
59  }
60 
63 
64 };
65 
66 #endif
Represents a graphical mesh used for post processing purposes. Post processing.
Definition: pzgraphmesh.h:34
TPZGraphElT(TPZCompEl *c, TPZGraphMesh *g)
Constructor for graphical element to computational triangular element.
Definition: pztrigraph.cpp:11
virtual MElementType Type()
Get the type of the graphical element.
Definition: pztrigraph.h:26
virtual void SetNode(int64_t i, TPZGraphNode *gno)
Sets a ith graphical node.
Definition: pztrigraph.h:57
Templated vector implementation.
To export a graphical triangular element. Post processing.
Definition: pztrigraph.h:16
Contains the TPZGraphEl class which implements the graphical one-, two- and three-dimensional element...
virtual void Connectivity(TPZDrawStyle st=EDXStyle)
Set dx style for connectivity information.
Definition: pztrigraph.cpp:43
virtual int NElements()
Definition: pztrigraph.cpp:18
virtual int64_t EqNum(TPZVec< int > &co)
Number of equations.
Definition: pztrigraph.cpp:71
TPZGraphNode * fConnects[7]
Graphical nodes vector (by connect of the computational element)
Definition: pztrigraph.h:62
virtual int ExportType(TPZDrawStyle st)
Sets the style to export (format)
Definition: pztrigraph.cpp:231
Definition: TPZDrawStyle.h:12
virtual int NConnects()
Number of connects for the element.
Definition: pztrigraph.cpp:14
virtual int NNodes()
Number of corner nodes (geometric information)
Definition: pztrigraph.cpp:241
REAL co[8][3]
Coordinates of the eight nodes.
virtual TPZGraphNode * Connect(int64_t i)
Return the graphical connect.
Definition: pztrigraph.h:36
virtual void NextIJ(int no, TPZVec< int > &co, int incr)
Definition: pztrigraph.cpp:202
virtual int NPoints(TPZGraphNode *n)
Number of points to graphical resolution.
Definition: pztrigraph.cpp:24
MElementType
Define the element types.
Definition: pzeltype.h:52
virtual void QsiEta(TPZVec< int > &i, int imax, TPZVec< REAL > &qsieta)
This method maps the index of a point to parameter space as a function of the number of divisions...
Definition: pztrigraph.cpp:112
virtual void FirstIJ(int no, TPZVec< int > &co, int &incr)
Definition: pztrigraph.cpp:117
Abstract class to graphical one-, two- and three-dimensional element. Post processing.
Definition: pzgraphel.h:23
virtual int Dimension()
the parametric dimension of the element
Definition: pztrigraph.h:43
Defines the interface of a computational element. Computational Element.
Definition: pzcompel.h:59
To export a graphical node. Post processing.
Definition: pzgraphnode.h:24
TPZDrawStyle
Definition: TPZDrawStyle.h:12