Matrix Free Solver 1.0.0
A matrix free solver for the Advection Diffusion Reaction problem implemented with deal.II
Loading...
Searching...
No Matches
problem_data::ExactSolution< dim > Class Template Reference

Exact solution function. More...

#include <problem_data.hpp>

Inheritance diagram for problem_data::ExactSolution< dim >:

Public Member Functions

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.
 

Detailed Description

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
dimDimension of the problem.

Member Function Documentation

◆ gradient()

template<int dim>
virtual Tensor< 1, dim > problem_data::ExactSolution< dim >::gradient ( const Point< dim > & p,
const unsigned int = 0 ) const
inlineoverridevirtual

Returns the gradient of the exact solution at a given point.

Parameters
pPoint at which the gradient is evaluated.
componentComponent index.
Returns
Gradient of the exact solution at point p.

◆ value()

template<int dim>
virtual double problem_data::ExactSolution< dim >::value ( const Point< dim > & p,
const unsigned int = 0 ) const
inlineoverridevirtual

Returns the exact solution value at a given point.

Parameters
pPoint at which the solution is evaluated.
componentComponent index.
Returns
Exact solution value at point p.

The documentation for this class was generated from the following file: