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 ExactSolutions_H__
13 #define ExactSolutions_H__
14 
15 #include "constants.hpp"
16 #include "settings.hpp"
17 #include <deal.II/base/function.h>
18 #include <deal.II/lac/vector.h>
19 
20 using namespace dealii;
21 
27 template<int dim>
29  : public Function<dim>
30  , public SettingsMMSV
31 {
32 public:
34 
35  virtual void vector_value_list(
36  const std::vector<Point<dim>>& r,
37  std::vector<Vector<double>>& values) const override final;
38 };
39 
45 template<int dim>
47  : public Function<dim>
48  , public SettingsMMSV
49 {
50 public:
52 
53  // To be used only if dim = 3. Magnetic field in three dimensions is a vector.
54  virtual void vector_value_list(
55  const std::vector<Point<dim>>& r,
56  std::vector<Vector<double>>& values) const override final;
57 
58  // To be used only if dim = 2. Magnetic field in two dimensions is a scalar,
59  // i.e., out-of-plane vector.
60  virtual double value(const Point<dim>& r,
61  const unsigned int component = 0) const override final;
62 };
63 
64 #endif
Describes exact solutions, , of the Method of manufactured solutions, vector potential (mms-v/) numer...
Describes exact solutions, , of the Method of manufactured solutions, vector potential (mms-v/) numer...
Global settings for the Method of manufactured solutions, vector potential (mms-v/) numerical experim...
Definition: settings.hpp:26