NeoPZ
|
Implements the generation of a geometric grid. Getting Data. More...
#include <pzpargrid.h>
Public Member Functions | |
TPZGenPartialGrid (TPZVec< int > &nx, TPZVec< int > &rangex, TPZVec< int > &rangey, TPZVec< REAL > &x0, TPZVec< REAL > &x1) | |
~TPZGenPartialGrid () | |
short | Read (TPZGeoMesh &malha) |
void | SetBC (TPZGeoMesh &gr, int side, int bc) |
void | Print (char *name=NULL, std::ostream &out=std::cout) |
void | SetElementType (int type) |
Protected Member Functions | |
void | Coord (int i, TPZVec< REAL > &coord) |
int64_t | NodeIndex (int i, int j) |
int64_t | ElementIndex (int i, int j) |
void | ElementConnectivity (int64_t iel, TPZVec< int64_t > &nodes) |
Protected Attributes | |
TPZVec< int > | fNx |
TPZVec< int > | fRangex |
TPZVec< int > | fRangey |
TPZVec< REAL > | fX0 |
TPZVec< REAL > | fX1 |
TPZVec< REAL > | fDelx |
int64_t | fNumNodes |
int | fElementType |
Implements the generation of a geometric grid. Getting Data.
Implements the generation of part of the grid This class uses DEPRECATED objects, but can be easily updated
Definition at line 24 of file pzpargrid.h.
TPZGenPartialGrid::TPZGenPartialGrid | ( | TPZVec< int > & | nx, |
TPZVec< int > & | rangex, | ||
TPZVec< int > & | rangey, | ||
TPZVec< REAL > & | x0, | ||
TPZVec< REAL > & | x1 | ||
) |
x0 | lower left coordinate |
x1 | upper right coordinate |
nx | number of nodes in x and y |
rangex | range of nodes which need to be created |
rangey | range of nodes which need to be created |
Definition at line 19 of file pzpargrid.cpp.
References fDelx, fElementType, fNumNodes, fRangex, and fRangey.
TPZGenPartialGrid::~TPZGenPartialGrid | ( | ) |
Definition at line 30 of file pzpargrid.cpp.
|
protected |
Definition at line 84 of file pzpargrid.cpp.
References fDelx, fNx, and fX0.
Referenced by Read(), and SetElementType().
|
protected |
Definition at line 91 of file pzpargrid.cpp.
References fNx.
Referenced by Read(), and SetElementType().
|
protected |
Definition at line 38 of file pzpargrid.cpp.
References fNx.
Referenced by Read(), and SetElementType().
|
protected |
Definition at line 34 of file pzpargrid.cpp.
References fNx.
Referenced by Read(), SetBC(), and SetElementType().
void TPZGenPartialGrid::Print | ( | char * | name = NULL , |
std::ostream & | out = std::cout |
||
) |
Definition at line 100 of file pzpargrid.cpp.
short TPZGenPartialGrid::Read | ( | TPZGeoMesh & | malha | ) |
Definition at line 43 of file pzpargrid.cpp.
References TPZGeoMesh::BuildConnectivity(), Coord(), TPZGeoMesh::CreateGeoElement(), ElementConnectivity(), ElementIndex(), EQuadrilateral, ETriangle, fElementType, fNumNodes, fRangex, fRangey, TPZChunkVector< T, EXP >::NElements(), NodeIndex(), TPZGeoMesh::NodeVec(), and TPZAdmChunkVector< T, EXP >::Resize().
void TPZGenPartialGrid::SetBC | ( | TPZGeoMesh & | gr, |
int | side, | ||
int | bc | ||
) |
Definition at line 110 of file pzpargrid.cpp.
References fNx, fRangex, fRangey, TPZGeoMesh::GetBoundaryElements(), TPZVec< T >::NElements(), NodeIndex(), and numel.
|
inline |
Definition at line 43 of file pzpargrid.h.
References Coord(), ElementConnectivity(), ElementIndex(), fElementType, and NodeIndex().
|
protected |
Definition at line 59 of file pzpargrid.h.
Referenced by Coord(), and TPZGenPartialGrid().
|
protected |
Definition at line 61 of file pzpargrid.h.
Referenced by Read(), SetElementType(), and TPZGenPartialGrid().
|
protected |
Definition at line 60 of file pzpargrid.h.
Referenced by Read(), and TPZGenPartialGrid().
|
protected |
Definition at line 57 of file pzpargrid.h.
Referenced by Coord(), ElementConnectivity(), ElementIndex(), NodeIndex(), Print(), and SetBC().
|
protected |
Definition at line 58 of file pzpargrid.h.
Referenced by Read(), SetBC(), and TPZGenPartialGrid().
|
protected |
Definition at line 58 of file pzpargrid.h.
Referenced by Read(), SetBC(), and TPZGenPartialGrid().
|
protected |
Definition at line 59 of file pzpargrid.h.
|
protected |
Definition at line 59 of file pzpargrid.h.
Referenced by Print().