search

Class myphysicslab.lab.model.DiffEqSolverSubject

Provided By
Extends
All Implemented Interfaces

Makes available several myphysicslab.lab.model.DiffEqSolvers for advancing an ODESim simulation. Creates a ParameterString for changing which DiffEqSolver to use. The ParameterString can be hooked up to a ChoiceControl to allow the user to change the DiffEqSolver. Or you can directly invoke the #setDiffEqSolver method.

The EnergySystem is only needed for the experimental myphysicslab.lab.model.AdaptiveStepSolver. If EnergySystem is not provided then all DiffEqSolver options are still available except for AdaptiveStepSolver.

Parameters Created

new DiffEqSolverSubject( sim, energySystem, advanceStrategy, opt_name )

Parameters
simmyphysicslab.lab.model.ODESim

the simulation of interest

energySystem(myphysicslab.lab.model.EnergySystem|null)

the EnergySystem (usually same as sim), can be null

advanceStrategymyphysicslab.lab.model.ODEAdvance

the AdvanceStrategy being used to advance the simulation in time

opt_name(string|undefined)

name of this DiffEqSolverSubject.

Instance Methods

Static Properties

Type Definitions