search

Class myphysicslab.lab.model.SimpleAdvance

Provided By
All Implemented Interfaces

Advances an ODESim in a single step without doing any collision handling.

The #advance method calls myphysicslab.lab.model.DiffEqSolver#step to advance the Simulation state, and then myphysicslab.lab.model.Simulation#modifyObjects to update the state of the SimObjects.

new SimpleAdvance( sim, opt_diffEqSolver )

Parameters
simmyphysicslab.lab.model.ODESim

the Simulation to advance thru time

opt_diffEqSolver(myphysicslab.lab.model.DiffEqSolver|undefined)

the DiffEqSolver to use for advancing the simulation; default is RungeKutta.

Instance Methods