NeoPZ
tpzquadraticprism.h
Go to the documentation of this file.
1 
5 #ifndef TPZQUADRATICPRISM_H
6 #define TPZQUADRATICPRISM_H
7 
8 
9 #include "pzgeoprism.h"
10 #include "pzgeoel.h"
11 #include "pznoderep.h"
12 
13 #include <iostream>
14 
22 namespace pzgeom {
23 
24 class TPZQuadraticPrism : public pzgeom::TPZNodeRep<15,pztopology::TPZPrism> {
25 
26 public:
28  enum {NNodes = 15};
29 
30 int ClassId() const override;
31 
32  //virtual void ParametricDomainNodeCoord(int node, TPZVec<REAL> &nodeCoord);
33 
34 
37  {
38  }
39 
42  {
43  }
44 
45  TPZQuadraticPrism(const TPZQuadraticPrism &cp,std::map<int64_t,int64_t> & gl2lcNdMap) : TPZRegisterClassId(&TPZQuadraticPrism::ClassId), pzgeom::TPZNodeRep<NNodes,pztopology::TPZPrism>(cp,gl2lcNdMap)
46  {
47  }
48 
50  {
51  }
52 
54  {
55  }
56 
58  static std::string TypeName() { return "Prism";}
59 
60  static bool IsLinearMapping(int side)
61  {
62  return false;
63  }
64 
66  static void Shape(TPZVec<REAL> &loc,TPZFMatrix<REAL> &phi,TPZFMatrix<REAL> &dphi){
67  TShape(loc, phi, dphi);
68  }
69 
70 
71  template<class T>
72  static void TShape(const TPZVec<T> &param,TPZFMatrix<T> &phi,TPZFMatrix<T> &dphi);
73 
74  template<class T>
75  static void X(const TPZFMatrix<REAL> &coord, TPZVec<T> &par, TPZVec< T > &result);
76 
78  template<class T>
79  static void GradX(const TPZFMatrix<REAL> &nodes,TPZVec<T> &par, TPZFMatrix<T> &gradx);
80 
82  // static TPZGeoEl *CreateGeoElement(TPZGeoMesh &mesh, MElementType type,
83  // TPZVec<int64_t>& nodeindexes,
84  // int matid, int64_t& index);
85 
86  static void InsertExampleElement(TPZGeoMesh &gmesh, int matid, TPZVec<REAL> &lowercorner, TPZVec<REAL> &size);
87 
88  // TPZGeoEl *CreateBCGeoEl(TPZGeoEl *orig,int side,int bc);
89 };
90 
91 };
92 
93 #endif
int ClassId() const override
CreateGeoElement -> TPZQuadraticPrism.
static void GradX(const TPZFMatrix< REAL > &nodes, TPZVec< T > &par, TPZFMatrix< T > &gradx)
Compute gradient of X mapping from element nodes and local parametric coordinates.
static void TShape(const TPZVec< T > &param, TPZFMatrix< T > &phi, TPZFMatrix< T > &dphi)
TPZQuadraticPrism(const TPZQuadraticPrism &cp)
static void X(const TPZFMatrix< REAL > &coord, TPZVec< T > &par, TPZVec< T > &result)
TPZQuadraticPrism(const TPZQuadraticPrism &cp, TPZGeoMesh &)
pztopology::TPZPrism Top
static std::string TypeName()
Returns the type name of the element.
Groups all classes defining the structure of the master element.
Definition: PrismExtend.cpp:15
static void InsertExampleElement(TPZGeoMesh &gmesh, int matid, TPZVec< REAL > &lowercorner, TPZVec< REAL > &size)
Creates a geometric element according to the type of the father element.
static void Shape(TPZVec< REAL > &loc, TPZFMatrix< REAL > &phi, TPZFMatrix< REAL > &dphi)
Compute the shape being used to construct the X mapping from local parametric coordinates.
Contains the TPZNodeRep class which implements ... Clase intermediaria que guarda.
Defines the topology of a Prism. Topology Sides 0 to 7 are vertices, sides 7 to 14 are lines...
Definition: tpzprism.h:34
static bool IsLinearMapping(int side)
Implements ... Geometry Topology.
Definition: pznoderep.h:40
TPZQuadraticPrism(TPZVec< int64_t > &nodeindexes)
This class implements a geometric mesh for the pz environment. Geometry.
Definition: pzgmesh.h:48
TPZQuadraticPrism(const TPZQuadraticPrism &cp, std::map< int64_t, int64_t > &gl2lcNdMap)
Contains the TPZGeoPrism class which implements the geometry of a prism element.
Groups all classes which model the geometry.
Definition: pzgeopoint.cpp:18
TPZPrism()
Default constructor.
Definition: tpzprism.h:47