template<int dim, int spacedim>
class GridPeriodicHills< dim, spacedim >
Class that creates a hyper_rectangle and transforms it to obtain the hill geometry with the hill_geometry function. It also attaches a manifold to the geometry.
Definition at line 25 of file grid_periodic_hills.h.
template<int dim, int spacedim>
| GridPeriodicHills< dim, spacedim >::GridPeriodicHills |
( |
const std::string & | grid_arguments | ) |
|
Constructor for the PeriodicHillsGrid.
- Parameters
-
| grid_arguments. | A string with 5 parameters spacing_y : allows to control the shifting of horizontal line [0 - 1] alpha : allows to elongate while keeping the same flat region [0.5 - 3] repetitions_x : number of separation of cells in x before refinement repetitions_y : number of separation of cells in y before refinement repetitions_z : number of separation of cells in z before refinement |
Definition at line 10 of file grid_periodic_hills.cc.
References alpha, grid_arguments, repetitions_x, repetitions_y, repetitions_z, and spacing_y.
template<int dim, int spacedim>
| Point< spacedim > GridPeriodicHills< dim, spacedim >::hill_geometry |
( |
const Point< spacedim > & | p, |
|
|
double | spacing_y, |
|
|
double | alpha ) |
|
static |
The hill_geometry function calculates all the domain of the geometry with 6 polynomials depending the x position. (See Hill Geometry Definition file : https://turbmodels.larc.nasa.gov/Other_LES_Data/2dhill_periodic.html) This code has nondimensionalized geometry, but the coefficients provided need a hill height of 28. This function also does a gradual shifting of the horizontal lines prior to have smaller element on the bottom of the geometry where results are more important.
- Parameters
-
| p | A point in space which will be adapted to the periodic hill geometry |
| param | Non-linear solver parameters |
Definition at line 201 of file grid_periodic_hills.cc.
References alpha, and spacing_y.
template<int dim, int spacedim>
| void GridPeriodicHills< dim, spacedim >::make_grid |
( |
Triangulation< dim, spacedim > & | triangulation | ) |
|