ODESolver

class ODESolver(*args)

ODE solver base class.

Solve an explicit first-order differential equation in the form y' = f(t, y)

Methods

getClassName() Accessor to the object’s name.
getId() Accessor to the object’s id.
getImplementation(*args) Accessor to the underlying implementation.
getName() Accessor to the object’s name.
getTransitionFunction() Transition function accessor.
setName(name) Accessor to the object’s name.
setTransitionFunction(transitionFunction) Transition function accessor.
solve(initialState, timeGrid) Solve ODE.
__init__(*args)

x.__init__(…) initializes x; see help(type(x)) for signature

getClassName()

Accessor to the object’s name.

Returns:

class_name : str

The object class name (object.__class__.__name__).

getId()

Accessor to the object’s id.

Returns:

id : int

Internal unique identifier.

getImplementation(*args)

Accessor to the underlying implementation.

Returns:

impl : Implementation

The implementation class.

getName()

Accessor to the object’s name.

Returns:

name : str

The name of the object.

getTransitionFunction()

Transition function accessor.

Returns:

transitionFunction : FieldFunction

Transition function.

setName(name)

Accessor to the object’s name.

Parameters:

name : str

The name of the object.

setTransitionFunction(transitionFunction)

Transition function accessor.

Parameters:

transitionFunction : FieldFunction

Transition function.

solve(initialState, timeGrid)

Solve ODE.

Parameters:

initialState : sequence of float

Initial value of the equation

timeGrid : sequence of float

Time steps

Returns:

values : Sample

The solution of the equation at grid points.