12 #include "exact_solution.hpp"
14 #pragma GCC diagnostic push
15 #pragma GCC diagnostic ignored "-Wunused-parameter"
17 using namespace dealii;
24 Assert(R < x0, ExcInternalError());
25 Assert(R > 0, ExcInternalError());
26 Assert(x0 > 0, ExcInternalError());
27 Assert(a > 0, ExcInternalError());
28 Assert(a < 1.5 * (R + x0), ExcInternalError());
30 d = sqrt(pow(x0, 2) - pow(R, 2));
31 lambda = 1.0 / log(x0 / R + sqrt(pow(x0 / R, 2) - 1));
38 double xp = pow(r[0] + d, 2) + pow(r[1], 2);
39 double xm = pow(r[0] - d, 2) + pow(r[1], 2);
41 return (0.5 * lambda * log(xp / xm));
47 unsigned int component)
const
51 double xp = pow(r[0] + d, 2) + pow(r[1], 2);
52 double xm = pow(r[0] - d, 2) + pow(r[1], 2);
54 p[0] = (r[0] + d) / xp - (r[0] - d) / xm;
56 p[1] = r[1] / xp - r[1] / xm;
65 Assert(R < x0, ExcInternalError());
66 Assert(R > 0, ExcInternalError());
67 Assert(x0 > 0, ExcInternalError());
68 Assert(a > 0, ExcInternalError());
69 Assert(a < 1.5 * (R + x0), ExcInternalError());
82 unsigned int component)
const
84 return -r * a / pow(r.norm(), 3);
87 #pragma GCC diagnostic pop
Describes exact solution, , of the Asymptotic boundary condition (abc/) numerical experiment.