NeoPZ
pzpargrid.h
Go to the documentation of this file.
1 
6 #ifndef _TPZPARGRIDHH_
7 #define _TPZPARGRIDHH_
8 
9 class TPZCompMesh;
10 class TPZGeoMesh;
11 
12 #include <stdio.h>
13 #include <iostream>
14 #include "pzreal.h"
15 #include "pzvec.h"
16 
25 public:
34 
36 
37  short Read (TPZGeoMesh & malha);
38 
39  void SetBC(TPZGeoMesh &gr, int side, int bc);
40 
41  void Print( char *name = NULL, std::ostream &out = std::cout );
42 
43  void SetElementType(int type) {
44  fElementType = type;
45  }
46 
47 protected:
48 
49  void Coord(int i, TPZVec<REAL> &coord);
50 
51  int64_t NodeIndex(int i, int j);
52 
53  int64_t ElementIndex(int i, int j);
54 
55  void ElementConnectivity(int64_t iel, TPZVec<int64_t> &nodes);
56 
60  int64_t fNumNodes;
62 
63 };
64 
65 #endif // _TPZGENGRIDHH_
void Print(char *name=NULL, std::ostream &out=std::cout)
Definition: pzpargrid.cpp:100
TPZVec< REAL > fDelx
Definition: pzpargrid.h:59
clarg::argBool bc("-bc", "binary checkpoints", false)
TPZVec< int > fRangey
Definition: pzpargrid.h:58
Templated vector implementation.
Implements the generation of a geometric grid. Getting Data.
Definition: pzpargrid.h:24
void Coord(int i, TPZVec< REAL > &coord)
Definition: pzpargrid.cpp:84
short Read(TPZGeoMesh &malha)
Definition: pzpargrid.cpp:43
void SetElementType(int type)
Definition: pzpargrid.h:43
TPZVec< REAL > fX0
Definition: pzpargrid.h:59
void SetBC(TPZGeoMesh &gr, int side, int bc)
Definition: pzpargrid.cpp:110
TPZVec< int > fRangex
Definition: pzpargrid.h:58
TPZVec< REAL > fX1
Definition: pzpargrid.h:59
This class implements a geometric mesh for the pz environment. Geometry.
Definition: pzgmesh.h:48
Implements computational mesh. Computational Mesh.
Definition: pzcmesh.h:47
TPZGenPartialGrid(TPZVec< int > &nx, TPZVec< int > &rangex, TPZVec< int > &rangey, TPZVec< REAL > &x0, TPZVec< REAL > &x1)
Definition: pzpargrid.cpp:19
TPZVec< int > fNx
Definition: pzpargrid.h:57
Contains the declaration of TPZFlopCounter class and TPZCounter struct.
int64_t NodeIndex(int i, int j)
Definition: pzpargrid.cpp:34
int64_t ElementIndex(int i, int j)
Definition: pzpargrid.cpp:38
int64_t fNumNodes
Definition: pzpargrid.h:60
void ElementConnectivity(int64_t iel, TPZVec< int64_t > &nodes)
Definition: pzpargrid.cpp:91