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 ExactSolutionSSOLIAXI_H__
13 #define ExactSolutionSSOLIAXI_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 SettingsSSOLIAXI
35 {
36 public:
38 
39  virtual double value(const Point<2>& p,
40  const unsigned int component = 0) const override final;
41 
42  virtual Tensor<1, 2> gradient(
43  const Point<2>& p,
44  const unsigned int component = 0) const override final;
45 };
46 
53  : public Function<2>
54  , public SettingsSSOLIAXI
55 {
56 public:
58  : Function<2>(2)
59  , B_0(2.0 * mu_0 * K_0 / 3.0)
60  {
61  }
62 
63  virtual void vector_value_list(
64  const std::vector<Point<2>>& r,
65  std::vector<Vector<double>>& values) const final;
66 
67 private:
68  const double B_0;
69 };
70 
71 #endif
Describes exact solution, , of the Axisymmetric - thin spherical coil (ssol-i-axi) numerical experime...
Describes exact solution, , of the Axisymmetric - thin spherical coil (ssol-i-axi) numerical experime...
Global settings for the Axisymmetric - thin spherical coil (ssol-i-axi) numerical experiment.
Definition: settings.hpp:32