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

Reaction coefficient function. More...

#include <problem_data.hpp>

Inheritance diagram for problem_data::ReactionCoefficient< dim >:

Public Member Functions

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

Detailed Description

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

Reaction coefficient function.

This class defines a constant reaction coefficient for a PDE.

Template Parameters
dimDimension of the problem.

Member Function Documentation

◆ value() [1/2]

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

Returns the value of the reaction coefficient at a given point.

Parameters
pPoint at which the coefficient is evaluated.
componentComponent index.
Returns
Coefficient value at point p.

◆ value() [2/2]

template<int dim>
template<typename number >
number problem_data::ReactionCoefficient< dim >::value ( const Point< dim, number > & ,
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 coefficient is evaluated.
componentComponent index.
Returns
Coefficient value at point p.

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