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

#include <grid_periodic_hills.h>

Inheritance diagram for PeriodicHillsPushForward< dim, spacedim >:
[legend]

Public Member Functions

 PeriodicHillsPushForward (double spacing_y, double alpha)
virtual void vector_value (const Point< spacedim > &p, Vector< double > &values) const override
virtual double value (const Point< spacedim > &p, const unsigned int component) const override

Private Attributes

double spacing_y
double alpha

Detailed Description

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

The push_forward & the pull_back classes create the vector_value functions gradient function and because it inherits from Function<spacedim>. (formula is currently Euler and can be changed. See AutoDerivativeFunction documentation).

Definition at line 85 of file grid_periodic_hills.h.

Constructor & Destructor Documentation

◆ PeriodicHillsPushForward()

template<int dim, int spacedim>
PeriodicHillsPushForward< dim, spacedim >::PeriodicHillsPushForward ( double spacing_y,
double alpha )
inline

Definition at line 88 of file grid_periodic_hills.h.

References alpha, and spacing_y.

Member Function Documentation

◆ value()

template<int dim, int spacedim>
double PeriodicHillsPushForward< dim, spacedim >::value ( const Point< spacedim > & p,
const unsigned int component ) const
overridevirtual

value. The value function does the same thing than vector_value for one component. This implementation is needed to use the gradient function inherited by AutoDerivativeFunction.

Parameters
op.An original point in space
component.The component of the point (x=0, y=1, z=2)

Definition at line 52 of file grid_periodic_hills.cc.

References alpha, GridPeriodicHills< dim, spacedim >::hill_geometry(), and spacing_y.

◆ vector_value()

template<int dim, int spacedim>
void PeriodicHillsPushForward< dim, spacedim >::vector_value ( const Point< spacedim > & p,
Vector< double > & values ) const
overridevirtual

vector_value. This function is used to construct the geometry manifold. It changes the original point (op) of the transformed hyper_rectangle with hill_geometry to a new point (np) of the hill grid with per_hills_grid function.

Parameters
p.A point in space
values.The vector of values which will be calculated at the position p.

Definition at line 35 of file grid_periodic_hills.cc.

References alpha, GridPeriodicHills< dim, spacedim >::hill_geometry(), and spacing_y.

Member Data Documentation

◆ alpha

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

Definition at line 120 of file grid_periodic_hills.h.

◆ spacing_y

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

Definition at line 119 of file grid_periodic_hills.h.


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