![]() |
Lethe Open-Source Library version 1.2.0
Developer Guide
|
#include <grid_fichera_oven.h>
Public Member Functions | |
| GridFicheraOven (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 |
| Point< dim > | bottom_left |
| Point< dim > | top_right |
| bool | colorize |
Generates a 3D Fichera oven mesh by removing cells from a subdivided hyper-rectangle.
The geometry is a staircase-shaped domain obtained from a 2x2x3 subdivided hyper-rectangle by removing three groups of cells at increasing z-levels.
When colorize is true, boundary faces at the top of the remaining staircase (z = top_right[2]) are assigned boundary_id = 1 (e.g., inlet); all other boundary faces retain the default boundary_id = 0.
Definition at line 27 of file grid_fichera_oven.h.
| GridFicheraOven< dim, spacedim >::GridFicheraOven | ( | const std::string & | grid_arguments | ) |
Constructor that parses geometry parameters from a colon-separated string.
| [in] | grid_arguments | A colon-separated string, "bottom_left:top_right:colorize", with the following fields (coordinates
are comma-separated):
| # | Field | Format | Required | Description |
|----|-------------|------------|----------|-----------------------------------------------|
| 0 | bottom_left | x,y,z | yes | Bottom-left corner of the bounding box |
| 1 | top_right | x,y,z | yes | Top-right corner of the bounding box |
| 2 | colorize | true/false | no | Assign distinct boundary IDs (default: false) |
Example: @code "0,0,0 :2,2,3 : true"
|
Definition at line 9 of file grid_fichera_oven.cc.
References bottom_left, colorize, grid_arguments, and top_right.
| void GridFicheraOven< 3, 3 >::make_grid | ( | Triangulation< 3, 3 > & | triangulation | ) |
Definition at line 69 of file grid_fichera_oven.cc.
References bottom_left, colorize, and top_right.
| void GridFicheraOven< dim, spacedim >::make_grid | ( | Triangulation< dim, spacedim > & | triangulation | ) |
Generate the Fichera oven mesh by removing cells from a subdivided hyper-rectangle.
Starting from a 2x2x3 subdivided hyper-rectangle spanning from bottom_left to top_right, three groups of cells are removed to create a staircase geometry:
* Level 1 (z > 1/3 height): remove (+x, +y) quadrant * Level 2 (z > 2/3 height): additionally remove (+x, -y) and (-x, +y) *
The midpoints along x and y are at (bottom_left + top_right) / 2, and the z-thresholds are at bottom_left[2] + height/3 and bottom_left[2] + 2*height/3.
When colorize is true, boundary faces at z = top_right[2] are assigned boundary_id = 1 (e.g., inlet/outlet); all other faces keep the default boundary_id = 0.
| [out] | triangulation | The triangulation to fill with the oven mesh. |
Definition at line 139 of file grid_fichera_oven.cc.
|
private |
Definition at line 77 of file grid_fichera_oven.h.
|
private |
Definition at line 79 of file grid_fichera_oven.h.
|
private |
Definition at line 76 of file grid_fichera_oven.h.
|
private |
Definition at line 78 of file grid_fichera_oven.h.