NeoPZ
|
Generates a three dimensional mesh as an extension of a two dimensional mesh. Getting Data. More...
#include <TPZExtendGridDimension.h>
Public Member Functions | |
TPZExtendGridDimension (char *geofile, REAL thickness) | |
Constructor using filename with gmesh data and thickness. More... | |
TPZExtendGridDimension (TPZAutoPointer< TPZGeoMesh > &finegeomesh, REAL thickness) | |
Constructor using geometric mesh one- or two- dimensional and thickness. More... | |
TPZExtendGridDimension (TPZGeoMesh *finegeomesh, REAL thickness) | |
~TPZExtendGridDimension () | |
Destructor default. More... | |
TPZGeoMesh * | ExtendedMesh () |
It reads the mesh since the archive of entrance finemesh, or since the fFineGeoMesh passed in the constructor, and returns extended mesh. More... | |
TPZGeoMesh * | ExtendedMesh (int numlayers, int matidbottom=0, int matidtop=0) |
It reads the mesh since the archive of entrance finemesh, or since the fFineGeoMesh passed in the constructor, and returns extended mesh. The extension is from n (=1,2) dimensional mesh to (n+1) (=2,3) dimensional. More... | |
void | SetElType (int eltype) |
void | PrintGeneratedMesh (std::ostream &out=std::cout) |
Prints the generated mesh. More... | |
Static Public Member Functions | |
static void | DeformMesh (TPZFMatrix< REAL > &Tr, TPZGeoMesh *GeoSurface) |
Apply transformation to a given geomesh. More... | |
Private Attributes | |
REAL | fThickness |
Thickness of the mesh (+ or -) More... | |
std::ifstream | fFineFileMesh |
Name of the fine mesh to be extended. More... | |
TPZAutoPointer< TPZGeoMesh > | fFineGeoMesh |
Fine geometric mesh generated by the NeoPZ. More... | |
TPZVec< TPZAutoPointer< TPZGeoMesh > > | fSurfaces |
Vector of n surfaces to be connected the first one correpsonds to the base. More... | |
int | fEltype |
type of element to be generated =1 -> RefPattern =0 -> Uniform Refinement More... | |
Generates a three dimensional mesh as an extension of a two dimensional mesh. Getting Data.
Definition at line 31 of file TPZExtendGridDimension.h.
TPZExtendGridDimension::TPZExtendGridDimension | ( | char * | geofile, |
REAL | thickness | ||
) |
Constructor using filename with gmesh data and thickness.
Definition at line 12 of file TPZExtendGridDimension.cpp.
References fThickness.
TPZExtendGridDimension::TPZExtendGridDimension | ( | TPZAutoPointer< TPZGeoMesh > & | finegeomesh, |
REAL | thickness | ||
) |
Constructor using geometric mesh one- or two- dimensional and thickness.
Definition at line 17 of file TPZExtendGridDimension.cpp.
References fFineGeoMesh, and fThickness.
TPZExtendGridDimension::TPZExtendGridDimension | ( | TPZGeoMesh * | finegeomesh, |
REAL | thickness | ||
) |
Definition at line 23 of file TPZExtendGridDimension.cpp.
References fFineGeoMesh, and fThickness.
|
inline |
Destructor default.
Definition at line 64 of file TPZExtendGridDimension.h.
References DeformMesh(), and ExtendedMesh().
|
static |
Apply transformation to a given geomesh.
Definition at line 93 of file TPZExtendGridDimension.cpp.
References TPZGeoNode::GetCoordinates(), TPZGeoMesh::NNodes(), TPZGeoMesh::NodeVec(), TPZMatrix< TVar >::Print(), and TPZGeoNode::SetCoord().
Referenced by ~TPZExtendGridDimension().
TPZGeoMesh * TPZExtendGridDimension::ExtendedMesh | ( | ) |
It reads the mesh since the archive of entrance finemesh, or since the fFineGeoMesh passed in the constructor, and returns extended mesh.
Definition at line 28 of file TPZExtendGridDimension.cpp.
References TPZGeoMesh::BuildConnectivity(), TPZGeoNode::Coord(), TPZGeoMesh::CreateGeoElement(), TPZGeoMesh::CreateUniqueNodeId(), TPZGeoMesh::Dimension(), ECube, TPZGeoMesh::ElementVec(), EPrisma, fEltype, fFineGeoMesh, fThickness, TPZGeoEl::MaterialId(), TPZChunkVector< T, EXP >::NElements(), TPZGeoEl::NodeIndex(), TPZGeoMesh::NodeVec(), TPZAdmChunkVector< T, EXP >::Resize(), TPZVec< T >::Resize(), TPZGeoMesh::SetDimension(), and TPZGeoEl::Type().
Referenced by MalhaGeom(), and ~TPZExtendGridDimension().
TPZGeoMesh * TPZExtendGridDimension::ExtendedMesh | ( | int | numlayers, |
int | matidbottom = 0 , |
||
int | matidtop = 0 |
||
) |
It reads the mesh since the archive of entrance finemesh, or since the fFineGeoMesh passed in the constructor, and returns extended mesh.
The extension is from n (=1,2) dimensional mesh to (n+1) (=2,3) dimensional.
numlayers | Numbers of layers to be incremented. |
matidbottom | Material id to bottom boundary surface after to extrude process. |
matidtop | Material id to top boundary surface after to extrude process. |
Definition at line 116 of file TPZExtendGridDimension.cpp.
References TPZGeoMesh::BuildConnectivity(), TPZGeoNode::Coord(), TPZGeoMesh::CreateGeoElement(), TPZGeoMesh::CreateUniqueNodeId(), TPZGeoMesh::Dimension(), ECube, TPZGeoMesh::ElementVec(), EOned, EPrisma, EQuadrilateral, ETriangle, fEltype, fFineGeoMesh, fThickness, TPZGeoEl::HasSubElement(), TPZGeoEl::MaterialId(), TPZChunkVector< T, EXP >::NElements(), TPZGeoEl::NNodes(), TPZGeoEl::NodeIndex(), TPZGeoMesh::NodeVec(), TPZAdmChunkVector< T, EXP >::Resize(), TPZVec< T >::Resize(), TPZGeoMesh::SetDimension(), and TPZGeoEl::Type().
void TPZExtendGridDimension::PrintGeneratedMesh | ( | std::ostream & | out = std::cout | ) |
Prints the generated mesh.
Definition at line 272 of file TPZExtendGridDimension.cpp.
References fFineGeoMesh, and TPZGeoMesh::Print().
Referenced by SetElType().
|
inline |
Definition at line 87 of file TPZExtendGridDimension.h.
References PrintGeneratedMesh().
Referenced by MalhaGeom().
|
private |
type of element to be generated =1 -> RefPattern =0 -> Uniform Refinement
Definition at line 54 of file TPZExtendGridDimension.h.
Referenced by ExtendedMesh().
|
private |
Name of the fine mesh to be extended.
Definition at line 41 of file TPZExtendGridDimension.h.
|
private |
Fine geometric mesh generated by the NeoPZ.
Definition at line 46 of file TPZExtendGridDimension.h.
Referenced by ExtendedMesh(), PrintGeneratedMesh(), and TPZExtendGridDimension().
|
private |
Vector of n surfaces to be connected the first one correpsonds to the base.
Definition at line 51 of file TPZExtendGridDimension.h.
|
private |
Thickness of the mesh (+ or -)
Definition at line 36 of file TPZExtendGridDimension.h.
Referenced by ExtendedMesh(), and TPZExtendGridDimension().