simulation_base.h Source File
|
CPP API
|
simulation_base.h
Go to the documentation of this file.
165 Eigen::Ref<Eigen::VectorX<FP>> advance(const Integrands&... fs, FP tmax, TimeSeries<FP>& results)
180 class SimulationBase<FP, M, SystemIntegrator<FP, Integrands...>> : public SimulationBase<FP, M, Integrands...>
Interface class defining the integration step used in a SystemIntegrator.
Definition: integrator.h:48
Eigen::Ref< Eigen::VectorX< FP > > advance(const Integrands &... fs, const FP tmax, FP &dt, TimeSeries< FP > &results)
Advance the integrator.
Definition: integrator.h:184
Core & get_integrator_core()
Access the IntegratorCore used for integration.
Definition: integrator.h:266
void set_integrator_core(std::unique_ptr< Core > &&core)
Change the IntegratorCore used for integration.
Definition: integrator.h:255
stores vectors of values at time points (or some other abstract variable) the value at each time poin...
Definition: time_series.h:58
Eigen::Ref< Eigen::VectorX< FP > > advance(const Integrands &... fs, FP tmax, TimeSeries< FP > &results)
Run the simulation up to a given time.
Definition: simulation_base.h:165
FP & get_dt()
Returns the step size used by the integrator.
Definition: simulation_base.h:147
SimulationBase(const SimulationBase &other)
Definition: simulation_base.h:63
const Model & get_model() const
Get a reference to the model owned and used by the simulation.
Definition: simulation_base.h:131
void set_integrator_core(std::unique_ptr< Core > &&integrator_core)
Set the IntegratorCore used in the simulation.
Definition: simulation_base.h:86
TimeSeries< FP > m_result
The simulation results.
Definition: simulation_base.h:174
Model & get_model()
Get a reference to the model owned and used by the simulation.
Definition: simulation_base.h:135
FP m_dt
The time step used (and possibly set) by m_integrator::m_core::step.
Definition: simulation_base.h:175
std::unique_ptr< Model > m_model
The model defining the ODE system and initial conditions.
Definition: simulation_base.h:171
const TimeSeries< FP > & get_result() const
Returns the simulation result describing the model population in each time step.
Definition: simulation_base.h:120
TimeSeries< FP > & get_result()
Returns the simulation result describing the model population in each time step.
Definition: simulation_base.h:116
const FP & get_dt() const
Returns the step size used by the integrator.
Definition: simulation_base.h:151
Core & get_integrator_core()
Access the IntegratorCore used in the simulation.
Definition: simulation_base.h:96
SimulationBase(Model const &model, std::unique_ptr< Core > &&integrator_core, FP t0, FP dt)
Create a SimulationBase.
Definition: simulation_base.h:55
SystemIntegrator< FP, Integrands... > m_integrator
Integrates the DerivFunction (see advance) and stores resutls in m_result.
Definition: simulation_base.h:173
SimulationBase & operator=(const SimulationBase &other)
Definition: simulation_base.h:71
const Core & get_integrator_core() const
Access the IntegratorCore used in the simulation.
Definition: simulation_base.h:100
A collection of classes to simplify handling of matrix shapes in meta programming.
Definition: models/abm/analyze_result.h:30
Definition: io.h:94
Generated by