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

#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

Detailed Description

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

Class that creates a custom geometry that combines an extruded plate with a hole and an inner cylinder to form a cube.

Template Parameters
dimThe dimension of the mesh, must be 3.
spacedimThe dimension of the space where the mesh is defined, must be 3.

Definition at line 24 of file grid_cube_merged.h.

Constructor & Destructor Documentation

◆ GridCubeMerged()

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

Constructor for the GridCubeMerged.

Parameters
[in]grid_argumentsA 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.

Member Function Documentation

◆ make_grid() [1/2]

void GridCubeMerged< 3, 3 >::make_grid ( Triangulation< 3, 3 > & triangulation)

◆ make_grid() [2/2]

template<int dim, int spacedim>
void GridCubeMerged< dim, spacedim >::make_grid ( Triangulation< dim, spacedim > & triangulation)

Generate the merged cube mesh.

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

Definition at line 149 of file grid_cube_merged.cc.

Member Data Documentation

◆ cylinder_radius

template<int dim, int spacedim>
double GridCubeMerged< dim, spacedim >::cylinder_radius
private

Radius of the cylindrical mesh.

Definition at line 51 of file grid_cube_merged.h.

◆ grid_arguments

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

Arguments used to generate the grid.

Definition at line 49 of file grid_cube_merged.h.

◆ height

template<int dim, int spacedim>
double GridCubeMerged< dim, spacedim >::height
private

Height in the extruded direction (z axis).

Definition at line 55 of file grid_cube_merged.h.

◆ n_subdivisions

template<int dim, int spacedim>
unsigned int GridCubeMerged< dim, spacedim >::n_subdivisions
private

Number of subdivisions in the extruded direction (z axis).

Definition at line 57 of file grid_cube_merged.h.

◆ plate_half_length

template<int dim, int spacedim>
double GridCubeMerged< dim, spacedim >::plate_half_length
private

Half edge length of the square in the extruded plate with hole mesh.

Definition at line 53 of file grid_cube_merged.h.


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