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