NeoPZ
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
TPZGenPartialGrid Class Reference

Implements the generation of a geometric grid. Getting Data. More...

#include <pzpargrid.h>

Collaboration diagram for TPZGenPartialGrid:
[legend]

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
 

Detailed Description

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.

Constructor & Destructor Documentation

◆ TPZGenPartialGrid()

TPZGenPartialGrid::TPZGenPartialGrid ( TPZVec< int > &  nx,
TPZVec< int > &  rangex,
TPZVec< int > &  rangey,
TPZVec< REAL > &  x0,
TPZVec< REAL > &  x1 
)
Parameters
x0lower left coordinate
x1upper right coordinate
nxnumber of nodes in x and y
rangexrange of nodes which need to be created
rangeyrange of nodes which need to be created

Definition at line 19 of file pzpargrid.cpp.

References fDelx, fElementType, fNumNodes, fRangex, and fRangey.

◆ ~TPZGenPartialGrid()

TPZGenPartialGrid::~TPZGenPartialGrid ( )

Definition at line 30 of file pzpargrid.cpp.

Member Function Documentation

◆ Coord()

void TPZGenPartialGrid::Coord ( int  i,
TPZVec< REAL > &  coord 
)
protected

Definition at line 84 of file pzpargrid.cpp.

References fDelx, fNx, and fX0.

Referenced by Read(), and SetElementType().

◆ ElementConnectivity()

void TPZGenPartialGrid::ElementConnectivity ( int64_t  iel,
TPZVec< int64_t > &  nodes 
)
protected

Definition at line 91 of file pzpargrid.cpp.

References fNx.

Referenced by Read(), and SetElementType().

◆ ElementIndex()

int64_t TPZGenPartialGrid::ElementIndex ( int  i,
int  j 
)
protected

Definition at line 38 of file pzpargrid.cpp.

References fNx.

Referenced by Read(), and SetElementType().

◆ NodeIndex()

int64_t TPZGenPartialGrid::NodeIndex ( int  i,
int  j 
)
protected

Definition at line 34 of file pzpargrid.cpp.

References fNx.

Referenced by Read(), SetBC(), and SetElementType().

◆ Print()

void TPZGenPartialGrid::Print ( char *  name = NULL,
std::ostream &  out = std::cout 
)

Definition at line 100 of file pzpargrid.cpp.

References fNx, fX0, and fX1.

◆ Read()

short TPZGenPartialGrid::Read ( TPZGeoMesh malha)

◆ SetBC()

void TPZGenPartialGrid::SetBC ( TPZGeoMesh gr,
int  side,
int  bc 
)

◆ SetElementType()

void TPZGenPartialGrid::SetElementType ( int  type)
inline

Definition at line 43 of file pzpargrid.h.

References Coord(), ElementConnectivity(), ElementIndex(), fElementType, and NodeIndex().

Member Data Documentation

◆ fDelx

TPZVec<REAL> TPZGenPartialGrid::fDelx
protected

Definition at line 59 of file pzpargrid.h.

Referenced by Coord(), and TPZGenPartialGrid().

◆ fElementType

int TPZGenPartialGrid::fElementType
protected

Definition at line 61 of file pzpargrid.h.

Referenced by Read(), SetElementType(), and TPZGenPartialGrid().

◆ fNumNodes

int64_t TPZGenPartialGrid::fNumNodes
protected

Definition at line 60 of file pzpargrid.h.

Referenced by Read(), and TPZGenPartialGrid().

◆ fNx

TPZVec<int> TPZGenPartialGrid::fNx
protected

Definition at line 57 of file pzpargrid.h.

Referenced by Coord(), ElementConnectivity(), ElementIndex(), NodeIndex(), Print(), and SetBC().

◆ fRangex

TPZVec<int> TPZGenPartialGrid::fRangex
protected

Definition at line 58 of file pzpargrid.h.

Referenced by Read(), SetBC(), and TPZGenPartialGrid().

◆ fRangey

TPZVec<int> TPZGenPartialGrid::fRangey
protected

Definition at line 58 of file pzpargrid.h.

Referenced by Read(), SetBC(), and TPZGenPartialGrid().

◆ fX0

TPZVec<REAL> TPZGenPartialGrid::fX0
protected

Definition at line 59 of file pzpargrid.h.

Referenced by Coord(), and Print().

◆ fX1

TPZVec<REAL> TPZGenPartialGrid::fX1
protected

Definition at line 59 of file pzpargrid.h.

Referenced by Print().


The documentation for this class was generated from the following files: