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 ExactSolutionRHO_H__
13 #define ExactSolutionRHO_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 
31 template<int dim>
33  : public Function<dim>
34  , public SettingsRHO
35 {
36 public:
38 
39  virtual double value(const Point<dim>& r,
40  const unsigned int component = 0) const override final;
41 
42  virtual Tensor<1, dim> gradient(
43  const Point<dim>& r,
44  const unsigned int component = 0) const override final;
45 };
46 
47 #endif
Describes exact solution, , of the Volume charge (rho/) numerical experiment in two and three dimensi...
Global settings for the Volume charge (rho/) numerical experiment.
Definition: settings.hpp:25