pogona.Integration

class pogona.Integration(value)[source]

Bases: enum.Enum

An enumeration.

Attributes

EULER

RUNGE_KUTTA_4

RUNGE_KUTTA_FEHLBERG

An embedded Runge-Kutta method; allows for adaptive time stepping.

RUNGE_KUTTA_FEHLBERG_4

For testing purposes: Uses RUNGE_KUTTA_FEHLBERG for computation, but uses only the lower-order result for movement prediction.

RUNGE_KUTTA_FEHLBERG_45

An embedded Runge-Kutta method; allows for adaptive time stepping.

__init__()

Methods

supports_time_step_control(integration)

param integration

static supports_time_step_control(integration: pogona.integration.Integration)[source]
Parameters

integration

Returns

True iff the given integration supports adaptive time step control.

EULER = 1
RUNGE_KUTTA_4 = 2
RUNGE_KUTTA_FEHLBERG = 3

An embedded Runge-Kutta method; allows for adaptive time stepping. Equivalent to RUNKE_KUTTA_FEHLBERG_45.

RUNGE_KUTTA_FEHLBERG_4 = 4

For testing purposes: Uses RUNGE_KUTTA_FEHLBERG for computation, but uses only the lower-order result for movement prediction.

RUNGE_KUTTA_FEHLBERG_45 = 5

An embedded Runge-Kutta method; allows for adaptive time stepping. Compares 4-th order with 5-th order to get an error measure.