![]() |
Lethe Open-Source Library version 1.2.0
Developer Guide
|
#include <grid_cube_merged.h>
Public Member Functions | |
| GridCubeMerged (const std::string &grid_arguments) | |
| void | make_grid (Triangulation< dim, spacedim > &triangulation) |
| void | make_grid (Triangulation< 3, 3 > &triangulation) |
Private Attributes | |
| std::string | grid_arguments |
| double | cylinder_radius |
| double | plate_half_length |
| double | height |
| unsigned int | n_subdivisions |
Class that creates a custom geometry that combines an extruded plate with a hole and an inner cylinder to form a cube.
| dim | The dimension of the mesh, must be 3. |
| spacedim | The dimension of the space where the mesh is defined, must be 3. |
Definition at line 24 of file grid_cube_merged.h.
| GridCubeMerged< dim, spacedim >::GridCubeMerged | ( | const std::string & | grid_arguments | ) |
Constructor for the GridCubeMerged.
| [in] | grid_arguments | A string with 4 parameters, R_cylinder : L_plate : H : n_subdivisions, separated by colons. R_cylinder is the radius of the cylinder mesh and of the hole in the extruded square plate; L_plate is the half of the edge length of the square; H is the height in the z direction; n_subdivisions is the number of subdivisions along the z direction. |
Definition at line 14 of file grid_cube_merged.cc.
References cylinder_radius, grid_arguments, height, n_subdivisions, and plate_half_length.
| void GridCubeMerged< 3, 3 >::make_grid | ( | Triangulation< 3, 3 > & | triangulation | ) |
Definition at line 60 of file grid_cube_merged.cc.
References cylinder_radius, LetheGridTools::find_point_line_distance(), height, n_subdivisions, and plate_half_length.
| void GridCubeMerged< dim, spacedim >::make_grid | ( | Triangulation< dim, spacedim > & | triangulation | ) |
Generate the merged cube mesh.
| [out] | triangulation | The triangulation to fill with the mesh. |
Definition at line 149 of file grid_cube_merged.cc.
|
private |
Radius of the cylindrical mesh.
Definition at line 51 of file grid_cube_merged.h.
|
private |
Arguments used to generate the grid.
Definition at line 49 of file grid_cube_merged.h.
|
private |
Height in the extruded direction (z axis).
Definition at line 55 of file grid_cube_merged.h.
|
private |
Number of subdivisions in the extruded direction (z axis).
Definition at line 57 of file grid_cube_merged.h.
|
private |
Half edge length of the square in the extruded plate with hole mesh.
Definition at line 53 of file grid_cube_merged.h.