pararealml.operators.ode package

Submodules

pararealml.operators.ode.ode_operator module

class pararealml.operators.ode.ode_operator.ODEOperator(method: Union[str, Type[scipy.integrate._ivp.base.OdeSolver]], d_t: float, first_step: Optional[float] = None, max_step: float = inf, atol: float = 1e-06, rtol: float = 0.001)[source]

Bases: pararealml.operator.Operator

An ordinary differential equation solver using the SciPy library.

solve(ivp: pararealml.initial_value_problem.InitialValueProblem, parallel_enabled: bool = True) → pararealml.solution.Solution[source]

Returns the IVP’s solution.

Parameters:
  • ivp – the initial value problem to solve
  • parallel_enabled – whether in-time parallelization is enabled
Returns:

the solution of the IVP

Module contents

class pararealml.operators.ode.ODEOperator(method: Union[str, Type[scipy.integrate._ivp.base.OdeSolver]], d_t: float, first_step: Optional[float] = None, max_step: float = inf, atol: float = 1e-06, rtol: float = 0.001)[source]

Bases: pararealml.operator.Operator

An ordinary differential equation solver using the SciPy library.

solve(ivp: pararealml.initial_value_problem.InitialValueProblem, parallel_enabled: bool = True) → pararealml.solution.Solution[source]

Returns the IVP’s solution.

Parameters:
  • ivp – the initial value problem to solve
  • parallel_enabled – whether in-time parallelization is enabled
Returns:

the solution of the IVP