4#ifndef lethe_per_hills_grid_h
5#define lethe_per_hills_grid_h
7#include <deal.II/base/auto_derivative_function.h>
8#include <deal.II/base/utilities.h>
10#include <deal.II/grid/manifold_lib.h>
11#include <deal.II/grid/tria.h>
13#include <deal.II/lac/vector.h>
24template <
int dim,
int spacedim>
55 Point<spacedim>
static hill_geometry(
const Point<spacedim> &p,
67 make_grid(Triangulation<dim, spacedim> &triangulation);
84template <
int dim,
int spacedim>
89 : AutoDerivativeFunction<spacedim>(1e-6, spacedim)
104 vector_value(
const Point<spacedim> &p, Vector<double> &values)
const override;
116 value(
const Point<spacedim> &p,
const unsigned int component)
const override;
124template <
int dim,
int spacedim>
129 : AutoDerivativeFunction<spacedim>(1e-6, spacedim)
148 Vector<double> &values)
const override;
161 value(
const Point<spacedim> &np,
const unsigned int component)
const override;
std::string grid_arguments
GridPeriodicHills(const std::string &grid_arguments)
Constructor for the PeriodicHillsGrid.
static Point< spacedim > hill_geometry(const Point< spacedim > &p, double spacing_y, double alpha)
The hill_geometry function calculates all the domain of the geometry with 6 polynomials depending the...
void make_grid(Triangulation< dim, spacedim > &triangulation)
make_grid. The make_grid function generates a hyper rectangle of the size of the domain and then tran...
PeriodicHillsPullBack(double spacing_y, double alpha)
virtual double value(const Point< spacedim > &np, const unsigned int component) const override
value. The value function does the same thing than vector_value for one component....
virtual void vector_value(const Point< spacedim > &np, Vector< double > &values) const override
vector_value. This vector_value function is used to construct the geometry manifold....
virtual double value(const Point< spacedim > &p, const unsigned int component) const override
value. The value function does the same thing than vector_value for one component....
virtual void vector_value(const Point< spacedim > &p, Vector< double > &values) const override
vector_value. This function is used to construct the geometry manifold. It changes the original point...
PeriodicHillsPushForward(double spacing_y, double alpha)