Class RK4Integrator#
Defined in File Integrator.h
Inheritance Relationships#
Base Type#
public Karana::Math::Integrator(Class Integrator)
Class Documentation#
-
class RK4Integrator : public Karana::Math::Integrator#
Fixed-step Runge-Kutta 4th order integrator.
Public Functions
-
RK4Integrator(size_t nstates, DerivativeFunction f, const IntegratorOptions *options = nullptr)#
Constructor
-
virtual void hardReset(size_t nstates) override#
Reset the state size.
- Parameters:
nstates – the new state size
-
virtual Ktime advanceTo(const Ktime &t_end) override#
Method to advance the sytem state to a specified time.
- Parameters:
to_t – the desired end time
- Returns:
the actual end time
-
inline virtual const std::string &typeString() const override#
Return the integrator type as a string.
- Returns:
the integrator type
-
virtual std::unique_ptr<IntegratorOptions> getOptions() override#
Get the options associated with the integrator.
- Returns:
The options associated with the integrator.
-
virtual IntegratorType getIntegratorType() const override#
Get the IntegratorType for this integrator.
- Returns:
The IntegratorType for this integrator.
-
RK4Integrator(size_t nstates, DerivativeFunction f, const IntegratorOptions *options = nullptr)#