NeoPZ
pzgraphel1d.h
Go to the documentation of this file.
1 
6 #ifndef GRAFEL1DH
7 #define GRAFEL1DH
8 
9 #include "pzgraphel.h"
10 #include "pzvec.h"
11 
12 class TPZGraphMesh;
13 class TPZGraphNode;
14 template<class TVar>
15 class TPZBlock;
16 
21 class TPZGraphEl1d : public TPZGraphEl
22 {
23 public:
26 
27  virtual int NConnects() { return 3;}
28 
29  virtual MElementType Type() {return EOned;}
30 
31  virtual int ExportType(TPZDrawStyle st);
32 
33  virtual int NNodes();
34 
35  virtual TPZGraphNode *Connect(int64_t i) {return fConnects[i];}
36 
37  virtual int NPoints(TPZGraphNode *n);
38 
39  virtual int NElements();
40 
42  virtual int Dimension()
43  {
44  return 1;
45  }
46 
47  virtual void Connectivity(TPZDrawStyle st = EDXStyle);
48 
49  void Print(std::ostream &out);
50 
51  virtual int64_t EqNum( TPZVec<int> &co);
52 
53 
54 protected:
55 
56  virtual void FirstIJ(int no, TPZVec<int> &co, int &incr);
57 
58  virtual void NextIJ(int no, TPZVec<int> &co, int incr);
59 
62 
63  virtual void SetNode(int64_t i,TPZGraphNode *gno) {
64  fConnects[i] = gno;
65  }
66 
67 };
68 
69 #endif
virtual int NNodes()
Number of corner nodes (geometric information)
virtual int64_t EqNum(TPZVec< int > &co)
Number of equations.
Definition: pzgraphel1d.cpp:38
Represents a graphical mesh used for post processing purposes. Post processing.
Definition: pzgraphmesh.h:34
virtual int Dimension()
the parametric dimension of the element
Definition: pzgraphel1d.h:42
Templated vector implementation.
Contains the TPZGraphEl class which implements the graphical one-, two- and three-dimensional element...
virtual void SetNode(int64_t i, TPZGraphNode *gno)
Sets a ith graphical node.
Definition: pzgraphel1d.h:63
TPZGraphNode * fConnects[3]
Graphical nodes vector (by connect of the computational element)
Definition: pzgraphel1d.h:61
TPZGraphEl1d(TPZCompEl *ce, TPZGraphMesh *gg)
Constructor for graphical element to computational one dimensional element.
Definition: pzgraphel1d.cpp:13
virtual int NElements()
Definition: pzgraphel1d.cpp:32
virtual int NPoints(TPZGraphNode *n)
Number of points to graphical resolution.
Definition: pzgraphel1d.cpp:17
Definition: TPZDrawStyle.h:12
virtual int NConnects()
Number of connects for the element.
Definition: pzgraphel1d.h:27
virtual TPZGraphNode * Connect(int64_t i)
Return the graphical connect.
Definition: pzgraphel1d.h:35
virtual void Connectivity(TPZDrawStyle st=EDXStyle)
Set dx style for connectivity information.
REAL co[8][3]
Coordinates of the eight nodes.
virtual void NextIJ(int no, TPZVec< int > &co, int incr)
Definition: pzgraphel1d.cpp:92
Implements block matrices. Matrix utility.
MElementType
Define the element types.
Definition: pzeltype.h:52
virtual int ExportType(TPZDrawStyle st)
Sets the style to export (format)
virtual void FirstIJ(int no, TPZVec< int > &co, int &incr)
Definition: pzgraphel1d.cpp:53
virtual MElementType Type()
Get the type of the graphical element.
Definition: pzgraphel1d.h:29
To export a graphical one dimensional element. Post processing.
Definition: pzgraphel1d.h:21
Abstract class to graphical one-, two- and three-dimensional element. Post processing.
Definition: pzgraphel.h:23
void Print(std::ostream &out)
Definition: pzeltype.h:55
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