Forcing term function.
More...
#include <problem_data.hpp>
|
| 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.
|
| |
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
-
| dim | Dimension of the problem. |
◆ value() [1/2]
Returns the value of the forcing term at a given point.
- Parameters
-
| p | Point at which the term is evaluated. |
| component | Component index. |
- Returns
- Forcing term value at point p.
◆ value() [2/2]
template<int dim>
template<typename number >
Templated version of value() for different number types.
- Template Parameters
-
| number | Number type (e.g., double, vectorArray). |
- Parameters
-
| p | Point at which the term is evaluated. |
| component | Component index. |
- Returns
- Forcing term value at point p.
The documentation for this class was generated from the following file: