/home/runner/work/DiFfRG_current/DiFfRG_current/DiFfRG/include/DiFfRG/discretization/data/data.hh Source File#
|
DiFfRG
Discretization Framework for functional Renormalization Group flows
|
data.hh
Go to the documentation of this file.
27 template <uint dim, typename NumberType> class FunctionFromLambda : public dealii::Function<dim, NumberType>
32 FunctionFromLambda(FUN &&fun_, uint components) : Function<dim, NumberType>(components), fun(std::move(fun_)) {}
33 virtual void vector_value(const Point<dim> &p, Vector<NumberType> &values) const override { fun(p, values); }
110 : public AbstractFlowingVariables<typename Discretization::NumberType, typename Discretization::VectorType>
142 auto interpolating_function = [&model](const auto &p, auto &values) { model.initial_condition(p, values); };
143 internal::FunctionFromLambda<dim, NumberType> initial_condition_function(std::move(interpolating_function),
191 : public AbstractFlowingVariables<typename Discretization::NumberType, typename Discretization::VectorType>
A class to set up initial data for whatever discretization we have chosen. Also used to switch/manage...
Definition abstract_data.hh:21
A class to set up initial data for whatever discretization we have chosen. Also used to switch/manage...
Definition data.hh:111
virtual VectorType & variable_data() override
Obtain the variable data vector.
Definition data.hh:171
void interpolate(const Model &model)
Interpolates the initial condition from a numerical model.
Definition data.hh:135
virtual const VectorType & variable_data() const override
Definition data.hh:172
virtual VectorType & spatial_data() override
Obtain the spatial data vector.
Definition data.hh:163
typename Discretization::Components Components
Definition data.hh:116
typename Discretization::NumberType NumberType
Definition data.hh:113
const DoFHandler< dim > & dof_handler
Definition data.hh:176
const Discretization & discretization
Definition data.hh:175
virtual const VectorType & spatial_data() const override
Definition data.hh:164
virtual const BlockVectorType & data() const override
Definition data.hh:156
FlowingVariables(const Discretization &discretization)
Construct a new Flowing Variables object.
Definition data.hh:124
virtual BlockVectorType & data() override
Obtain the data vector holding both spatial (block 0) and variable (block 1) data.
Definition data.hh:155
typename Discretization::VectorType VectorType
Definition data.hh:114
get_type::BlockVectorType< VectorType > BlockVectorType
Definition data.hh:115
Class to manage the system on which we solve, i.e. fe spaces, grids, etc. This class is a System for ...
Definition discretization.hh:46
const auto & get_mapping() const
Definition discretization.hh:120
typename DiFfRG::internal::components_of< ModelOrComponents_ >::type Components
Definition discretization.hh:50
const auto & get_fe(uint i=0) const
Definition discretization.hh:115
std::vector< uint > get_block_structure() const
Definition discretization.hh:171
const dealii::IndexSet & get_locally_owned_dofs() const
The dof rows this rank owns. Complete on a serial mesh.
Definition discretization.hh:144
MPI_Comm get_communicator() const
MPI_COMM_SELF on a serial mesh, so callers never have to branch on the build type.
Definition discretization.hh:153
A class to set up cell-averaged initial data for finite-volume systems.
Definition data.hh:192
virtual VectorType & variable_data() override
Obtain the variable data vector.
Definition data.hh:293
typename Discretization::NumberType NumberType
Definition data.hh:194
virtual const VectorType & spatial_data() const override
Definition data.hh:286
void interpolate(const Model &model)
Initializes FV data with cell averages of the model initial condition.
Definition data.hh:216
const Discretization & discretization
Definition data.hh:297
virtual BlockVectorType & data() override
Obtain the data vector holding both spatial (block 0) and variable (block 1) data.
Definition data.hh:277
virtual VectorType & spatial_data() override
Obtain the spatial data vector.
Definition data.hh:285
virtual const VectorType & variable_data() const override
Definition data.hh:294
FlowingVariables(const Discretization &discretization)
Construct a new Flowing Variables object.
Definition data.hh:205
const DoFHandler< dim > & dof_handler
Definition data.hh:298
typename Discretization::VectorType VectorType
Definition data.hh:195
get_type::BlockVectorType< VectorType > BlockVectorType
Definition data.hh:196
typename Discretization::Components Components
Definition data.hh:197
virtual const BlockVectorType & data() const override
Definition data.hh:278
A class to set up initial data for whatever discretization we have chosen. Also used to switch/manage...
Definition data.hh:48
void interpolate(const Model &model)
Interpolates the initial condition from a numerical model.
Definition data.hh:63
virtual Vector< NumberType > & variable_data() override
Obtain the variable data vector.
Definition data.hh:92
virtual const Vector< NumberType > & spatial_data() const override
Definition data.hh:85
virtual Vector< NumberType > & spatial_data() override
Obtain the spatial data vector.
Definition data.hh:84
virtual const BlockVector< NumberType > & data() const override
Definition data.hh:77
virtual const Vector< NumberType > & variable_data() const override
Definition data.hh:93
FlowingVariables()
Construct a new Flowing Variables object.
Definition data.hh:55
virtual BlockVector< NumberType > & data() override
Obtain the data vector holding both spatial (block 0) and variable (block 1) data.
Definition data.hh:76
Definition data.hh:28
virtual void vector_value(const Point< dim > &p, Vector< NumberType > &values) const override
Definition data.hh:33
std::function< void(const Point< dim > &, Vector< NumberType > &)> FUN
Definition data.hh:29
FunctionFromLambda(FUN &&fun_, uint components)
Definition data.hh:32
All compile-time knowledge about which linear algebra types DiFfRG uses.
typename internal::_BlockVectorType< VectorType >::value BlockVectorType
The block-vector type belonging to a given vector type.
Definition linear_algebra.hh:167
Definition complex_math.hh:10
void reinit_la_block_vector(BlockVectorType &vec, const std::vector< uint > &block_structure, const dealii::IndexSet &locally_owned, MPI_Comm comm)
Size a block vector: block 0 is the FE dofs, block 1 (if present) the extra variables.
Definition la_policy.hh:183
Generated by