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 ExactSolutionFLCAXI_H__
13 #define ExactSolutionFLCAXI_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 "constants.hpp"
21 #include "settings.hpp"
22 
23 using namespace dealii;
24 
30 template<bool is_cylinder>
32  : public Function<2>
33  , public SettingsFLCAXI
34 {
35 public:
37 
38  virtual double value(const Point<2>& r,
39  const unsigned int component = 0) const override final;
40 
41  virtual Tensor<1, 2> gradient(
42  const Point<2>& r,
43  const unsigned int component = 0) const override final;
44 
45 private:
46  double alpha;
47  double beta;
48  double phi_d;
49 };
50 
51 #endif
Describes the exact solution, , of the Axisymmetric - floating conductor (flc-axi/) numerical experim...
Global settings for the Axisymmetric - floating conductor (flc-axi/) numerical experiment.
Definition: settings.hpp:26