NeoPZ
TPZExtendGridDimension.h
Go to the documentation of this file.
1 
15 #ifndef TPZEXTENDGRID_HPP
16 #define TPZEXTENDGRID_HPP
17 
18 class TPZGeoMesh;
19 #include "pzstack.h"
20 #include <fstream>
21 #include <iostream>
22 #include "pzmatrix.h"
23 
24 #include "tpzautopointer.h"
25 
26 
32 
36  REAL fThickness;
37 
41  std::ifstream fFineFileMesh;
42 
47 
52 
54  int fEltype;
55 
56 public:
58  TPZExtendGridDimension(char *geofile,REAL thickness);
60  TPZExtendGridDimension(TPZAutoPointer<TPZGeoMesh> &finegeomesh,REAL thickness);
61  TPZExtendGridDimension(TPZGeoMesh* finegeomesh,REAL thickness);
62 
65 
71 
75  static void DeformMesh(TPZFMatrix<REAL> &Tr, TPZGeoMesh * GeoSurface);
76 
85  TPZGeoMesh* ExtendedMesh(int numlayers,int matidbottom=0,int matidtop=0);
86 
87  void SetElType(int eltype)
88  {
89  fEltype = eltype;
90  }
91 
95  void PrintGeneratedMesh(std::ostream &out = std::cout);
96 
97 };
98 
99 #endif
void PrintGeneratedMesh(std::ostream &out=std::cout)
Prints the generated mesh.
std::ifstream fFineFileMesh
Name of the fine mesh to be extended.
static void DeformMesh(TPZFMatrix< REAL > &Tr, TPZGeoMesh *GeoSurface)
Apply transformation to a given geomesh.
TPZAutoPointer< TPZGeoMesh > fFineGeoMesh
Fine geometric mesh generated by the NeoPZ.
TPZExtendGridDimension(char *geofile, REAL thickness)
Constructor using filename with gmesh data and thickness.
This class implements a simple vector storage scheme for a templated class T. Utility.
Definition: pzgeopoint.h:19
int fEltype
type of element to be generated =1 -> RefPattern =0 -> Uniform Refinement
TPZGeoMesh * ExtendedMesh()
It reads the mesh since the archive of entrance finemesh, or since the fFineGeoMesh passed in the con...
TPZVec< TPZAutoPointer< TPZGeoMesh > > fSurfaces
Vector of n surfaces to be connected the first one correpsonds to the base.
Generates a three dimensional mesh as an extension of a two dimensional mesh. Getting Data...
Contains declaration of the TPZAutoPointer class which has Increment and Decrement actions are mutexe...
A simple stack.
Contains TPZMatrix<TVar>class, root matrix class.
REAL fThickness
Thickness of the mesh (+ or -)
~TPZExtendGridDimension()
Destructor default.
This class implements a geometric mesh for the pz environment. Geometry.
Definition: pzgmesh.h:48