13 #include <deal.II/base/types.h>
14 #define BOOST_ALLOW_DEPRECATED_HEADERS
16 #include "static_vector_input.hpp"
19 using namespace StaticVectorSolver;
22 #pragma GCC diagnostic push
23 #pragma GCC diagnostic ignored "-Wunused-parameter"
24 #pragma GCC diagnostic ignored "-Wunused-but-set-variable"
29 types::material_id mid,
31 std::vector<double>& values)
const
33 Assert(r.size() == values.size(),
34 ExcDimensionMismatch(r.size(), values.size()));
36 auto v = values.begin();
46 types::material_id mid,
48 std::vector<Tensor<1, 3>>& values)
const
50 Assert(r.size() == values.size(),
51 ExcDimensionMismatch(r.size(), values.size()));
53 for (
unsigned int i = 0; i < r.size(); i++) {
63 const std::vector<Tensor<1, 3>>& n,
64 types::boundary_id bid,
65 types::material_id mid,
68 std::vector<double>& values)
const
70 Assert(r.size() == values.size(),
71 ExcDimensionMismatch(r.size(), values.size()));
73 for (
unsigned int i = 0; i < r.size(); i++)
74 values[i] = 1.0 / (mu_0 * r[i].norm());
80 const std::vector<Tensor<1, 3>>& n,
81 types::boundary_id bid,
82 types::material_id mid,
85 std::vector<Tensor<1, 3>>& values)
const
87 Assert(r.size() == values.size(),
88 ExcDimensionMismatch(r.size(), values.size()));
90 for (
unsigned int i = 0; i < r.size(); i++) {
100 const std::vector<Tensor<1, 3>>& n,
101 types::material_id mid,
104 std::vector<Tensor<1, 3>>& values)
const
106 Assert(r.size() == values.size(),
107 ExcDimensionMismatch(r.size(), values.size()));
109 if ((cuid == 1) && (fuid == 1)) {
110 for (
unsigned int i = 0; i < r.size(); i++) {
111 values[i][0] = -K_0 * r[i][1];
112 values[i][1] = K_0 * r[i][0];
116 for (
unsigned int i = 0; i < values.size(); i++) {
133 #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< Tensor< 1, dim >> &values) const
Computes values of the surface free-current density, , on the right-hand side of the continuity condi...
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 values of the parameter of the Robin boundary condition 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 vector field on the right-hand side of the partial differential equation.
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< Tensor< 1, dim >> &values) const
Computes values of the vector field on the right-hand side of the Robin boundary condition at quadra...
void value_list(const std::vector< Point< dim >> &r, types::material_id mid, unsigned int cuid, std::vector< double > &values) const
Computes values of permeability, , 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...