12 #include "exact_solution.hpp"
14 #pragma GCC diagnostic push
15 #pragma GCC diagnostic ignored "-Wunused-parameter"
17 using namespace dealii;
24 return (cos(k * r[0]) + cos(k * r[1]));
30 unsigned int component)
const
34 p[0] = -k * sin(k * r[0]);
35 p[1] = -k * sin(k * r[1]);
44 return (cos(k * r[0]) + cos(k * r[1]) + cos(k * r[2]));
50 unsigned int component)
const
54 p[0] = -k * sin(k * r[0]);
55 p[1] = -k * sin(k * r[1]);
56 p[2] = -k * sin(k * r[2]);
64 const std::vector<Point<2>>& r,
65 std::vector<Vector<double>>& values)
const
67 Assert(values.size() == r.size(),
68 ExcDimensionMismatch(values.size(), r.size()));
70 for (
unsigned int i = 0; i < r.size(); i++) {
71 values[i][0] = k * sin(k * r[i][0]);
72 values[i][1] = k * sin(k * r[i][1]);
79 const std::vector<Point<3>>& r,
80 std::vector<Vector<double>>& values)
const
82 Assert(values.size() == r.size(),
83 ExcDimensionMismatch(values.size(), r.size()));
85 for (
unsigned int i = 0; i < r.size(); i++) {
86 values[i][0] = k * sin(k * r[i][0]);
87 values[i][1] = k * sin(k * r[i][1]);
88 values[i][2] = k * sin(k * r[i][2]);
95 const std::vector<Point<2>>& r,
96 std::vector<Vector<double>>& values)
const
98 Assert(values.size() == r.size(),
99 ExcDimensionMismatch(values.size(), r.size()));
103 for (
unsigned int i = 0; i < r.size(); i++) {
104 alpha = ep_0 * k * (pow(r[i][0], 2.0) * pow(r[i][1], 2.0) + 1.0);
106 values[i][0] = alpha * sin(k * r[i][0]);
107 values[i][1] = alpha * sin(k * r[i][1]);
114 const std::vector<Point<3>>& r,
115 std::vector<Vector<double>>& values)
const
117 Assert(values.size() == r.size(),
118 ExcDimensionMismatch(values.size(), r.size()));
122 for (
unsigned int i = 0; i < r.size(); i++) {
124 (pow(r[i][0], 2.0) * pow(r[i][1], 2.0) * pow(r[i][2], 2.0) + 1.0);
126 values[i][0] = alpha * sin(k * r[i][0]);
127 values[i][1] = alpha * sin(k * r[i][1]);
128 values[i][2] = alpha * sin(k * r[i][2]);
132 #pragma GCC diagnostic pop
Describes exact solution, , of the Method of manufactured solutions (mms/) numerical experiment in tw...
Describes exact solution, , of the Method of manufactured solutions (mms/) numerical experiment in tw...
Describes exact solution, , of the Method of manufactured solutions (mms/) numerical experiment in tw...