Exact solution function.
More...
#include <problem_data.hpp>
|
| virtual double | value (const Point< dim > &p, const unsigned int=0) const override |
| | Returns the exact solution value at a given point.
|
| |
| virtual Tensor< 1, dim > | gradient (const Point< dim > &p, const unsigned int=0) const override |
| | Returns the gradient of the exact solution at a given point.
|
| |
template<int dim>
class problem_data::ExactSolution< dim >
Exact solution function.
This class defines the exact solution for comparison with the numerical solution.
- Template Parameters
-
| dim | Dimension of the problem. |
◆ gradient()
Returns the gradient of the exact solution at a given point.
- Parameters
-
| p | Point at which the gradient is evaluated. |
| component | Component index. |
- Returns
- Gradient of the exact solution at point p.
◆ value()
Returns the exact solution value at a given point.
- Parameters
-
| p | Point at which the solution is evaluated. |
| component | Component index. |
- Returns
- Exact solution value at point p.
The documentation for this class was generated from the following file: