21#ifndef _TEST_CASE_STEFANPME_HPP
22#define _TEST_CASE_STEFANPME_HPP
57 const std::vector<int> iTCS
112 Eigen::Vector2d
translate(
double x,
double y)
const {
return Eigen::Vector2d(x,y) - center;};
117 const std::vector<int> m_iTCS;
118 const double pi = acos(-1);
119 const double sqrt2 = std::pow(2,0.5);
120 const double gamma = 1.0/3.0;
121 const double eps = 1e-5;
131 const double rho = std::pow(0.3, 2);
132 const Eigen::Vector2d center = Eigen::Vector2d(0.5, 0.5);
The TestCaseStefanPME class provides definition of test cases (exact solution, diffusion) for the Ste...
Definition TestCaseStefanPME.hpp:52
Eigen::Matrix2d hess_sol(const double x, const double y, const Cell *cell)
Returns the Hessian of the exact solution at the points x, y.
Definition TestCaseStefanPME.cpp:103
double radial(const double x, const double y) const
Definition TestCaseStefanPME.hpp:113
void validate()
Check if the provided test cases are valid (within range, and combination of solution/diffusion valid...
Definition TestCaseStefanPME.cpp:209
double source(const double x, const double y, const Cell *cell)
Returns the source term at the points x, y.
Definition TestCaseStefanPME.cpp:198
double get_lambda()
Returns the value of the parameter lambda.
Definition TestCaseStefanPME.hpp:138
Eigen::Vector2d translate(double x, double y) const
Definition TestCaseStefanPME.hpp:112
Eigen::Vector2d div_diff(const double x, const double y, const Cell *cell)
Returns the divergence by row of the diffusion matrix at the points x, y.
Definition TestCaseStefanPME.cpp:174
Eigen::Vector2d grad_sol(const double x, const double y, const Cell *cell)
Returns the gradient of the exact solution at the points x, y.
Definition TestCaseStefanPME.cpp:70
size_t get_deg_diff()
Returns the degree of the diffusion tensor (useful to set up quadrature rules of proper degree)
Definition TestCaseStefanPME.hpp:137
double sol(const double x, const double y)
Returns the exact solution at the points x, y.
Definition TestCaseStefanPME.cpp:40
Eigen::Matrix2d diff(const double x, const double y, const Cell *cell)
Returns the diffusion matrix at the points x, y.
Definition TestCaseStefanPME.cpp:139
The TestCase class provides definition of test cases.
Definition TestCase.hpp:164
Definition ddr-klplate.hpp:27