FlowingVariables< NT > Class Template Reference#
|
DiFfRG
|
A class to set up initial data for whatever discretization we have chosen. Also used to switch/manage memory, vectors, matrices over interfaces between spatial discretization and separate variables. More...
#include <data.hh>
Public Types | |
| using | NumberType = NT |
Public Member Functions | |
| FlowingVariables () | |
| Construct a new Flowing Variables object. | |
| template<typename Model > | |
| void | interpolate (const Model &model) |
| Interpolates the initial condition from a numerical model. | |
| virtual BlockVector< NumberType > & | data () override |
| Obtain the data vector holding both spatial (block 0) and variable (block 1) data. | |
| virtual const BlockVector< NumberType > & | data () const override |
| virtual Vector< NumberType > & | spatial_data () override |
| Obtain the spatial data vector. | |
| virtual const Vector< NumberType > & | spatial_data () const override |
| virtual Vector< NumberType > & | variable_data () override |
| Obtain the variable data vector. | |
| virtual const Vector< NumberType > & | variable_data () const override |
Public Member Functions inherited from DiFfRG::AbstractFlowingVariables< double > | |
Private Attributes | |
| BlockVector< NumberType > | m_data |
Detailed Description
class DiFfRG::FlowingVariables< NT >
A class to set up initial data for whatever discretization we have chosen. Also used to switch/manage memory, vectors, matrices over interfaces between spatial discretization and separate variables.
- Template Parameters
-
Discretization Spatial Discretization used in the system
Member Typedef Documentation
◆ NumberType
| using DiFfRG::FlowingVariables< NT >::NumberType = NT |
Constructor & Destructor Documentation
◆ FlowingVariables()
|
inline |
Construct a new Flowing Variables object.
Member Function Documentation
◆ data() [1/2]
|
inlineoverridevirtual |
Implements DiFfRG::AbstractFlowingVariables< double >.
◆ data() [2/2]
|
inlineoverridevirtual |
Obtain the data vector holding both spatial (block 0) and variable (block 1) data.
- Returns
- BlockVector<NumberType>& The data vector.
Implements DiFfRG::AbstractFlowingVariables< double >.
◆ interpolate()
|
inline |
Interpolates the initial condition from a numerical model.
- Parameters
-
model The model to interpolate from. Must provide a method initial_condition(const Point<dim> &, Vector<NumberType> &)
◆ spatial_data() [1/2]
|
inlineoverridevirtual |
Implements DiFfRG::AbstractFlowingVariables< double >.
◆ spatial_data() [2/2]
|
inlineoverridevirtual |
Obtain the spatial data vector.
- Returns
- Vector<NumberType>& The spatial data vector.
Implements DiFfRG::AbstractFlowingVariables< double >.
◆ variable_data() [1/2]
|
inlineoverridevirtual |
Implements DiFfRG::AbstractFlowingVariables< double >.
◆ variable_data() [2/2]
|
inlineoverridevirtual |
Obtain the variable data vector.
- Returns
- Vector<NumberType>& The variable data vector.
Implements DiFfRG::AbstractFlowingVariables< double >.
Member Data Documentation
◆ m_data
|
private |
The documentation for this class was generated from the following file:
- /home/runner/work/DiFfRG_current/DiFfRG_current/DiFfRG/include/DiFfRG/discretization/data/data.hh
Generated by
Public Member Functions inherited from