21#ifndef _TEST_CASE_TRANSIENT_HPP
22#define _TEST_CASE_TRANSIENT_HPP
57 const std::vector<int> iTC,
109 const std::vector<int> m_iTC;
110 const double pi = acos(-1);
111 const double sqrt2 = std::pow(2,0.5);
112 const double eps = 1e-5;
The TestCaseTransient class provides definition of test cases.
Definition TestCaseTransient.hpp:52
double minus_div_diff_grad(const double t, const double x, const double y, const Cell *cell)
Returns -div(diff \nabla) of the exact solution at the point t, x, y.
Definition TestCaseTransient.cpp:239
double get_lambda()
Returns the value of the parameter lambda.
Definition TestCaseTransient.hpp:129
Eigen::Vector2d div_diff(const double x, const double y, const Cell *cell)
Returns the divergence by row of the diffusion matrix at the point x, y.
Definition TestCaseTransient.cpp:215
std::function< VectorRd(const double &, const VectorRd &, const Cell *)> grad_solution()
Definition TestCaseTransient.cpp:80
std::function< Eigen::Matrix2d(const double &, const VectorRd &, const Cell *)> hess_solution()
Note: the Hessian for the Barenblatt solution is NOT computed (left at 0) as it is not useful to comp...
Definition TestCaseTransient.cpp:117
std::function< double(const double &, const VectorRd &)> solution()
Returns the exact solution at time t and point p.
Definition TestCaseTransient.cpp:38
Eigen::Matrix2d diff(const double x, const double y, const Cell *cell)
Returns the diffusion matrix at the point x, y (not depending on time for the moment)
Definition TestCaseTransient.cpp:180
std::function< double(const double &, const VectorRd &)> delt_solution()
Returns the time derivative of the exact solution at time t and point p.
Definition TestCaseTransient.cpp:148
size_t get_deg_diff()
Returns the degree of the diffusion tensor (useful to set up quadrature rules of proper degree)
Definition TestCaseTransient.hpp:128
void validate()
Check if the provided test cases are valid (within range, and combination of solution/diffusion valid...
Definition TestCaseTransient.cpp:250
Eigen::Vector2d VectorRd
Definition basis.hpp:55
Definition ddr-klplate.hpp:27