/home/runner/work/DiFfRG_current/DiFfRG_current/DiFfRG/include/DiFfRG/timestepping/abstract_timestepper.hh Source File#
|
DiFfRG
|
abstract_timestepper.hh
Go to the documentation of this file.
53 static_assert(std::is_same_v<VectorType, Vector<NumberType>>, "VectorType must not be Vector<double>!");
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:39
A class to set up initial data for whatever discretization we have chosen. Also used to switch/manage...
Definition abstract_data.hh:18
The abstract base class for all timestepping algorithms. It provides a standard constructor which pop...
Definition abstract_timestepper.hh:46
dealii::BlockVector< NumberType > BlockVectorType
Definition abstract_timestepper.hh:54
AbstractAssembler< VectorType, SparseMatrixType, dim > * assembler
Definition abstract_timestepper.hh:134
struct DiFfRG::AbstractTimestepper::ExplicitParameters expl
std::shared_ptr< DataOutput< dim, VectorType > > data_out_default
Definition abstract_timestepper.hh:141
void console_out(const double t, const std::string name, const int verbosity_level, const double calc_dt_ms=-1.0) const
Pretty-print the status of the timestepping algorithm to the console.
Definition abstract_timestepper.hh:170
SparseMatrixType_ SparseMatrixType
Definition abstract_timestepper.hh:51
DataOutput< dim, VectorType > * data_out
Definition abstract_timestepper.hh:135
const std::chrono::time_point< std::chrono::high_resolution_clock > start_time
Definition abstract_timestepper.hh:138
AbstractTimestepper(const JSONValue &json, AbstractAssembler< VectorType, SparseMatrixType, dim > *assembler, DataOutput< dim, VectorType > *data_out=nullptr, AbstractAdaptor< VectorType > *adaptor=nullptr)
Construct a new Abstract Timestepper object.
Definition abstract_timestepper.hh:65
AbstractAdaptor< VectorType > * adaptor
Definition abstract_timestepper.hh:136
std::shared_ptr< NoAdaptivity< VectorType > > adaptor_default
Definition abstract_timestepper.hh:140
virtual void run(AbstractFlowingVariables< NumberType > *initial_condition, const double t_start, const double t_stop)=0
Any derived class must implement this method to run the timestepping algorithm.
typename get_type::NumberType< VectorType > NumberType
Definition abstract_timestepper.hh:50
DataOutput< dim, VectorType > * get_data_out()
Utility function to obtain a DataOutput object. If no DataOutput object is provided,...
Definition abstract_timestepper.hh:98
typename get_type::InverseSparseMatrixType< SparseMatrixType > InverseSparseMatrixType
Definition abstract_timestepper.hh:52
AbstractAdaptor< VectorType > * get_adaptor()
Utility function to obtain an Adaptor object. If no Adaptor object is provided, a default one is crea...
Definition abstract_timestepper.hh:113
struct DiFfRG::AbstractTimestepper::ImplicitParameters impl
Class to manage writing to files. FEM functions are written to vtk files and other data is written to...
Definition data_output.hh:20
double get_double(const std::string &key) const
Get the value of a key in the json object.
int get_int(const std::string &key) const
Get the value of a key in the json object.
typename internal::_NumberType< VectorType >::value NumberType
Definition types.hh:86
typename internal::_InverseSparseMatrixType< SparseMatrixType >::value InverseSparseMatrixType
Definition types.hh:92
Definition complex_math.hh:10
std::string time_format_ms(size_t time_in_miliseconds)
Nice output from seconds to h/min/s style string.
Definition abstract_timestepper.hh:154
double abs_tol
Definition abstract_timestepper.hh:158
double minimal_dt
Definition abstract_timestepper.hh:156
double maximal_dt
Definition abstract_timestepper.hh:157
double rel_tol
Definition abstract_timestepper.hh:159
Definition abstract_timestepper.hh:146
double maximal_dt
Definition abstract_timestepper.hh:149
double minimal_dt
Definition abstract_timestepper.hh:148
double rel_tol
Definition abstract_timestepper.hh:151
double abs_tol
Definition abstract_timestepper.hh:150
Generated by