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 ExactSolutionMMSAXI_H__
13 #define ExactSolutionMMSAXI_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 template<int dim>
35  : public Function<dim>
36  , public SettingsMMSAXI
37 {
38 public:
40 
41  virtual double value(const Point<dim>& p,
42  const unsigned int component = 0) const override final;
43 
44  virtual Tensor<1, dim> gradient(
45  const Point<dim>& p,
46  const unsigned int component = 0) const override final;
47 };
48 
55 template<int dim>
57  : public Function<dim>
58  , public SettingsMMSAXI
59 {
60 public:
62  : Function<dim>(dim)
63  {
64  }
65 
66  virtual void vector_value_list(
67  const std::vector<Point<dim>>& p,
68  std::vector<Vector<double>>& values) const final;
69 };
70 
77 template<int dim>
79  : public Function<dim>
80  , public SettingsMMSAXI
81 {
82 public:
84  : Function<dim>(dim)
85  {
86  }
87 
88  virtual void vector_value_list(
89  const std::vector<Point<dim>>& p,
90  std::vector<Vector<double>>& values) const final;
91 };
92 
93 #endif
Describes the exact solution, , of the Axisymmetric - method of manufactured solutions (mms-axi/) num...
Describes the exact solution, , of the Axisymmetric - method of manufactured solutions (mms-axi/) num...
Describes the exact solution, , of the Axisymmetric - method of manufactured solutions (mms-axi/) num...
Global settings for the Axisymmetric - method of manufactured solutions (mms-axi/) numerical experime...
Definition: settings.hpp:26