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

#include <grid_periodic_hills.h>

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

Public Member Functions

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

Private Attributes

double spacing_y
double alpha

Detailed Description

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

Definition at line 125 of file grid_periodic_hills.h.

Constructor & Destructor Documentation

◆ PeriodicHillsPullBack()

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

Definition at line 128 of file grid_periodic_hills.h.

References alpha, and spacing_y.

Member Function Documentation

◆ value()

template<int dim, int spacedim>
double PeriodicHillsPullBack< dim, spacedim >::value ( const Point< spacedim > & np,
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
p.An original point in space
component.The component of the point (x=0, y=1, z=2)

Definition at line 133 of file grid_periodic_hills.cc.

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

◆ vector_value()

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

vector_value. This vector_value function is used to construct the geometry manifold. It changes the new point (np) of the hill grid to the original point (op) of the transformed hyper_rectangle grid. This function is mandatory to use FunctionManifold. First, it finds the minimum value of y depending the x position and then calculates the op with the inverse of the transformation done by hill_geometry function.

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

Definition at line 64 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 PeriodicHillsPullBack< dim, spacedim >::alpha
private

Definition at line 165 of file grid_periodic_hills.h.

◆ spacing_y

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

Definition at line 164 of file grid_periodic_hills.h.


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