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 = typename Discretization::NumberType |
using | Components = typename Discretization::Components |
Public Member Functions | |
FlowingVariables (const Discretization &discretization) | |
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 |
![]() |
Static Public Attributes | |
static constexpr uint | dim = Discretization::dim |
Private Attributes | |
const Discretization & | discretization |
const DoFHandler< dim > & | dof_handler |
BlockVector< NumberType > | m_data |
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.
Discretization | Spatial Discretization used in the system |
using DiFfRG::FE::FlowingVariables< Discretization >::Components = typename Discretization::Components |
using DiFfRG::FE::FlowingVariables< Discretization >::NumberType = typename Discretization::NumberType |
|
inline |
Construct a new Flowing Variables object.
discretization | The spatial discretization to use |
|
inlineoverridevirtual |
|
inlineoverridevirtual |
Obtain the data vector holding both spatial (block 0) and variable (block 1) data.
Implements DiFfRG::AbstractFlowingVariables< Discretization::NumberType >.
|
inline |
Interpolates the initial condition from a numerical model.
model | The model to interpolate from. Must provide a method initial_condition(const Point<dim> &, Vector<NumberType> &) |
|
inlineoverridevirtual |
|
inlineoverridevirtual |
Obtain the spatial data vector.
Implements DiFfRG::AbstractFlowingVariables< Discretization::NumberType >.
|
inlineoverridevirtual |
|
inlineoverridevirtual |
Obtain the variable data vector.
Implements DiFfRG::AbstractFlowingVariables< Discretization::NumberType >.
|
staticconstexpr |
|
private |
|
private |
|
private |