NeoPZ
pzshapepoint.h
Go to the documentation of this file.
1 
6 #ifndef PZSHAPEPOINT
7 #define PZSHAPEPOINT
8 
9 #include "pzreal.h"
10 #include "pzfmatrix.h"
11 #include "pzvec.h"
12 #include "tpzpoint.h"
13 #include "pzshtmat.h"
14 
16 namespace pzshape{
17 
23  public:
24 
26  struct TMem
27  {
28  };
30 
43  static void Shape(TPZVec<REAL> &pt, TPZVec<int64_t> &id, TPZVec<int> &order,
45  phi(0,0) = 1.;
46  }
47 
48  static void SideShape(int side, TPZVec<REAL> &pt, TPZVec<int64_t> &id, TPZVec<int> &order,TPZFMatrix<REAL> &phi,TPZFMatrix<REAL> &dphi) {
49  if(side == 0) Shape(pt,id,order,phi,dphi);
50  }
51 
55  static void ShapeOrder(TPZVec<int64_t> &id, TPZVec<int> &order, TPZGenMatrix<int> &shapeorders)//, TPZVec<int64_t> &sides
56  {
57  shapeorders(0,0) = 0;
58  }
59 
60 
68  static int NConnectShapeF(int side, int order) { return 1; }
69 
76  static int NShapeF(TPZVec<int> &order) { return 1; }
77 
82  static void PermuteSides(int side, TPZVec<int64_t> &id, TPZVec<int> &permutegather)
83  {
84  permutegather.Resize(1);
85  permutegather[0] = 0;
86  }
87 
88  };
89 
90 };
91 
92 #endif
Temporary storage to accelerate the computation of shape functions. To point it isn&#39;t necessary...
Definition: pzshapepoint.h:26
pztopology::TPZPoint Top
Definition: pzshapepoint.h:29
static int NShapeF(TPZVec< int > &order)
Total number of shapefunctions, considering the order of interpolation of the element.
Definition: pzshapepoint.h:76
Templated vector implementation.
groups all classes dedicated to the computation of shape functions
Definition: pzshapeextend.h:16
Defines the topology of a point. Topology It has a one side (the same element).
Definition: tpzpoint.h:34
Contains the TPZPoint class which defines the topology of a point.
static void PermuteSides(int side, TPZVec< int64_t > &id, TPZVec< int > &permutegather)
Compute the permutation of the connects of the sides such that the order of the shape functions bec...
Definition: pzshapepoint.h:82
static void Shape(TPZVec< REAL > &pt, TPZVec< int64_t > &id, TPZVec< int > &order, TPZFMatrix< REAL > &phi, TPZFMatrix< REAL > &dphi)
Computes the values of the shape functions and their derivatives for a quadrilateral element...
Definition: pzshapepoint.h:43
virtual void Resize(const int64_t newsize, const T &object)
Resizes the vector object reallocating the necessary storage, copying the existing objects to the new...
Definition: pzvec.h:373
static int NConnectShapeF(int side, int order)
Number of shapefunctions of the connect associated with the side, considering the order of interpolat...
Definition: pzshapepoint.h:68
Contains TPZMatrixclass which implements full matrix (using column major representation).
Compute the single shape function associated with a point. Shape.
Definition: pzshapepoint.h:22
static void ShapeOrder(TPZVec< int64_t > &id, TPZVec< int > &order, TPZGenMatrix< int > &shapeorders)
returns the polynomial order in the natural ksi, eta of the side associated with each shapefunction ...
Definition: pzshapepoint.h:55
Implements generic class which holds a matrix of objects. Matrix.
Definition: pzshtmat.h:18
Contains TPZGenMatrix class which implements generic class which holds a matrix of objects...
Contains the declaration of TPZFlopCounter class and TPZCounter struct.
static void SideShape(int side, TPZVec< REAL > &pt, TPZVec< int64_t > &id, TPZVec< int > &order, TPZFMatrix< REAL > &phi, TPZFMatrix< REAL > &dphi)
Definition: pzshapepoint.h:48