Lethe Open-Source Library version 1.2.0
Developer Guide
Loading...
Searching...
No Matches
GridFicheraOven< dim, spacedim > Class Template Reference

#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

Detailed Description

template<int dim, int spacedim>
class GridFicheraOven< dim, spacedim >

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.

Constructor & Destructor Documentation

◆ GridFicheraOven()

template<int dim, int spacedim>
GridFicheraOven< dim, spacedim >::GridFicheraOven ( const std::string & grid_arguments)

Constructor that parses geometry parameters from a colon-separated string.

Parameters
[in]grid_argumentsA 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"
Point< dim > bottom_left
Point< dim > top_right

Definition at line 9 of file grid_fichera_oven.cc.

References bottom_left, colorize, grid_arguments, and top_right.

Member Function Documentation

◆ make_grid() [1/2]

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.

◆ make_grid() [2/2]

template<int dim, int spacedim>
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.

Parameters
[out]triangulationThe triangulation to fill with the oven mesh.

Definition at line 139 of file grid_fichera_oven.cc.

Member Data Documentation

◆ bottom_left

template<int dim, int spacedim>
Point<dim> GridFicheraOven< dim, spacedim >::bottom_left
private

Definition at line 77 of file grid_fichera_oven.h.

◆ colorize

template<int dim, int spacedim>
bool GridFicheraOven< dim, spacedim >::colorize
private

Definition at line 79 of file grid_fichera_oven.h.

◆ grid_arguments

template<int dim, int spacedim>
std::string GridFicheraOven< dim, spacedim >::grid_arguments
private

Definition at line 76 of file grid_fichera_oven.h.

◆ top_right

template<int dim, int spacedim>
Point<dim> GridFicheraOven< dim, spacedim >::top_right
private

Definition at line 78 of file grid_fichera_oven.h.


The documentation for this class was generated from the following files: