17 static LoggerPtr logger(Logger::getLogger(
"pz.geom.pzgeopyramid"));
107 for (
int i = 0; i < 3; i++) {
108 scale[i] = size[i] / 3.;
109 shift[i] = 1. / 2. + lowercorner[i];
112 for (
int i = 0; i < NCornerNodes; i++) {
113 ParametricDomainNodeCoord(i,
co);
114 for (
int j = 0; j < 3; j++) {
115 co[j] = shift[j] + scale[j] *
co[j] + (rand() * 0.2 / RAND_MAX) - 0.1;
118 gmesh.
NodeVec()[nodeindexes[i]].Initialize(
co, gmesh);
124 int TPZGeoPyramid::ClassId()
const {
128 void TPZGeoPyramid::Read(
TPZStream &buf,
void *context) {
132 void TPZGeoPyramid::Write(
TPZStream &buf,
int withclassid)
const {
Contains TPZShapeTetra class which implements the shape functions of a tetrahedral element...
int AllocateNewElement()
Makes more room for new elements.
Contains the TPZInt1d, TPZIntTriang, TPZIntQuad, TPZIntCube3D, TPZIntTetra3D, TPZIntPyram3D and TPZIn...
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.
virtual TPZGeoEl * CreateGeoElement(MElementType type, TPZVec< int64_t > &cornerindexes, int matid, int64_t &index, int reftype=1)
Generic method for creating a geometric element. Putting this method centrally facilitates the modifi...
groups all classes dedicated to the computation of shape functions
Contains TPZMatrixclass which implements full matrix (using column major representation).
const double pzgeom_TPZNodeRep_tol
Initializing tolerance to TPZNodeRep.
TPZAdmChunkVector< TPZGeoNode > & NodeVec()
Contains declaration of TPZGeoElRefPattern class which implements a generic geometric element which i...
REAL co[8][3]
Coordinates of the eight nodes.
Implements ... Geometry Topology.
int32_t Hash(std::string str)
This class implements a geometric mesh for the pz environment. Geometry.
Contains TPZShapePiram class which implements the shape functions of a pyramid element.
Contains the TPZGeoPyramid class which implements the geometry of pyramid element.
Defines the interface for saving and reading data. Persistency.
Groups all classes which model the geometry.