12 #include <deal.II/base/types.h>
13 #define BOOST_ALLOW_DEPRECATED_HEADERS
15 #include "static_scalar_input.hpp"
18 using namespace StaticScalarSolver;
21 #pragma GCC diagnostic push
22 #pragma GCC diagnostic ignored "-Wunused-parameter"
27 types::material_id mid,
29 std::vector<double>& values)
const
31 Assert(r.size() == values.size(),
32 ExcDimensionMismatch(r.size(), values.size()));
35 for (
unsigned int i = 0; i < values.size(); i++)
36 values[i] = 1.0 / (mu * r[i][0]);
38 for (
unsigned int i = 0; i < values.size(); i++)
39 values[i] = 1.0 / (mu_0 * r[i][0]);
46 types::material_id mid,
48 std::vector<double>& values)
const
50 Assert(r.size() == values.size(),
51 ExcDimensionMismatch(r.size(), values.size()));
54 for (
unsigned int i = 0; i < values.size(); i++)
55 values[i] = K_0 * r[i][0];
57 for (
unsigned int i = 0; i < values.size(); i++)
65 types::material_id mid,
67 std::vector<Tensor<1, 2>>& values)
const
69 Assert(r.size() == values.size(),
70 ExcDimensionMismatch(r.size(), values.size()));
72 for (
unsigned int i = 0; i < values.size(); i++) {
81 const std::vector<Tensor<1, 2>>& n,
82 types::boundary_id bid,
83 types::material_id mid,
86 std::vector<double>& values)
const
88 Assert(r.size() == values.size(),
89 ExcDimensionMismatch(r.size(), values.size()));
91 for (
unsigned int i = 0; i < values.size(); i++)
92 values[i] = 1.0 / (mu_0 * r[i][0] * d3);
98 const std::vector<Tensor<1, 2>>& n,
99 types::boundary_id bid,
100 types::material_id mid,
103 std::vector<double>& values)
const
106 Assert(r.size() == values.size(),
107 ExcDimensionMismatch(r.size(), values.size()));
109 for (
unsigned int i = 0; i < values.size(); i++)
116 const std::vector<Tensor<1, 2>>& n,
117 types::material_id mid,
120 std::vector<double>& values)
const
122 Assert(r.size() == values.size(),
123 ExcDimensionMismatch(r.size(), values.size()));
125 for (
unsigned int i = 0; i < values.size(); i++)
139 #pragma GCC diagnostic pop
void value_list(const std::vector< Point< dim >> &r, const std::vector< Tensor< 1, dim >> &n, types::material_id mid, unsigned int cuid, unsigned int fuid, std::vector< double > &values) const
Computes the right-hand side of the second continuity condition ( , , , or ).
void value_list(const std::vector< Point< dim >> &r, const std::vector< Tensor< 1, dim >> &n, types::boundary_id bid, types::material_id mid, unsigned int cuid, unsigned int fuid, std::vector< double > &values) const
Computes the coefficient at quadrature points.
void value_list(const std::vector< Point< dim >> &r, types::material_id mid, unsigned int cuid, std::vector< Tensor< 1, dim >> &values) const
Computes the two-dimensional free-current density on the right-hand side of the partial differential...
void value_list(const std::vector< Point< dim >> &r, types::material_id mid, unsigned int cuid, std::vector< double > &values) const
Computes the right-hand side of the div-grad partial differential equation at quadrature points.
void value_list(const std::vector< Point< dim >> &r, const std::vector< Tensor< 1, dim >> &n, types::boundary_id bid, types::material_id mid, unsigned int cuid, unsigned int fuid, std::vector< double > &values) const
Computes the right-hand side of the Robin boundary condition ( or ).
void value_list(const std::vector< Point< dim >> &r, types::material_id mid, unsigned int cuid, std::vector< double > &values) const
Computes the values of the coefficient at quadrature points.
virtual double value(const Point< dim > &r, const unsigned int component=0) const override final
Returns the value of weight at point r. All error norms, , , and , at point r will be multiplied by t...