/home/runner/work/DiFfRG_current/DiFfRG_current/DiFfRG/include/DiFfRG/timestepping/boost_abm.hh Source File#

DiFfRG: /home/runner/work/DiFfRG_current/DiFfRG_current/DiFfRG/include/DiFfRG/timestepping/boost_abm.hh Source File
DiFfRG
Discretization Framework for functional Renormalization Group flows
boost_abm.hh
Go to the documentation of this file.
1#pragma once
2
3// DiFfRG
11
12namespace DiFfRG
13{
18 template <typename VectorType, typename SparseMatrixType = dealii::SparseMatrix<get_type::NumberType<VectorType>>,
19 uint dim = 0>
20 class TimeStepperBoostABM_impl : public AbstractTimestepper<VectorType, SparseMatrixType, dim>
21 {
23
24 public:
25 using NumberType = typename Base::NumberType;
28
35 : Base(config, assembler, data_out, /*implicit=*/false, /*explicit=*/true)
36 {
37 }
40 : Base(config, assembler, data_out, adaptor, /*implicit=*/false, /*explicit=*/true)
41 {
42 }
44
48 virtual void run(AbstractFlowingVariables<NumberType, VectorType> &initial_condition, const double t_start,
49 const double t_stop) override;
50
51 private:
52 void run(VectorType &initial_data, const double t_start, const double t_stop);
53 void run(BlockVectorType &initial_data, const double t_start, const double t_stop);
54 void run_vars(VectorType &initial_data, const double t_start, const double t_stop);
55 };
56
57 // ##############################################################################
58 // Application-facing spelling
59 // ##############################################################################
60 //
61 // The class above takes the linear algebra spelled out because it is compiled out of line: the
62 // set of valid arguments is closed by the explicit instantiations in src/, and keying it on the
63 // assembler would explode that set into one instantiation per model. Applications name the
64 // assembler instead and let these aliases project it onto that fixed parameter list.
65 //
66 // The argument is anything exposing VectorType, SparseMatrixType and dim -- an Assembler, or a
67 // Discretization where the assembler type is not a single type (e.g. a test that runs one
68 // discretization against several models).
69 template <typename Assembler>
72} // namespace DiFfRG
Implement a simple interface to do all adaptivity tasks, i.e. solution transfer, reinit of dofHandler...
Definition abstract_adaptor.hh:11
This is the general assembler interface for any kind of discretization. An assembler is responsible f...
Definition abstract_assembler.hh:54
A class to set up initial data for whatever discretization we have chosen. Also used to switch/manage...
Definition abstract_data.hh:21
The abstract base class for all timestepping algorithms. It provides a standard constructor which pop...
Definition abstract_timestepper.hh:155
struct DiFfRG::AbstractTimestepper::ExplicitParameters expl
typename get_type::BlockVectorType< VectorType > BlockVectorType
Definition abstract_timestepper.hh:169
AbstractAssembler< VectorType, SparseMatrixType, dim > & assembler
Definition abstract_timestepper.hh:309
OutputSession_impl< dim, VectorType > & data_out
Definition abstract_timestepper.hh:310
AbstractAdaptor< VectorType > & adaptor
Definition abstract_timestepper.hh:311
typename get_type::NumberType< VectorType > NumberType
Definition abstract_timestepper.hh:159
const ConfigTree config
Definition abstract_timestepper.hh:307
struct DiFfRG::AbstractTimestepper::ImplicitParameters impl
double output_dt
Definition abstract_timestepper.hh:318
A hierarchical configuration tree, readable from JSON and TOML files.
Definition config_tree.hh:32
Definition output_session.hh:176
A class to perform time stepping using the Boost Adams-Bashforth-Moulton method. This stepper uses fi...
Definition boost_abm.hh:21
typename Base::BlockVectorType BlockVectorType
Definition boost_abm.hh:27
void run_vars(VectorType &initial_data, const double t_start, const double t_stop)
void run(BlockVectorType &initial_data, const double t_start, const double t_stop)
typename Base::NumberType NumberType
Definition boost_abm.hh:25
virtual void run(AbstractFlowingVariables< NumberType, VectorType > &initial_condition, const double t_start, const double t_stop) override
Run the time stepping algorithm.
TimeStepperBoostABM_impl(const ConfigTree &config, AbstractAssembler< VectorType, SparseMatrixType, dim > &assembler, OutputSession_impl< dim, VectorType > &data_out)
Definition boost_abm.hh:33
typename get_type::InverseSparseMatrixType< SparseMatrixType > InverseSparseMatrixType
Definition boost_abm.hh:26
TimeStepperBoostABM_impl(const ConfigTree &config, AbstractAssembler< VectorType, SparseMatrixType, dim > &assembler, OutputSession_impl< dim, VectorType > &data_out, AbstractAdaptor< VectorType > &adaptor)
Definition boost_abm.hh:38
void run(VectorType &initial_data, const double t_start, const double t_stop)
All compile-time knowledge about which linear algebra types DiFfRG uses.
typename internal::_InverseSparseMatrixType< SparseMatrixType >::value InverseSparseMatrixType
Definition linear_algebra.hh:158
Definition complex_math.hh:10
@ config
/discretization/threads.