
public class RungeKutta4 extends OdeSolver
currentTime, dependentVariables, stepSize| Constructor and Description |
|---|
RungeKutta4(Ode ode,
double tStart,
double tEnd,
double stepSize)
Create the solver for a give ode object and initial consitions.
|
| Modifier and Type | Method and Description |
|---|---|
void |
run()
Solve the system of ODEs.
|
addObserver, doThetaEvent, getDependentVariables, getDependetVariablesAsCsv, getNextThetaEventTime, registerNewThetapublic RungeKutta4(Ode ode, double tStart, double tEnd, double stepSize)
ode - the ode object containing the specification of the ode.tStart - the start time (the independent variable is assumed to be time)tEnd - the end time (the independent variable is assumed to be time)stepSize - the size of the step to be used in the solver.Copyright © 2015 University of Glasgow. All rights reserved.