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 ExactSolutionINT_H__
13 #define ExactSolutionINT_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 
32 template<int dim>
34  : public Function<dim>
35  , public SettingsINT
36 {
37 public:
39 
40  virtual double value(const Point<dim>& r,
41  const unsigned int component = 0) const override final;
42 
43  virtual Tensor<1, dim> gradient(
44  const Point<dim>& r,
45  const unsigned int component = 0) const override final;
46 
47 private:
48  double alpha;
49  double beta;
50 };
51 
57 template<int dim>
59  : public Function<dim>
60  , public SettingsINT
61 {
62 public:
64  : Function<dim>(dim)
65  {
66  }
67 
68  virtual void vector_value_list(
69  const std::vector<Point<dim>>& r,
70  std::vector<Vector<double>>& values) const final;
71 
72 private:
74 };
75 
81 template<int dim>
83  : public Function<dim>
84  , public SettingsINT
85 {
86 public:
88  : Function<dim>(dim)
89  {
90  }
91 
92  virtual void vector_value_list(
93  const std::vector<Point<dim>>& r,
94  std::vector<Vector<double>>& values) const final;
95 
96 private:
98 };
99 
100 #endif
Describes the exact solution, , of the Interface between dielectrics (int/) numerical experiment.
Describes the exact solution, , of the Interface between dielectrics (int/) numerical experiment.
Describes the exact solution, , of the Interface between dielectrics (int/) numerical experiment.
Global settings for the Interface between dielectrics (int/) numerical experiment.
Definition: settings.hpp:25