71 phitheta(0,1) = M_PI/5.;
75 phitheta(1,1) = 2*M_PI;
76 phitheta(1,2) = 2*M_PI-M_PI/5.;
82 for (
int i=0; i<3; i++) {
85 loc[0] = coords[i][0];
86 loc[1] = coords[i][1];
88 torus.
X(phitheta, loc, xco);
89 gmesh.
NodeVec()[indexes[i]].Initialize(xco, gmesh);
int AllocateNewElement()
Makes more room for new elements.
int ClassId() const override
Define the class id associated with the class.
void SetOrigin(TPZVec< REAL > &origin)
void SetDataRadius(const REAL &R, const REAL &r)
Implements the mapping between the master element and deformed element. Geometry. ...
void X(TPZFMatrix< REAL > &coord, TPZVec< T > &loc, TPZVec< T > &result) const
Contains declaration of TPZGeoElMapped class which implements a geometric element using its ancestral...
static void InsertExampleElement(TPZGeoMesh &gmesh, int matid, TPZVec< REAL > &lowercorner, TPZVec< REAL > &size)
Implements a generic geometric element which is refined according to a generic refinement pattern...
TPZAdmChunkVector< TPZGeoNode > & NodeVec()
Contains declaration of TPZGeoElRefPattern class which implements a generic geometric element which i...
int32_t Hash(std::string str)
This class implements a geometric mesh for the pz environment. Geometry.
void SetDataPhiTheta(const TPZFMatrix< REAL > &phitheta)
int ClassId() const override
Creates a geometric element according to the type of the father element.
Groups all classes which model the geometry.
Implements an interface to register a class id and a restore function. Persistence.