Logbook  (07-04-2025)
Static problems
exact_solution.hpp
1 /******************************************************************************
2  * Copyright (C) Siarhei Uzunbajakau, 2023.
3  *
4  * This program is free software. You can use, modify, and redistribute it under
5  * the terms of the GNU Lesser General Public License as published by the Free
6  * Software Foundation, either version 3 or (at your option) any later version.
7  * This program is distributed without any warranty.
8  *
9  * Refer to COPYING.LESSER for more details.
10  ******************************************************************************/
11 
12 #ifndef ExactSolutionMWR_H__
13 #define ExactSolutionMWR_H__
14 
15 #include <deal.II/base/function.h>
16 #include <deal.II/base/tensor.h>
17 
18 #include <deal.II/lac/vector.h>
19 
20 #include <cmath>
21 
22 #include "constants.hpp"
23 #include "settings.hpp"
24 
25 using namespace dealii;
26 
33  : public Function<2>
34  , public SettingsMWR
35 {
36 public:
38 
39  virtual double value(const Point<2>& r,
40  const unsigned int component = 0) const override final;
41 
42  virtual Tensor<1, 2> gradient(
43  const Point<2>& r,
44  const unsigned int component = 0) const override final;
45 };
46 
52  : public Function<2>
53  , public SettingsMWR
54 {
55 public:
57  : Function<2>(2)
58  {
59  }
60 
61  virtual void vector_value_list(
62  const std::vector<Point<2>>& r,
63  std::vector<Vector<double>>& values) const final;
64 
65 private:
67 };
68 
74  : public Function<2>
75  , public SettingsMWR
76 {
77 public:
79  : Function<2>(2)
80  {
81  }
82 
83  virtual void vector_value_list(
84  const std::vector<Point<2>>& r,
85  std::vector<Vector<double>>& values) const final;
86 
87 private:
89 };
90 
91 #endif
Describes exact solution, , of the Magnetic wire (mwr/) numerical experiment.
Describes exact solution, , of the Magnetic wire (mwr/) numerical experiment.
Describes exact solution, , of the Magnetic wire (mwr/) numerical experiment.
Global settings for the Magnetic wire (mwr/) numerical experiment.
Definition: settings.hpp:26