26 REAL zst = 1./(1.-pt[2]);
29 for (
int is=0; is<NSides; is++) {
38 norig = TPZShapePiram::NConnectShapeF(is, order[is-5]);
39 nshape = NConnectShapeF(is, order[is-5]);
41 for (
int shape = 0; shape<norig; shape++)
43 phi(shape+count,0) = phicp(shape+countorig,0);
44 for (
int d=0; d<3; d++) {
45 dphi(d,shape+count) = dphicp(d,shape+countorig);
50 for (
int shape = 0; shape<norig; shape++)
52 phi(shape+norig+count,0) = phicp(shape+countorig,0)*zst;
53 for (
int d=0; d<3; d++) {
54 dphi(d,shape+norig+count) = dphicp(d,shape+countorig)*zst;
56 dphi(2,shape+norig+count) += phicp(shape+countorig,0)*zst*zst;
68 int TPZShapePiramHdiv::NConnectShapeF(
int side,
int order) {
80 return TPZShapePiram::NConnectShapeF(side, order)*2;
86 return TPZShapePiram::NConnectShapeF(side, order);
91 int TPZShapePiramHdiv::ClassId()
const{
92 return Hash(
"TPZShapePiramHdiv") ^ TPZShapePiram::ClassId() << 1;
bool IsZero(long double a)
Returns if the value a is close Zero as the allowable tolerance.
groups all classes dedicated to the computation of shape functions
void Shape(TPZVec< REAL > &pt, TPZVec< int > orders, TPZVec< TPZTransform< REAL > > &transvec, TPZFMatrix< REAL > &phi, TPZFMatrix< REAL > &dphi)
Contains TPZShapePiram class which implements the shape functions of a pyramid element. author: Nathan Shauer date: 01/04/2015.
int32_t Hash(std::string str)
Non abstract class which implements full matrices with preallocated storage with (N+1) entries...