/home/runner/work/DiFfRG_current/DiFfRG_current/DiFfRG/include/DiFfRG/discretization/data/data.hh Source File#
|
DiFfRG
|
data.hh
Go to the documentation of this file.
19 template <uint dim, typename NumberType> class FunctionFromLambda : public dealii::Function<dim, NumberType>
24 FunctionFromLambda(FUN &&fun_, uint components) : Function<dim, NumberType>(components), fun(std::move(fun_)) {}
25 virtual void vector_value(const Point<dim> &p, Vector<NumberType> &values) const override { fun(p, values); }
130 auto interpolating_function = [&model](const auto &p, auto &values) { model.initial_condition(p, values); };
131 internal::FunctionFromLambda<dim, NumberType> initial_condition_function(std::move(interpolating_function),
171 template <typename Discretization> using FlowingVariables = DiFfRG::FE::FlowingVariables<Discretization>;
A class to set up initial data for whatever discretization we have chosen. Also used to switch/manage...
Definition abstract_data.hh:18
A class to set up initial data for whatever discretization we have chosen. Also used to switch/manage...
Definition data.hh:102
void interpolate(const Model &model)
Interpolates the initial condition from a numerical model.
Definition data.hh:124
virtual BlockVector< NumberType > & data() override
Obtain the data vector holding both spatial (block 0) and variable (block 1) data.
Definition data.hh:143
virtual Vector< NumberType > & spatial_data() override
Obtain the spatial data vector.
Definition data.hh:151
virtual const BlockVector< NumberType > & data() const override
Definition data.hh:144
virtual const Vector< NumberType > & spatial_data() const override
Definition data.hh:152
typename Discretization::Components Components
Definition data.hh:105
typename Discretization::NumberType NumberType
Definition data.hh:104
const DoFHandler< dim > & dof_handler
Definition data.hh:164
const Discretization & discretization
Definition data.hh:163
virtual Vector< NumberType > & variable_data() override
Obtain the variable data vector.
Definition data.hh:159
virtual const Vector< NumberType > & variable_data() const override
Definition data.hh:160
FlowingVariables(const Discretization &discretization)
Construct a new Flowing Variables object.
Definition data.hh:113
A class to set up initial data for whatever discretization we have chosen. Also used to switch/manage...
Definition data.hh:40
void interpolate(const Model &model)
Interpolates the initial condition from a numerical model.
Definition data.hh:55
virtual Vector< NumberType > & variable_data() override
Obtain the variable data vector.
Definition data.hh:84
virtual const Vector< NumberType > & spatial_data() const override
Definition data.hh:77
virtual Vector< NumberType > & spatial_data() override
Obtain the spatial data vector.
Definition data.hh:76
virtual const BlockVector< NumberType > & data() const override
Definition data.hh:69
virtual const Vector< NumberType > & variable_data() const override
Definition data.hh:85
FlowingVariables()
Construct a new Flowing Variables object.
Definition data.hh:47
virtual BlockVector< NumberType > & data() override
Obtain the data vector holding both spatial (block 0) and variable (block 1) data.
Definition data.hh:68
Definition data.hh:20
virtual void vector_value(const Point< dim > &p, Vector< NumberType > &values) const override
Definition data.hh:25
std::function< void(const Point< dim > &, Vector< NumberType > &)> FUN
Definition data.hh:21
FunctionFromLambda(FUN &&fun_, uint components)
Definition data.hh:24
Definition complex_math.hh:10
Generated by