12 #include "exact_solution.hpp"
15 #pragma GCC diagnostic push
16 #pragma GCC diagnostic ignored "-Wunused-parameter"
18 using namespace dealii;
24 alpha = 1.0 / (ep_1 * log(b / d) + ep_2 * log(d / a));
25 beta = (ep_1 / ep_2) * log(b / d);
31 const unsigned int component)
const
38 return (-alpha * ep_2 * (log(r.norm() / d) - beta));
40 return (-alpha * ep_1 * log(r.norm() / b));
46 const unsigned int component)
const
53 return -alpha * ep_2 * (1 / r.square()) * r;
55 return -alpha * ep_1 * (1 / r.square()) * r;
61 alpha = 1.0 / (ep_1 * (1.0 / b - 1.0 / d) + ep_2 * (1.0 / d - 1.0 / a));
62 beta = 1.0 / d + (ep_1 / ep_2) * (1.0 / b - 1.0 / d);
68 const unsigned int component)
const
75 return (-alpha * ep_2 * (1.0 / r.norm() - beta));
77 return (-alpha * ep_1 * (1.0 / r.norm() - 1.0 / b));
83 const unsigned int component)
const
90 return alpha * ep_2 * r / pow(r.norm(), 3);
92 return alpha * ep_1 * r / pow(r.norm(), 3);
98 const std::vector<Point<2>>& r,
99 std::vector<Vector<double>>& values)
const
101 Assert(values.size() == r.size(),
102 ExcDimensionMismatch(values.size(), r.size()));
106 for (
unsigned int i = 0; i < r.size(); i++) {
107 phi = PHI.gradient(r[i]);
109 values[i][0] = -phi[0];
110 values[i][1] = -phi[1];
117 const std::vector<Point<2>>& r,
118 std::vector<Vector<double>>& values)
const
120 Assert(values.size() == r.size(),
121 ExcDimensionMismatch(values.size(), r.size()));
125 for (
unsigned int i = 0; i < r.size(); i++) {
126 phi = PHI.gradient(r[i]);
128 values[i][0] = -phi[0];
129 values[i][1] = -phi[1];
136 const std::vector<Point<2>>& r,
137 std::vector<Vector<double>>& values)
const
139 Assert(values.size() == r.size(),
140 ExcDimensionMismatch(values.size(), r.size()));
145 for (
unsigned int i = 0; i < r.size(); i++) {
151 phi = PHI.gradient(r[i]);
153 values[i][0] = -ep * phi[0];
154 values[i][1] = -ep * phi[1];
161 const std::vector<Point<2>>& r,
162 std::vector<Vector<double>>& values)
const
164 Assert(values.size() == r.size(),
165 ExcDimensionMismatch(values.size(), r.size()));
170 for (
unsigned int i = 0; i < r.size(); i++) {
176 phi = PHI.gradient(r[i]);
178 values[i][0] = -ep * phi[0];
179 values[i][1] = -ep * phi[1];
183 #pragma GCC diagnostic pop
Describes exact solution, , of the Axisymmetric - interface between dielectrics (int-axi/) numerical ...
Describes exact solution, , of the Axisymmetric - interface between dielectrics (int-axi/) numerical ...
Describes exact solution, , of the Axisymmetric - interface between dielectrics (int-axi/) numerical ...