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

Transport coefficient function. More...

#include <problem_data.hpp>

Inheritance diagram for problem_data::TransportCoefficient< dim >:

Public Member Functions

virtual void vector_value (const Point< dim > &p, Vector< double > &values) const override
 Returns the vector value of the transport coefficient at a given point.
 
template<typename number >
void vector_value (const Point< dim, number > &, Vector< number > &values) const
 Templated version of vector_value() for different number types.
 
virtual double value (const Point< dim > &p, const unsigned int component=0) const override
 Returns the value of the transport coefficient for a specific component.
 
template<typename number >
number value (const Point< dim, number > &, const unsigned int component=0) const
 Templated version of value() for different number types.
 
template<typename number >
void tensor_value (const Point< dim, number > &, Tensor< 1, dim, number > &values) const
 Returns the tensor value of the transport coefficient at a given point.
 

Detailed Description

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

Transport coefficient function.

This class defines a constant transport coefficient for a PDE.

Template Parameters
dimDimension of the problem.

Member Function Documentation

◆ tensor_value()

template<int dim>
template<typename number >
void problem_data::TransportCoefficient< dim >::tensor_value ( const Point< dim, number > & ,
Tensor< 1, dim, number > & values ) const
inline

Returns the tensor value of the transport coefficient at a given point.

Parameters
pPoint at which the coefficient is evaluated.
valuesTensor to store the coefficient values.

◆ value() [1/2]

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

Returns the value of the transport coefficient for a specific component.

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

◆ value() [2/2]

template<int dim>
template<typename number >
number problem_data::TransportCoefficient< dim >::value ( const Point< dim, number > & ,
const unsigned int component = 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 for the specified component.

◆ vector_value() [1/2]

template<int dim>
virtual void problem_data::TransportCoefficient< dim >::vector_value ( const Point< dim > & p,
Vector< double > & values ) const
inlineoverridevirtual

Returns the vector value of the transport coefficient at a given point.

Parameters
pPoint at which the coefficient is evaluated.
valuesVector to store the coefficient values.

◆ vector_value() [2/2]

template<int dim>
template<typename number >
void problem_data::TransportCoefficient< dim >::vector_value ( const Point< dim, number > & ,
Vector< number > & values ) const
inline

Templated version of vector_value() for different number types.

Template Parameters
numberNumber type (e.g., double, vectorArray).
Parameters
pPoint at which the coefficient is evaluated.
valuesVector to store the coefficient values.

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