12 #ifndef ExactSolutionsMMSVTII_H__
13 #define ExactSolutionsMMSVTII_H__
15 #include "constants.hpp"
16 #include "settings.hpp"
17 #include <deal.II/base/function.h>
18 #include <deal.II/lac/vector.h>
22 using namespace dealii;
25 permeability(
double x,
double y,
double mu_0)
27 return mu_0 * (pow(x, 2) + pow(y, 2) + 1.0);
31 robin_gamma(
double x,
double y,
double mu_0)
33 return (sqrt(pow(x, 2) + pow(y, 2)) + 2.0) / permeability(x, y, mu_0);
37 volume_free_current_density(
double x,
double y,
double mu_0,
double k)
40 const double mu = permeability(x, y, mu_0);
42 J[0] = (1.0 / mu) * ((mu_0 / mu) * (-2.0 * y * (cos(k * x) + cos(k * y))) -
44 J[1] = -(1.0 / mu) * ((mu_0 / mu) * (-2.0 * x * (cos(k * x) + cos(k * y))) -
51 magnetic_vector_potential(
double x,
double y,
double k)
55 A[0] = -sin(k * y) / k;
56 A[1] = sin(k * x) / k;
62 magnetic_field(
double x,
double y,
double k)
64 return (cos(k * x) + cos(k * y));
68 current_vector_potential(
double x,
double y,
double mu_0,
double k)
71 const double mu = permeability(x, y, mu_0);
72 const double B = magnetic_field(x, y, k);
91 virtual double value(
const Point<2>& r,
92 const unsigned int component = 0)
const override final;
94 virtual Tensor<1, 2> gradient(
96 const unsigned int component = 0)
const override final;
114 virtual void vector_value_list(
115 const std::vector<Point<2>>& r,
116 std::vector<Vector<double>>& values)
const override final;
131 virtual void value_list(
const std::vector<Point<2>>& r,
132 std::vector<double>& values,
133 const unsigned int component)
const override final;
148 virtual void value_list(
const std::vector<Point<2>>& r,
149 std::vector<double>& values,
150 const unsigned int component)
const override final;
168 virtual void vector_value_list(
169 const std::vector<Point<2>>& r,
170 std::vector<Vector<double>>& values)
const override final;
Describes the Dirichlet boundary condition for , in the Method of manufactured solutions,...
Describes the Dirichlet boundary condition for , in the Method of manufactured solutions,...
Describes exact solution, , of the Method of manufactured solutions, vector potential (mms-vt-ii/) nu...
Describes exact solution, , of the Method of manufactured solutions, vector potential (mms-vt-ii/) nu...
Describes exact solution, , of the Method of manufactured solutions, vector potential (mms-vt-ii/) nu...
Global settings for the Method of manufactured solutions, vector potential (mms-vt-ii/) numerical exp...