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 ExactSolutionsABC_H__
13 #define ExactSolutionsABC_H__
14 
15 #include <deal.II/base/function.h>
16 #include <deal.II/base/point.h>
17 
18 #include <cmath>
19 
20 #include "constants.hpp"
21 #include "settings.hpp"
22 
23 using namespace dealii;
24 
30 template<int dim>
32  : public Function<dim>
33  , public SettingsABC
34 {
35 public:
37 
38  virtual double value(const Point<dim>& r,
39  const unsigned int component = 0) const override final;
40 
41  virtual Tensor<1, dim> gradient(
42  const Point<dim>& r,
43  const unsigned int component = 0) const override final;
44 
45 private:
46  // Half- separation between the image lines of charge.
47  double d = 0.0;
48 
49  // Charge density of the image lines of charge.
50  double lambda = 0.0;
51 };
52 
53 #endif
Describes exact solution, , of the Asymptotic boundary condition (abc/) numerical experiment.
Global settings for the Asymptotic boundary conditions (abc/) numerical experiment.
Definition: settings.hpp:26