OGS
|
Functionality for generating meshing.
Functions | |
std::vector< MeshLib::Node * > | generateRegularPyramidTopNodes (std::vector< double > const &x_coords, std::vector< double > const &y_coords, std::vector< double > const &z_coords, const MathLib::Point3d &origin) |
std::vector< MeshLib::Node * > | generateRegularNodes (const std::vector< const std::vector< double > * > &vec_xyz_coords, const MathLib::Point3d &origin=MathLib::ORIGIN) |
std::vector< MeshLib::Node * > | generateRegularNodes (const std::vector< double > &vec_x_coords, const MathLib::Point3d &origin=MathLib::ORIGIN) |
std::vector< MeshLib::Node * > | generateRegularNodes (std::vector< double > &vec_x_coords, std::vector< double > &vec_y_coords, const MathLib::Point3d &origin=MathLib::ORIGIN) |
std::vector< MeshLib::Node * > | generateRegularNodes (std::vector< double > &vec_x_coords, std::vector< double > &vec_y_coords, std::vector< double > &vec_z_coords, const MathLib::Point3d &origin=MathLib::ORIGIN) |
std::vector< MeshLib::Node * > | generateRegularNodes (const std::array< unsigned, 3 > &n_cells, const std::array< double, 3 > &cell_size, const MathLib::Point3d &origin) |
Mesh * | generateLineMesh (const BaseLib::ISubdivision &div, MathLib::Point3d const &origin=MathLib::ORIGIN, std::string const &mesh_name="mesh") |
Mesh * | generateLineMesh (const double length, const std::size_t subdivision, MathLib::Point3d const &origin=MathLib::ORIGIN, std::string const &mesh_name="mesh") |
Mesh * | generateLineMesh (const unsigned n_cells, const double cell_size, MathLib::Point3d const &origin=MathLib::ORIGIN, std::string const &mesh_name="mesh") |
Mesh * | generateRegularQuadMesh (const BaseLib::ISubdivision &div_x, const BaseLib::ISubdivision &div_y, MathLib::Point3d const &origin=MathLib::ORIGIN, std::string const &mesh_name="mesh") |
Mesh * | generateRegularQuadMesh (const double length, const std::size_t subdivision, MathLib::Point3d const &origin=MathLib::ORIGIN, std::string const &mesh_name="mesh") |
Mesh * | generateRegularQuadMesh (const double x_length, const double y_length, const std::size_t x_subdivision, const std::size_t y_subdivision, MathLib::Point3d const &origin=MathLib::ORIGIN, std::string const &mesh_name="mesh") |
Mesh * | generateRegularQuadMesh (const unsigned n_x_cells, const unsigned n_y_cells, const double cell_size, MathLib::Point3d const &origin=MathLib::ORIGIN, std::string const &mesh_name="mesh") |
Mesh * | generateRegularQuadMesh (const unsigned n_x_cells, const unsigned n_y_cells, const double cell_size_x, const double cell_size_y, MathLib::Point3d const &origin=MathLib::ORIGIN, std::string const &mesh_name="mesh") |
Mesh * | generateRegularHexMesh (const BaseLib::ISubdivision &div_x, const BaseLib::ISubdivision &div_y, const BaseLib::ISubdivision &div_z, MathLib::Point3d const &origin=MathLib::ORIGIN, std::string const &mesh_name="mesh") |
Mesh * | generateRegularHexMesh (const double length, const std::size_t subdivision, MathLib::Point3d const &origin=MathLib::ORIGIN, std::string const &mesh_name="mesh") |
Mesh * | generateRegularHexMesh (const double x_length, const double y_length, const double z_length, const std::size_t x_subdivision, const std::size_t y_subdivision, const std::size_t z_subdivision, MathLib::Point3d const &origin=MathLib::ORIGIN, std::string const &mesh_name="mesh") |
Mesh * | generateRegularHexMesh (const unsigned n_x_cells, const unsigned n_y_cells, const unsigned n_z_cells, const double cell_size, MathLib::Point3d const &origin=MathLib::ORIGIN, std::string const &mesh_name="mesh") |
Mesh * | generateRegularHexMesh (const unsigned n_x_cells, const unsigned n_y_cells, const unsigned n_z_cells, const double cell_size_x, const double cell_size_y, const double cell_size_z, MathLib::Point3d const &origin=MathLib::ORIGIN, std::string const &mesh_name="mesh") |
Mesh * | generateRegularPyramidMesh (const BaseLib::ISubdivision &div_x, const BaseLib::ISubdivision &div_y, const BaseLib::ISubdivision &div_z, MathLib::Point3d const &origin=MathLib::ORIGIN, std::string const &mesh_name="mesh") |
Mesh * | generateRegularTriMesh (const BaseLib::ISubdivision &div_x, const BaseLib::ISubdivision &div_y, MathLib::Point3d const &origin=MathLib::ORIGIN, std::string const &mesh_name="mesh") |
Mesh * | generateRegularTriMesh (const double length, const std::size_t subdivision, MathLib::Point3d const &origin=MathLib::ORIGIN, std::string const &mesh_name="mesh") |
Mesh * | generateRegularTriMesh (const double x_length, const double y_length, const std::size_t x_subdivision, const std::size_t y_subdivision, MathLib::Point3d const &origin=MathLib::ORIGIN, std::string const &mesh_name="mesh") |
Mesh * | generateRegularTriMesh (const unsigned n_x_cells, const unsigned n_y_cells, const double cell_size, MathLib::Point3d const &origin=MathLib::ORIGIN, std::string const &mesh_name="mesh") |
Mesh * | generateRegularTriMesh (const unsigned n_x_cells, const unsigned n_y_cells, const double cell_size_x, const double cell_size_y, MathLib::Point3d const &origin=MathLib::ORIGIN, std::string const &mesh_name="mesh") |
Mesh * | generateRegularPrismMesh (const double x_length, const double y_length, const double z_length, const std::size_t x_subdivision, const std::size_t y_subdivision, const std::size_t z_subdivision, MathLib::Point3d const &origin=MathLib::ORIGIN, std::string const &mesh_name="mesh") |
Mesh * | generateRegularPrismMesh (const unsigned n_x_cells, const unsigned n_y_cells, const unsigned n_z_cells, const double cell_size, MathLib::Point3d const &origin=MathLib::ORIGIN, std::string const &mesh_name="mesh") |
Mesh * | generateRegularPrismMesh (const unsigned n_x_cells, const unsigned n_y_cells, const unsigned n_z_cells, const double cell_size_x, const double cell_size_y, const double cell_size_z, MathLib::Point3d const &origin=MathLib::ORIGIN, std::string const &mesh_name="mesh") |
Mesh * | generateRegularTetMesh (const BaseLib::ISubdivision &div_x, const BaseLib::ISubdivision &div_y, const BaseLib::ISubdivision &div_z, MathLib::Point3d const &origin=MathLib::ORIGIN, std::string const &mesh_name="mesh") |
Mesh * | generateRegularTetMesh (const double x_length, const double y_length, const double z_length, const std::size_t x_subdivision, const std::size_t y_subdivision, const std::size_t z_subdivision, MathLib::Point3d const &origin=MathLib::ORIGIN, std::string const &mesh_name="mesh") |
Mesh * | generateRegularTetMesh (const unsigned n_x_cells, const unsigned n_y_cells, const unsigned n_z_cells, const double cell_size_x, const double cell_size_y, const double cell_size_z, MathLib::Point3d const &origin=MathLib::ORIGIN, std::string const &mesh_name="mesh") |
MeshLib::Mesh * | createSurfaceMesh (std::string const &mesh_name, MathLib::Point3d const &ll, MathLib::Point3d const &ur, std::array< std::size_t, 2 > const &n_steps, const std::function< double(double, double)> &f) |
MeshLib::Mesh * MeshLib::MeshGenerator::createSurfaceMesh | ( | std::string const & | mesh_name, |
MathLib::Point3d const & | ll, | ||
MathLib::Point3d const & | ur, | ||
std::array< std::size_t, 2 > const & | n_steps, | ||
const std::function< double(double, double)> & | f | ||
) |
Constructs a surface mesh approximating a surface in the 3d space given by a function. The surface within the xy-domain \([ll[0], ur[0]] \times [ll[1], ur[1]\) is described using the function \(f(x,y)\).
Definition at line 713 of file MeshGenerator.cpp.
Mesh * MeshLib::MeshGenerator::generateLineMesh | ( | const BaseLib::ISubdivision & | div, |
MathLib::Point3d const & | origin = MathLib::ORIGIN , |
||
std::string const & | mesh_name = "mesh" |
||
) |
Generate an 1D Line-Element mesh. The mesh is generated in x-direction.
div | Subdivision operator |
origin | Optional mesh's origin (the left-most point) with MathLib::ORIGIN default. |
mesh_name | Name of the new mesh. |
Definition at line 177 of file MeshGenerator.cpp.
References generateRegularNodes().
Referenced by CreateStructuredGridDialog::accept(), generateLineMesh(), and main().
Mesh * MeshLib::MeshGenerator::generateLineMesh | ( | const double | length, |
const std::size_t | subdivision, | ||
MathLib::Point3d const & | origin = MathLib::ORIGIN , |
||
std::string const & | mesh_name = "mesh" |
||
) |
Generate an 1D Line-Element mesh. The mesh is generated in x-direction.
length | Mesh's length in x-direction. |
subdivision | Number of subdivisions. |
origin | Optional mesh's origin (the left-most point) with MathLib::ORIGIN default. |
mesh_name | Name of the new mesh. |
Definition at line 158 of file MeshGenerator.cpp.
References generateLineMesh().
Mesh * MeshLib::MeshGenerator::generateLineMesh | ( | const unsigned | n_cells, |
const double | cell_size, | ||
MathLib::Point3d const & | origin = MathLib::ORIGIN , |
||
std::string const & | mesh_name = "mesh" |
||
) |
Generate an 1D Line-Element mesh. The mesh is generated in x-direction.
n_cells | Number of cells. |
cell_size | Length of Line elements |
origin | Optional mesh's origin (the left-most point) with MathLib::ORIGIN default. |
mesh_name | Name of the new mesh. |
Definition at line 167 of file MeshGenerator.cpp.
References generateLineMesh().
Mesh * MeshLib::MeshGenerator::generateRegularHexMesh | ( | const BaseLib::ISubdivision & | div_x, |
const BaseLib::ISubdivision & | div_y, | ||
const BaseLib::ISubdivision & | div_z, | ||
MathLib::Point3d const & | origin = MathLib::ORIGIN , |
||
std::string const & | mesh_name = "mesh" |
||
) |
Generate a regular 3D Hex-Element mesh.
div_x | Subdivision operator in x direction |
div_y | Subdivision operator in y direction |
div_z | Subdivision operator in z direction |
origin | Optional mesh's origin (the bottom lower left corner) with MathLib::ORIGIN default. |
mesh_name | Name of the new mesh. |
Definition at line 325 of file MeshGenerator.cpp.
References generateRegularNodes().
Referenced by CreateStructuredGridDialog::accept(), MeshLib::RasterToMesh::convert(), generateInitialMesh(), generateRegularHexMesh(), and main().
Mesh * MeshLib::MeshGenerator::generateRegularHexMesh | ( | const double | length, |
const std::size_t | subdivision, | ||
MathLib::Point3d const & | origin = MathLib::ORIGIN , |
||
std::string const & | mesh_name = "mesh" |
||
) |
Generate a regular 3D Hex-Element mesh.
length | Mesh dimensions in x- and y- and z-directions. |
subdivision | Number of subdivisions. |
origin | Optional mesh's origin (the bottom lower left corner) with MathLib::ORIGIN default. |
mesh_name | Name of the new mesh. |
Definition at line 273 of file MeshGenerator.cpp.
References generateRegularHexMesh().
Mesh * MeshLib::MeshGenerator::generateRegularHexMesh | ( | const double | x_length, |
const double | y_length, | ||
const double | z_length, | ||
const std::size_t | x_subdivision, | ||
const std::size_t | y_subdivision, | ||
const std::size_t | z_subdivision, | ||
MathLib::Point3d const & | origin = MathLib::ORIGIN , |
||
std::string const & | mesh_name = "mesh" |
||
) |
Generate a regular 3D Hex-Element mesh.
x_length | Mesh dimension in x-direction. |
y_length | Mesh dimension in y-direction. |
z_length | Mesh dimension in z-direction. |
x_subdivision | Number of subdivisions in x-direction. |
y_subdivision | Number of subdivisions in y-direction. |
z_subdivision | Number of subdivisions in z-direction. |
origin | Optional mesh's origin (the bottom lower left corner) with MathLib::ORIGIN default. |
mesh_name | Name of the new mesh. |
Definition at line 283 of file MeshGenerator.cpp.
References generateRegularHexMesh().
Mesh * MeshLib::MeshGenerator::generateRegularHexMesh | ( | const unsigned | n_x_cells, |
const unsigned | n_y_cells, | ||
const unsigned | n_z_cells, | ||
const double | cell_size, | ||
MathLib::Point3d const & | origin = MathLib::ORIGIN , |
||
std::string const & | mesh_name = "mesh" |
||
) |
Generate a regular 3D Hex-Element mesh.
n_x_cells | Number of cells in x-direction. |
n_y_cells | Number of cells in y-direction. |
n_z_cells | Number of cells in z-direction. |
cell_size | Edge length of Hex elements |
origin | Optional mesh's origin (the lower left corner) with MathLib::ORIGIN default. |
mesh_name | Name of the new mesh. |
Definition at line 297 of file MeshGenerator.cpp.
References generateRegularHexMesh().
Mesh * MeshLib::MeshGenerator::generateRegularHexMesh | ( | const unsigned | n_x_cells, |
const unsigned | n_y_cells, | ||
const unsigned | n_z_cells, | ||
const double | cell_size_x, | ||
const double | cell_size_y, | ||
const double | cell_size_z, | ||
MathLib::Point3d const & | origin = MathLib::ORIGIN , |
||
std::string const & | mesh_name = "mesh" |
||
) |
Generate a regular 3D Hex-Element mesh.
n_x_cells | Number of cells in x-direction. |
n_y_cells | Number of cells in y-direction. |
n_z_cells | Number of cells in z-direction. |
cell_size_x | Edge length of Hex elements in x-direction. |
cell_size_y | Edge length of Hex elements in y s-direction. |
cell_size_z | Edge length of Hex elements in z-direction |
origin | Optional mesh's origin (the lower left corner) with MathLib::ORIGIN default. |
mesh_name | Name of the new mesh. |
Definition at line 309 of file MeshGenerator.cpp.
References generateRegularHexMesh().
std::vector< MeshLib::Node * > MeshLib::MeshGenerator::generateRegularNodes | ( | const std::array< unsigned, 3 > & | n_cells, |
const std::array< double, 3 > & | cell_size, | ||
const MathLib::Point3d & | origin | ||
) |
Generate regularly placed mesh nodes in 3D spaces
n_cells | an array of the number of cells in x,y,z directions |
cell_size | an array of cell sizes in x,y,z directions |
origin | coordinates of the left-most point |
Definition at line 102 of file MeshGenerator.cpp.
std::vector< MeshLib::Node * > MeshLib::MeshGenerator::generateRegularNodes | ( | const std::vector< const std::vector< double > * > & | vec_xyz_coords, |
const MathLib::Point3d & | origin = MathLib::ORIGIN |
||
) |
Generate regularly placed mesh nodes in 3D spaces
vec_xyz_coords | a vector of coordinates in x,y,z directions |
origin | coordinates of the left-most point |
Definition at line 28 of file MeshGenerator.cpp.
Referenced by generateLineMesh(), generateRegularHexMesh(), generateRegularNodes(), generateRegularPyramidMesh(), generateRegularQuadMesh(), generateRegularTetMesh(), and generateRegularTriMesh().
std::vector< MeshLib::Node * > MeshLib::MeshGenerator::generateRegularNodes | ( | const std::vector< double > & | vec_x_coords, |
const MathLib::Point3d & | origin = MathLib::ORIGIN |
||
) |
Generate regularly placed mesh nodes in 1D space
vec_x_coords | a vector of x coordinates |
origin | coordinates of the left-most point |
Definition at line 60 of file MeshGenerator.cpp.
References generateRegularNodes().
std::vector< MeshLib::Node * > MeshLib::MeshGenerator::generateRegularNodes | ( | std::vector< double > & | vec_x_coords, |
std::vector< double > & | vec_y_coords, | ||
const MathLib::Point3d & | origin = MathLib::ORIGIN |
||
) |
Generate regularly placed mesh nodes in 1D space
vec_x_coords | a vector of x coordinates |
vec_y_coords | a vector of y coordinates |
origin | coordinates of the left-most point |
Definition at line 73 of file MeshGenerator.cpp.
References generateRegularNodes().
std::vector< MeshLib::Node * > MeshLib::MeshGenerator::generateRegularNodes | ( | std::vector< double > & | vec_x_coords, |
std::vector< double > & | vec_y_coords, | ||
std::vector< double > & | vec_z_coords, | ||
const MathLib::Point3d & | origin = MathLib::ORIGIN |
||
) |
Generate regularly placed mesh nodes in 1D space
vec_x_coords | a vector of x coordinates |
vec_y_coords | a vector of y coordinates |
vec_z_coords | a vector of z coordinates |
origin | coordinates of the left-most point |
Definition at line 89 of file MeshGenerator.cpp.
References generateRegularNodes().
Mesh * MeshLib::MeshGenerator::generateRegularPrismMesh | ( | const double | x_length, |
const double | y_length, | ||
const double | z_length, | ||
const std::size_t | x_subdivision, | ||
const std::size_t | y_subdivision, | ||
const std::size_t | z_subdivision, | ||
MathLib::Point3d const & | origin = MathLib::ORIGIN , |
||
std::string const & | mesh_name = "mesh" |
||
) |
Generate a regular 3D Prism-Element mesh.
x_length | Mesh's dimension in x-direction. |
y_length | Mesh's dimension in y-direction. |
z_length | Mesh's dimension in z-direction. |
x_subdivision | Number of subdivisions in x-direction. |
y_subdivision | Number of subdivisions in y-direction. |
z_subdivision | Number of subdivisions in z-direction. |
origin | Optional mesh's origin (the lower left corner) with MathLib::ORIGIN default. |
mesh_name | Name of the new mesh. |
Definition at line 549 of file MeshGenerator.cpp.
Referenced by CreateStructuredGridDialog::accept(), MeshLib::RasterToMesh::convert(), generateRegularPrismMesh(), and main().
Mesh * MeshLib::MeshGenerator::generateRegularPrismMesh | ( | const unsigned | n_x_cells, |
const unsigned | n_y_cells, | ||
const unsigned | n_z_cells, | ||
const double | cell_size, | ||
MathLib::Point3d const & | origin = MathLib::ORIGIN , |
||
std::string const & | mesh_name = "mesh" |
||
) |
Generate a regular 3D Prism-Element mesh.
n_x_cells | Number of cells in x-direction. |
n_y_cells | Number of cells in y-direction. |
n_z_cells | Number of cells in z-direction. |
cell_size | Edge length of two equal sides of isosceles triangles + height of prism |
origin | Optional mesh's origin (the lower left corner) with MathLib::ORIGIN default. |
mesh_name | Name of the new mesh. |
Definition at line 563 of file MeshGenerator.cpp.
References generateRegularPrismMesh().
Mesh * MeshLib::MeshGenerator::generateRegularPrismMesh | ( | const unsigned | n_x_cells, |
const unsigned | n_y_cells, | ||
const unsigned | n_z_cells, | ||
const double | cell_size_x, | ||
const double | cell_size_y, | ||
const double | cell_size_z, | ||
MathLib::Point3d const & | origin = MathLib::ORIGIN , |
||
std::string const & | mesh_name = "mesh" |
||
) |
Generate a regular 3D Prism-Element mesh.
n_x_cells | Number of cells in x-direction. |
n_y_cells | Number of cells in y-direction. |
n_z_cells | Number of cells in z-direction. |
cell_size_x | Edge length of triangles in x-direction. |
cell_size_y | Edge length of triangles in y-direction. |
cell_size_z | Edge length of triangles in z-direction. |
origin | Optional mesh's origin (the lower left corner) with MathLib::ORIGIN default. |
mesh_name | Name of the new mesh. |
Definition at line 574 of file MeshGenerator.cpp.
References MeshLib::addLayerToMesh(), generateRegularTriMesh(), and MeshLib::removeElements().
Mesh * MeshLib::MeshGenerator::generateRegularPyramidMesh | ( | const BaseLib::ISubdivision & | div_x, |
const BaseLib::ISubdivision & | div_y, | ||
const BaseLib::ISubdivision & | div_z, | ||
MathLib::Point3d const & | origin = MathLib::ORIGIN , |
||
std::string const & | mesh_name = "mesh" |
||
) |
Generate a regular 3D mesh that consists of pyramid elements.
This algorithm generates regular grid points as well as middle points of the virtual hexahedra cells and split each hex grid cell into six pyramids.
div_x | Subdivision operator in x direction |
div_y | Subdivision operator in y direction |
div_z | Subdivision operator in z direction |
origin | Optional mesh's origin (the bottom lower left corner) with MathLib::ORIGIN default. |
mesh_name | Name of the new mesh. |
Definition at line 374 of file MeshGenerator.cpp.
References generateRegularNodes(), and generateRegularPyramidTopNodes().
Referenced by main().
std::vector<MeshLib::Node*> MeshLib::MeshGenerator::generateRegularPyramidTopNodes | ( | std::vector< double > const & | x_coords, |
std::vector< double > const & | y_coords, | ||
std::vector< double > const & | z_coords, | ||
const MathLib::Point3d & | origin | ||
) |
Mesh * MeshLib::MeshGenerator::generateRegularQuadMesh | ( | const BaseLib::ISubdivision & | div_x, |
const BaseLib::ISubdivision & | div_y, | ||
MathLib::Point3d const & | origin = MathLib::ORIGIN , |
||
std::string const & | mesh_name = "mesh" |
||
) |
Generate a regular 2D Quad-Element mesh. The mesh is generated in the x-y-plane.
div_x | Subdivision operator in x direction |
div_y | Subdivision operator in y direction |
origin | Optional mesh's origin (the left-most point) with MathLib::ORIGIN default. |
mesh_name | Name of the new mesh. |
Definition at line 242 of file MeshGenerator.cpp.
References generateRegularNodes().
Referenced by CreateStructuredGridDialog::accept(), MeshLib::RasterToMesh::convert(), generateRegularQuadMesh(), and main().
Mesh * MeshLib::MeshGenerator::generateRegularQuadMesh | ( | const double | length, |
const std::size_t | subdivision, | ||
MathLib::Point3d const & | origin = MathLib::ORIGIN , |
||
std::string const & | mesh_name = "mesh" |
||
) |
Generate a regular 2D Quad-Element mesh. The mesh is generated in the x-y-plane.
length | Mesh's dimensions in x- and y-directions. |
subdivision | Number of subdivisions. |
origin | Optional mesh's origin (the lower left corner) with MathLib::ORIGIN default. |
mesh_name | Name of the new mesh. |
Definition at line 197 of file MeshGenerator.cpp.
References generateRegularQuadMesh().
Mesh * MeshLib::MeshGenerator::generateRegularQuadMesh | ( | const double | x_length, |
const double | y_length, | ||
const std::size_t | x_subdivision, | ||
const std::size_t | y_subdivision, | ||
MathLib::Point3d const & | origin = MathLib::ORIGIN , |
||
std::string const & | mesh_name = "mesh" |
||
) |
Generate a regular 2D Quad-Element mesh. The mesh is generated in the x-y-plane.
x_length | Mesh's dimension in x-direction. |
y_length | Mesh's dimension in y-direction. |
x_subdivision | Number of subdivisions in x-direction. |
y_subdivision | Number of subdivisions in y-direction. |
origin | Optional mesh's origin (the lower left corner) with MathLib::ORIGIN default. |
mesh_name | Name of the new mesh. |
Definition at line 207 of file MeshGenerator.cpp.
References generateRegularQuadMesh().
Mesh * MeshLib::MeshGenerator::generateRegularQuadMesh | ( | const unsigned | n_x_cells, |
const unsigned | n_y_cells, | ||
const double | cell_size, | ||
MathLib::Point3d const & | origin = MathLib::ORIGIN , |
||
std::string const & | mesh_name = "mesh" |
||
) |
Generate a regular 2D Quad-Element mesh. The mesh is generated in the x-y-plane.
n_x_cells | Number of cells in x-direction. |
n_y_cells | Number of cells in y-direction. |
cell_size | Edge length of Quad elements |
origin | Optional mesh's origin (the lower left corner) with MathLib::ORIGIN default. |
mesh_name | Name of the new mesh. |
Definition at line 219 of file MeshGenerator.cpp.
References generateRegularQuadMesh().
Mesh * MeshLib::MeshGenerator::generateRegularQuadMesh | ( | const unsigned | n_x_cells, |
const unsigned | n_y_cells, | ||
const double | cell_size_x, | ||
const double | cell_size_y, | ||
MathLib::Point3d const & | origin = MathLib::ORIGIN , |
||
std::string const & | mesh_name = "mesh" |
||
) |
Generate a regular 2D Quad-Element mesh. The mesh is generated in the x-y-plane.
n_x_cells | Number of cells in x-direction. |
n_y_cells | Number of cells in y-direction. |
cell_size_x | Edge length of Quad elements in x-direction |
cell_size_y | Edge length of Quad elements in y-direction |
origin | Optional mesh's origin (the lower left corner) with MathLib::ORIGIN default. |
mesh_name | Name of the new mesh. |
Definition at line 229 of file MeshGenerator.cpp.
References generateRegularQuadMesh().
Mesh * MeshLib::MeshGenerator::generateRegularTetMesh | ( | const BaseLib::ISubdivision & | div_x, |
const BaseLib::ISubdivision & | div_y, | ||
const BaseLib::ISubdivision & | div_z, | ||
MathLib::Point3d const & | origin = MathLib::ORIGIN , |
||
std::string const & | mesh_name = "mesh" |
||
) |
Generate a regular 3D Tet-Element mesh.
This algorithm generates regular grid points and split each grid cell into six tetrahedrals.
div_x | Subdivision operator in x direction |
div_y | Subdivision operator in y direction |
div_z | Subdivision operator in z direction |
origin | Optional mesh's origin (the bottom lower left corner) with MathLib::ORIGIN default. |
mesh_name | Name of the new mesh. |
Definition at line 627 of file MeshGenerator.cpp.
References generateRegularNodes().
Referenced by generateRegularTetMesh(), and main().
Mesh * MeshLib::MeshGenerator::generateRegularTetMesh | ( | const double | x_length, |
const double | y_length, | ||
const double | z_length, | ||
const std::size_t | x_subdivision, | ||
const std::size_t | y_subdivision, | ||
const std::size_t | z_subdivision, | ||
MathLib::Point3d const & | origin = MathLib::ORIGIN , |
||
std::string const & | mesh_name = "mesh" |
||
) |
Generate a regular 3D Tet-Element mesh.
This algorithm generates regular grid points and split each grid cell into six tetrahedrals.
x_length | Mesh dimension in x-direction. |
y_length | Mesh dimension in y-direction. |
z_length | Mesh dimension in z-direction. |
x_subdivision | Number of subdivisions in x-direction. |
y_subdivision | Number of subdivisions in y-direction. |
z_subdivision | Number of subdivisions in z-direction. |
origin | Optional mesh's origin (the bottom lower left corner) with MathLib::ORIGIN default. |
mesh_name | Name of the new mesh. |
Definition at line 597 of file MeshGenerator.cpp.
References generateRegularTetMesh().
Mesh * MeshLib::MeshGenerator::generateRegularTetMesh | ( | const unsigned | n_x_cells, |
const unsigned | n_y_cells, | ||
const unsigned | n_z_cells, | ||
const double | cell_size_x, | ||
const double | cell_size_y, | ||
const double | cell_size_z, | ||
MathLib::Point3d const & | origin = MathLib::ORIGIN , |
||
std::string const & | mesh_name = "mesh" |
||
) |
Generate a regular 3D Tet-Element mesh.
This algorithm generates regular grid points and split each grid cell into six tetrahedrals.
n_x_cells | Number of cells in x-direction. |
n_y_cells | Number of cells in y-direction. |
n_z_cells | Number of cells in z-direction. |
cell_size_x | Edge length of Tet elements in x-direction. |
cell_size_y | Edge length of Tet elements in y s-direction. |
cell_size_z | Edge length of Tet elements in z-direction |
origin | Optional mesh's origin (the lower left corner) with MathLib::ORIGIN default. |
mesh_name | Name of the new mesh. |
Definition at line 611 of file MeshGenerator.cpp.
References generateRegularTetMesh().
Mesh * MeshLib::MeshGenerator::generateRegularTriMesh | ( | const BaseLib::ISubdivision & | div_x, |
const BaseLib::ISubdivision & | div_y, | ||
MathLib::Point3d const & | origin = MathLib::ORIGIN , |
||
std::string const & | mesh_name = "mesh" |
||
) |
Generate a regular 2D Triangle-Element mesh. The mesh is generated in the x-y-plane.
div_x | Subdivision operator in x direction |
div_y | Subdivision operator in y direction |
origin | Optional mesh's origin (the bottom lower left corner) with MathLib::ORIGIN default. |
mesh_name | Name of the new mesh. |
Definition at line 514 of file MeshGenerator.cpp.
References generateRegularNodes().
Referenced by CreateStructuredGridDialog::accept(), MeshLib::RasterToMesh::convert(), generateRegularPrismMesh(), generateRegularTriMesh(), and main().
Mesh * MeshLib::MeshGenerator::generateRegularTriMesh | ( | const double | length, |
const std::size_t | subdivision, | ||
MathLib::Point3d const & | origin = MathLib::ORIGIN , |
||
std::string const & | mesh_name = "mesh" |
||
) |
Generate a regular 2D Triangle-Element mesh. The mesh is generated in the x-y-plane.
length | Mesh's dimensions in x- and y-directions. |
subdivision | Number of subdivisions. |
origin | Optional mesh's origin (the lower left corner) with MathLib::ORIGIN default. |
mesh_name | Name of the new mesh. |
Definition at line 470 of file MeshGenerator.cpp.
References generateRegularTriMesh().
Mesh * MeshLib::MeshGenerator::generateRegularTriMesh | ( | const double | x_length, |
const double | y_length, | ||
const std::size_t | x_subdivision, | ||
const std::size_t | y_subdivision, | ||
MathLib::Point3d const & | origin = MathLib::ORIGIN , |
||
std::string const & | mesh_name = "mesh" |
||
) |
Generate a regular 2D Triangle-Element mesh. The mesh is generated in the x-y-plane.
x_length | Mesh's dimension in x-direction. |
y_length | Mesh's dimension in y-direction. |
x_subdivision | Number of subdivisions in x-direction. |
y_subdivision | Number of subdivisions in y-direction. |
origin | Optional mesh's origin (the lower left corner) with MathLib::ORIGIN default. |
mesh_name | Name of the new mesh. |
Definition at line 479 of file MeshGenerator.cpp.
References generateRegularTriMesh().
Mesh * MeshLib::MeshGenerator::generateRegularTriMesh | ( | const unsigned | n_x_cells, |
const unsigned | n_y_cells, | ||
const double | cell_size, | ||
MathLib::Point3d const & | origin = MathLib::ORIGIN , |
||
std::string const & | mesh_name = "mesh" |
||
) |
Generate a regular 2D Triangle-Element mesh. The mesh is generated in the x-y-plane.
n_x_cells | Number of cells in x-direction. |
n_y_cells | Number of cells in y-direction. |
cell_size | Edge length of two equal sides of isosceles triangles |
origin | Optional mesh's origin (the lower left corner) with MathLib::ORIGIN default. |
mesh_name | Name of the new mesh. |
Definition at line 491 of file MeshGenerator.cpp.
References generateRegularTriMesh().
Mesh * MeshLib::MeshGenerator::generateRegularTriMesh | ( | const unsigned | n_x_cells, |
const unsigned | n_y_cells, | ||
const double | cell_size_x, | ||
const double | cell_size_y, | ||
MathLib::Point3d const & | origin = MathLib::ORIGIN , |
||
std::string const & | mesh_name = "mesh" |
||
) |
Generate a regular 2D Triangle-Element mesh. The mesh is generated in the x-y-plane.
n_x_cells | Number of cells in x-direction. |
n_y_cells | Number of cells in y-direction. |
cell_size_x | Edge length of triangles in x-direction. |
cell_size_y | Edge length of triangles in y-direction. |
origin | Optional mesh's origin (the lower left corner) with MathLib::ORIGIN default. |
mesh_name | Name of the new mesh. |
Definition at line 501 of file MeshGenerator.cpp.
References generateRegularTriMesh().