12 #ifndef ExactSolutionsMMSVTI_H__
13 #define ExactSolutionsMMSVTI_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);
43 ((mu_0 / mu) * (-2 * y * (cos(k * x) + cos(k * y))) - k * sin(k * y));
45 ((mu_0 / mu) * (-2 * x * (cos(k * x) + cos(k * y))) - k * sin(k * x));
52 current_vector_potential(
double x,
double y,
double mu_0,
double k)
55 const double mu = permeability(x, y, mu_0);
59 T[2] = (cos(k * x) + cos(k * y)) / mu;
65 magnetic_vector_potential(
double x,
double y,
double k)
69 A[0] = -sin(k * y) / k;
70 A[1] = sin(k * x) / k;
77 magnetic_field(
double x,
double y,
double k)
83 B[2] = (cos(k * x) + cos(k * y));
100 virtual void vector_value_list(
101 const std::vector<Point<3>>& r,
102 std::vector<Vector<double>>& values)
const override final;
117 virtual void vector_value_list(
118 const std::vector<Point<3>>& r,
119 std::vector<Vector<double>>& values)
const override final;
134 virtual void vector_value_list(
135 const std::vector<Point<3>>& r,
136 std::vector<Vector<double>>& values)
const override final;
151 virtual void vector_value_list(
152 const std::vector<Point<3>>& r,
153 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-i/) num...
Describes exact solution, , of the Method of manufactured solutions, vector potential (mms-vt-i/) num...
Global settings for the Method of manufactured solutions, vector potential (mms-vt-i/) numerical expe...