1#ifndef MeshStructured_decl_hpp
2#define MeshStructured_decl_hpp
4#include "feddlib/core/Utils/FEDDUtils.hpp"
27template <
class SC = default_sc,
class LO = default_lo,
class GO = default_go,
class NO = default_no>
28class MeshStructured :
public Mesh<SC,LO,GO,NO> {
31 typedef Mesh<SC,LO,GO,NO> Mesh_Type;
32 typedef typename Mesh_Type::CommPtr_Type CommPtr_Type;
33 typedef typename Mesh_Type::CommConstPtrConst_Type CommConstPtrConst_Type;
34 typedef typename Mesh_Type::Map_Type Map_Type;
35 typedef typename Mesh_Type::MapPtr_Type MapPtr_Type;
36 typedef typename Mesh_Type::ElementsPtr_Type ElementsPtr_Type;
37 typedef Teuchos::RCP<MeshStructured<SC,LO,GO,NO> > MeshStrPtr_Type;
42 MeshStructured(CommConstPtrConst_Type& comm);
46 void setGeometry2DRectangle(std::vector<double> coordinates,
double l,
double h);
48 void setGeometry3DBox(std::vector<double> coordinates,
double l,
double w,
double h);
59 int numProcsCoarseSolve=0);
81 int numProcsCoarseSolve=0);
99 int numProcsCoarseSolve=0);
109 int numProcsCoarseSolve=0);
117 int numProcsCoarseSolve);
125 int numProcsCoarseSolve);
133 int numProcsCoarseSolve);
141 int numProcsCoarseSolve);
149 int numProcsCoarseSolve);
156 int numProcsCoarseSolve);
165 int numProcsCoarseSolve);
183 void setRankRange(
int numProcsCoarseSolve );
185 void buildElementsClass( vec2D_int_ptr_Type elements, vec_int_ptr_Type elementFlag = Teuchos::null );
190 GO globalID_Q2_20Cube(
int r,
int s ,
int t,
int &rr,
int off_x,
int off_y,
int off_z,
int M,
int N,
191 GO nmbPoints_oneDirFull, GO nmbPoints_oneDirMid);
206 void flipSurface(vec_int_Type &surfaceElements_vec);
211 std::vector<double> coorRec;
void buildMesh3DBFS(std::string FEType, int N, int M, int numProcsCoarseSolve=0)
Building general 3D backward facing step with length, width and height as defines by 'setGeometry3DBo...
Definition MeshStructured_def.hpp:2456
void buildElementMap()
Building element map.
Definition MeshStructured_def.hpp:4237
void build3DQ1BFS(int N, int M, int numProcsCoarseSolve)
Building general 3D backward facing step with length, width and height as defines by 'setGeometry3DBo...
Definition MeshStructured_def.hpp:1627
void buildMesh3D(std::string FEType, int N, int M, int numProcsCoarseSolve=0)
Building general 3D cuboid with length, width and height as defines by 'setGeometry3DBox'....
Definition MeshStructured_def.hpp:575
void buildP1_Disc_Q2_3DCube(int N, int M, int numProcsCoarseSolve)
Building general 3D cuboid with length, width and height as defines by 'setGeometry3DBox' with Q2-P1 ...
Definition MeshStructured_def.hpp:964
void buildMesh3D5Elements(std::string FEType, int N, int M, int numProcsCoarseSolve)
Building general 3D cuboid with length, width and height as defines by 'setGeometry3DBox'....
Definition MeshStructured_def.hpp:3681
void buildMesh2DBFS(std::string FEType, int N, int M, int numProcsCoarseSolve=0)
Building 2D backward facing step geometry with the lenght and height as defined per 'setGeomerty2DRec...
Definition MeshStructured_def.hpp:1999
void build3DQ2_20Cube(int N, int M, int numProcsCoarseSolve)
Building general 3D cuboid with length, width and height as defines by 'setGeometry3DBox' with Q2 dis...
Definition MeshStructured_def.hpp:1477
void build3DQ1Cube(int N, int M, int numProcsCoarseSolve)
Building general 3D cuboid with length, width and height as defines by 'setGeometry3DBox' with Q1 dis...
Definition MeshStructured_def.hpp:1144
void buildP1_Disc_Q2_3DBFS(int N, int M, int numProcsCoarseSolve)
Building general 3D backward facing step with length, width and height as defines by 'setGeometry3DBo...
Definition MeshStructured_def.hpp:2920
void build3DQ2Cube(int N, int M, int numProcsCoarseSolve)
Building general 3D cuboid with length, width and height as defines by 'setGeometry3DBox' with Q2 dis...
Definition MeshStructured_def.hpp:1267
void buildSurfaces(int flagsOption, std::string FEType)
Building surfaces. This is useful for structural problems. Each surface gets another flag....
Definition MeshStructured_def.hpp:3974
void buildSurfaceLinesSquare()
Building suface lines aka edges. Empty.
Definition MeshStructured_def.hpp:227
void setStructuredMeshFlags(int flagsOption, std::string FEType="P1")
Setting corresponding flags to structured mesh depending on underlying problem. Rectangles/Cuboids ar...
Definition MeshStructured_def.hpp:3103
void build3DQ2BFS(int N, int M, int numProcsCoarseSolve)
Building general 3D backward facing step with length, width and height as defines by 'setGeometry3DBo...
Definition MeshStructured_def.hpp:1803
void buildMesh2D(std::string FEType, int N, int M, int numProcsCoarseSolve=0)
Building a general 2D rectangular mesh with the lenght and height as defined per 'setGeomerty2DRectan...
Definition MeshStructured_def.hpp:237
Adaptive Mesh Refinement.
Definition AdaptiveMeshRefinement_decl.hpp:36