NeoPZ
tpzgeoelrefpattern.cpp
Go to the documentation of this file.
1 
6 #include "tpzgeoelrefpattern.h"
7 #include "tpzgeoelrefpattern.h.h"
8 #include "TPZGeoCube.h"
9 #include "pzshapecube.h"
10 #include "TPZRefCube.h"
11 #include "pzshapelinear.h"
12 #include "TPZGeoLinear.h"
13 #include "TPZRefLinear.h"
14 #include "pzrefquad.h"
15 #include "pzshapequad.h"
16 #include "pzgeoquad.h"
17 #include "pzshapetriang.h"
18 #include "pzreftriangle.h"
19 #include "pzgeotriangle.h"
20 #include "pzshapeprism.h"
21 #include "pzrefprism.h"
22 #include "pzgeoprism.h"
23 #include "pzshapetetra.h"
24 #include "pzreftetrahedra.h"
25 #include "pzgeotetrahedra.h"
26 #include "pzshapepiram.h"
27 #include "pzrefpyram.h"
28 #include "pzgeopyramid.h"
29 #include "pzrefpoint.h"
30 #include "pzgeopoint.h"
31 #include "pzshapepoint.h"
32 #include "pzgmesh.h"
33 #include "pzgeoel.h"
34 #include "TPZGeoElement.h"
35 #include "TPZRefPattern.h"
36 #include "pzvec.h"
37 #include "pzmanvector.h"
38 #include "TPZRefPatternDataBase.h"
39 
40 using namespace pzgeom;
41 using namespace pzshape;
42 
43 #include "pzlog.h"
44 
45 #ifdef LOG4CXX
46 static LoggerPtr logger(Logger::getLogger("pz.mesh.tpzgeoelrefpattern"));
47 #endif
49  TPZVec<int64_t>& nodeindexes,
50  int matid,
51  int64_t& index)
52 
53 {
54  switch( type ){
55  case 0://point
56  {
57  TPZGeoEl * gel =
58  new TPZGeoElRefPattern<TPZGeoPoint>(nodeindexes, matid, mesh, index);
59  return gel;
60  }
61  case 1://line
62  {
63  TPZGeoEl *gel =
65  (nodeindexes, matid, mesh, index);
66  return gel;
67  }
68  case 2://triangle
69  {
70  TPZGeoEl *gel =
72  (nodeindexes, matid, mesh, index);
73  return gel;
74  }
75  case 3://quadrilatera
76  {
77  TPZGeoEl* gel =
79  (nodeindexes, matid, mesh, index);
80  return gel;
81  }
82  case 4://tetraedra
83  {
84  TPZGeoEl*gel =
86  (nodeindexes, matid, mesh, index);
87  return gel;
88  }
89  case 5://pyramid
90  {
91  TPZGeoEl *gel =
93  (nodeindexes, matid, mesh, index);
94  return gel;
95  }
96  case 6://prism
97  {
98  TPZGeoEl*gel =
100  (nodeindexes, matid, mesh, index);
101  return gel;
102  }
103  case 7://cube
104  {
105  TPZGeoEl*gel =
107  (nodeindexes, matid, mesh, index);
108  return gel;
109  }
110  default:
111  {
112  PZError << "TPZGeoMesh::CreateGeoElementRefPattern type element not exists:"
113  << " type = " << type << std::endl;
114  return NULL;
115  }
116  }
117 }
118 
119 
120 
Contains TPZShapeTetra class which implements the shape functions of a tetrahedral element...
Contains definitions to LOGPZ_DEBUG, LOGPZ_INFO, LOGPZ_WARN, LOGPZ_ERROR and LOGPZ_FATAL, and the implementation of the inline InitializePZLOG(string) function using log4cxx library or not. It must to be called out of "#ifdef LOG4CXX" scope.
Templated vector implementation.
groups all classes dedicated to the computation of shape functions
Definition: pzshapeextend.h:16
Contains the TPZRefQuad class which implements the uniform refinement of a geometric quadrilateral el...
Contains TPZShapeLinear class which implements the shape functions of a linear one-dimensional elemen...
Contains the TPZRefPyramid class which implements the uniform refinement of a geometric hexahedral el...
TPZGeoEl * CreateGeoElementPattern(TPZGeoMesh &mesh, MElementType type, TPZVec< int64_t > &nodeindexes, int matid, int64_t &index)
Creates TPZGeoElRefPattern geometric element based over type.
Contains TPZShapeCube class which implements the shape functions of a hexaedral element.
Contains the TPZRefPrism class which implements the uniform refinement of a geometric prism element...
Contains declaration of TPZMesh class which defines a geometrical mesh and contains a corresponding l...
Implements a generic geometric element which is refined according to a generic refinement pattern...
Definition: pzgmesh.h:35
Defines the behaviour of all geometric elements. GeometryTPZGeoEl is the common denominator for all g...
Definition: pzgeoel.h:43
Contains the TPZGeoTetrahedra class which implements the geometry of a tetrahedral element...
Free store vector implementation.
Contains declaration of TPZGeoElRefPattern class which implements a generic geometric element which i...
Contains TPZShapePoint class which implements the shape function associated with a point...
Contains the TPZRefPattern class which defines the topology of the current refinement pattern to a me...
Contains the TPZGeoCube class which implements the geometry of hexahedra element. ...
Contains the TPZGeoPoint class which implements the geometry of a point element or 0-D element...
Contains TPZShapePrism class which implements the shape functions of a prism element.
Contains the TPZRefTriangle class which implements the uniform refinement of a geometric triangular e...
Contains the TPZRefTetrahedra class which implements the uniform refinement of a geometric tetrahedra...
Contains the TPZRefPatternDataBase class which defines data base of patterns.
This class implements a geometric mesh for the pz environment. Geometry.
Definition: pzgmesh.h:48
MElementType
Define the element types.
Definition: pzeltype.h:52
Contains the TPZRefLinear class which implements the uniform refinement of a geometric linear element...
Contains TPZShapePiram class which implements the shape functions of a pyramid element.
Contains the TPZGeoPyramid class which implements the geometry of pyramid element.
Contains the TPZGeoPrism class which implements the geometry of a prism element.
Contains declaration of TPZGeoElement class which implements a generic geometric element with a unifo...
Contains the implementation of the TPZGeoElRefPattern methods.
Groups all classes which model the geometry.
Definition: pzgeopoint.cpp:18
Contains TPZShapeQuad class which implements the shape functions of a quadrilateral element...
Contains the TPZRefCube class which implements the uniform refinement of a geometric hexahedral eleme...
Contains the TPZRefPoint class which implements the uniform refinement of a geometric point element...
Contains TPZShapeTriang class which implements the shape functions of a triangular element...
#define PZError
Defines the output device to error messages and the DebugStop() function.
Definition: pzerror.h:15