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 ExactSolutionMMS_H__
13 #define ExactSolutionMMS_H__
14 
15 #include <deal.II/base/function.h>
16 #include <deal.II/base/point.h>
17 #include <deal.II/base/tensor.h>
18 
19 #include <deal.II/lac/vector.h>
20 
21 #include <cmath>
22 
23 #include "constants.hpp"
24 #include "settings.hpp"
25 
26 using namespace dealii;
27 
33 template<int dim>
35  : public Function<dim>
36  , public SettingsMMS
37 {
38 public:
40 
41  virtual double value(const Point<dim>& r,
42  const unsigned int component = 0) const override final;
43 
44  virtual Tensor<1, dim> gradient(
45  const Point<dim>& r,
46  const unsigned int component = 0) const override final;
47 };
48 
54 template<int dim>
56  : public Function<dim>
57  , public SettingsMMS
58 {
59 public:
61  : Function<dim>(dim)
62  {
63  }
64 
65  virtual void vector_value_list(
66  const std::vector<Point<dim>>& r,
67  std::vector<Vector<double>>& values) const final;
68 };
69 
75 template<int dim>
77  : public Function<dim>
78  , public SettingsMMS
79 {
80 public:
82  : Function<dim>(dim)
83  {
84  }
85 
86  virtual void vector_value_list(
87  const std::vector<Point<dim>>& r,
88  std::vector<Vector<double>>& values) const final;
89 };
90 
91 #endif
Describes exact solution, , of the Method of manufactured solutions (mms/) numerical experiment in tw...
Describes exact solution, , of the Method of manufactured solutions (mms/) numerical experiment in tw...
Describes exact solution, , of the Method of manufactured solutions (mms/) numerical experiment in tw...
Global settings for the Method of manufactured solutions (mms/) numerical experiment.
Definition: settings.hpp:25