List of usage examples for org.apache.commons.math3.ode.nonstiff EulerIntegrator EulerIntegrator
public EulerIntegrator(final double step)
From source file:de.bund.bfr.math.IntegratorFactory.java
public FirstOrderIntegrator createIntegrator() { switch (type) { case EULER:/*w ww. j av a 2 s .co m*/ return new EulerIntegrator(step); case GILL: return new GillIntegrator(step); case MIDPOINT: return new MidpointIntegrator(step); case RUNGE_KUTTA: return new ClassicalRungeKuttaIntegrator(step); case THREE_EIGHTHES: return new ThreeEighthesIntegrator(step); default: throw new RuntimeException("Unknown type of IntegratorFactory: " + type); } }
From source file:de.tuberlin.uebb.jdae.simulation.DefaultSimulationRuntime.java
@Override public SimulationOptions simulateFixedStep(ExecutableDAE dae, double stop_time, final int steps) { final double stepSize = (stop_time / steps); final FirstOrderIntegrator i = new EulerIntegrator(stepSize); final SimulationOptions options = new SimulationOptions(0.0, stop_time, stepSize * 1e-3, stepSize, stepSize, i, new TObjectDoubleHashMap<Unknown>()); simulate(dae.withOptions(options));/*from ww w . j av a 2 s . co m*/ return options; }
From source file:org.orekit.propagation.conversion.EulerIntegratorBuilder.java
/** {@inheritDoc} */ public AbstractIntegrator buildIntegrator(final Orbit orbit) { return new EulerIntegrator(step); }
From source file:travelTimesBack.Eulero.java
/** * Instantiates a new Eulero solver.// ww w . j a va 2s . c om * * @param dt: the integration time * @param ode: is the ordinary differential equation to be solved * @param y: is a vector with the boundary conditions */ public Eulero(double dt, FirstOrderDifferentialEquations ode, double[] y) { this.ode = ode; this.y = y; this.dt = dt; this.integrator = new EulerIntegrator(1); }
From source file:ummisco.gaml.extensions.maths.ode.utils.solver.EulerSolver.java
public EulerSolver(final double step, final GamaMap<String, IList<Double>> integrated_val) { super(step, new EulerIntegrator(step), integrated_val); }