22 fDelx[0] = (x1[0]-x0[0])/(nx[0]);
23 fDelx[1] = (x1[1]-x0[1])/(nx[1]);
35 return y*(
fNx[0]+1)+x;
54 grid.
NodeVec()[index].Initialize(coor,grid);
63 for(i=fRangex[0]; i<fRangex[1]; i++) {
85 int ix = i%(
fNx[0]+1);
86 int iy = i/(
fNx[0]+1);
94 rectangle_nodes[0] = yel*(
fNx[0]+1)+xel;
95 rectangle_nodes[1] = yel*(
fNx[0]+1)+xel+1;
96 rectangle_nodes[2] = (yel+1)*(
fNx[0]+1)+xel+1;
97 rectangle_nodes[3] = (yel+1)*(
fNx[0]+1)+xel;
103 out<<
"\n"<<name<<
"\n";
104 out <<
"Number of divisions " <<
fNx[0] <<
' ' <<
fNx[1] << endl;
105 out <<
"Corner Coordinates " << endl <<
fX0[0] <<
' ' <<
fX0[1] << endl;
106 out <<
fX1[0] <<
' ' <<
fX1[1] << endl;
111 if(side == 0 &&
fRangey[0] != 0)
return;
114 if(side == 3 &&
fRangex[0] != 0)
return;
124 for(int64_t el=0; el<
numel; el++) {
void Print(char *name=NULL, std::ostream &out=std::cout)
const int64_t numel
Number of elements to test.
clarg::argBool bc("-bc", "binary checkpoints", false)
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...
Contains declaration of TPZGeoNode class which defines a geometrical node.
Templated vector implementation.
Contains the TPZGenPartialGrid class which implements the generation of a geometric grid...
Contains declaration of TPZGeoElBC class, it is a structure to help the construction of geometric ele...
int64_t NElements() const
Access method to query the number of elements of the vector.
void Resize(const int newsize)
Increase the size of the chunk vector.
Contains declaration of TPZMesh class which defines a geometrical mesh and contains a corresponding l...
void Coord(int i, TPZVec< REAL > &coord)
short Read(TPZGeoMesh &malha)
Defines the behaviour of all geometric elements. GeometryTPZGeoEl is the common denominator for all g...
TPZAdmChunkVector< TPZGeoNode > & NodeVec()
Contains declaration of TPZCompMesh class which is a repository for computational elements...
void SetBC(TPZGeoMesh &gr, int side, int bc)
Structure to help the construction of geometric elements along side of a given geometric element...
void GetBoundaryElements(int64_t IndexNodeFrom, int64_t IndexNodeTo, TPZStack< TPZGeoEl *> &ElementVec, TPZStack< int > &Sides)
GetBoundaryElements returns all elements beweeen NodFrom and NodTo counterclock wise this method uses...
void BuildConnectivity()
Build the connectivity of the grid.
This class implements a geometric mesh for the pz environment. Geometry.
This class implements a stack object. Utility.
TPZGenPartialGrid(TPZVec< int > &nx, TPZVec< int > &rangex, TPZVec< int > &rangey, TPZVec< REAL > &x0, TPZVec< REAL > &x1)
int64_t NElements() const
Returns the number of elements of the vector.
int64_t NodeIndex(int i, int j)
int64_t ElementIndex(int i, int j)
void ElementConnectivity(int64_t iel, TPZVec< int64_t > &nodes)