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::ForcingTerm< dim > Class Template Reference

Forcing term function. More...

#include <problem_data.hpp>

Inheritance diagram for problem_data::ForcingTerm< dim >:

Public Member Functions

virtual double value (const Point< dim > &p, const unsigned int component=0) const override
 Returns the value of the forcing term at a given point.
 
template<typename number >
number value (const Point< dim, number > &p, const unsigned int=0) const
 Templated version of value() for different number types.
 

Detailed Description

template<int dim>
class problem_data::ForcingTerm< dim >

Forcing term function.

This class defines a forcing term for a PDE, representing an external source or sink.

Template Parameters
dimDimension of the problem.

Member Function Documentation

◆ value() [1/2]

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

Returns the value of the forcing term at a given point.

Parameters
pPoint at which the term is evaluated.
componentComponent index.
Returns
Forcing term value at point p.

◆ value() [2/2]

template<int dim>
template<typename number >
number problem_data::ForcingTerm< dim >::value ( const Point< dim, number > & p,
const unsigned int = 0 ) const
inline

Templated version of value() for different number types.

Template Parameters
numberNumber type (e.g., double, vectorArray).
Parameters
pPoint at which the term is evaluated.
componentComponent index.
Returns
Forcing term value at point p.

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