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

#include <grid_periodic_hills.h>

Public Member Functions

 GridPeriodicHills (const std::string &grid_arguments)
void make_grid (Triangulation< dim, spacedim > &triangulation)

Static Public Member Functions

static Point< spacedim > hill_geometry (const Point< spacedim > &p, double spacing_y, double alpha)

Private Attributes

std::string grid_arguments
double spacing_y
int repetitions_x
int repetitions_y
int repetitions_z
double alpha

Detailed Description

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.

Constructor & Destructor Documentation

◆ GridPeriodicHills()

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.

Member Function Documentation

◆ hill_geometry()

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
pA point in space which will be adapted to the periodic hill geometry
paramNon-linear solver parameters

Definition at line 201 of file grid_periodic_hills.cc.

References alpha, and spacing_y.

◆ make_grid()

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

make_grid. The make_grid function generates a hyper rectangle of the size of the domain and then transforms it to the hill geometry. It also constructs the geometry manifold with FunctionManifold and finally sets the manifold.

Parameters
triangulation.The triangulation object on which the grid is generated

Definition at line 344 of file grid_periodic_hills.cc.

References alpha, hill_geometry(), repetitions_x, repetitions_y, repetitions_z, and spacing_y.

Member Data Documentation

◆ alpha

template<int dim, int spacedim>
double GridPeriodicHills< dim, spacedim >::alpha
private

Definition at line 75 of file grid_periodic_hills.h.

◆ grid_arguments

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

Definition at line 70 of file grid_periodic_hills.h.

◆ repetitions_x

template<int dim, int spacedim>
int GridPeriodicHills< dim, spacedim >::repetitions_x
private

Definition at line 72 of file grid_periodic_hills.h.

◆ repetitions_y

template<int dim, int spacedim>
int GridPeriodicHills< dim, spacedim >::repetitions_y
private

Definition at line 73 of file grid_periodic_hills.h.

◆ repetitions_z

template<int dim, int spacedim>
int GridPeriodicHills< dim, spacedim >::repetitions_z
private

Definition at line 74 of file grid_periodic_hills.h.

◆ spacing_y

template<int dim, int spacedim>
double GridPeriodicHills< dim, spacedim >::spacing_y
private

Definition at line 71 of file grid_periodic_hills.h.


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