NeoPZ
tpzgraphelprismmapped.cpp
Go to the documentation of this file.
1 
7 #include "pzshapecube.h"
8 
9 static REAL cornerco[8][3] =
10 {
11  {0.,0.,-1.},
12  {1.,0.,-1.},
13  {0.,1.,-1.},
14  {0.,1.,-1.},
15  {0.,0.,1.},
16  {1.,0.,1.},
17  {0.,1.,1.},
18  {0.,1.,1.}
19 };
20 
22 {
23 }
24 
25 
27 {
28 }
29 
31 {
32  TPZGraphElQ3dd::QsiEta(i,imax,qsieta);
33  TPZFNMatrix<24> phi(8,1,0.),dphi(3,8,0.);
34  pzshape::TPZShapeCube::ShapeCorner(qsieta,phi,dphi);
35  REAL temp[3] = {0.,0.,0.};
36  int is;
37  for(is=0; is<8; is++)
38  {
39  temp[0] += cornerco[is][0]*phi(is,0);
40  temp[1] += cornerco[is][1]*phi(is,0);
41  temp[2] += cornerco[is][2]*phi(is,0);
42  }
43  qsieta[0] = temp[0];
44  qsieta[1] = temp[1];
45  qsieta[2] = temp[2];
46 
47 }
48 
Represents a graphical mesh used for post processing purposes. Post processing.
Definition: pzgraphmesh.h:34
static REAL cornerco[8][3]
~TPZGraphElPrismMapped()
Simple destructor.
To export a graphical three dimensional discontinuous element. Post processing.
Definition: pzgraphelq3dd.h:20
Contains TPZShapeCube class which implements the shape functions of a hexaedral element.
static void ShapeCorner(TPZVec< REAL > &pt, TPZFMatrix< REAL > &phi, TPZFMatrix< REAL > &dphi)
Computes the corner shape functions for a hexahedral element.
Definition: pzshapecube.cpp:34
virtual void QsiEta(TPZVec< int > &i, int imax, TPZVec< REAL > &qsieta)
This method maps the index of a point to parameter space as a function of the number of divisions...
Definition: pzgraphel.cpp:62
Contains the TPZGraphElPrismMapped class which implements the graphical element for a prism using a d...
virtual void QsiEta(TPZVec< int > &i, int imax, TPZVec< REAL > &qsieta)
This method maps the index of a point to parameter space as a function of the number of divisions...
Defines the interface of a computational element. Computational Element.
Definition: pzcompel.h:59
Non abstract class which implements full matrices with preallocated storage with (N+1) entries...
Definition: pzfmatrix.h:716
TPZGraphElPrismMapped(TPZCompEl *cel, TPZGraphMesh *gmesh)
Constructor for graphical prism element.