Example usage for org.apache.commons.math3.ode.nonstiff HighamHall54Integrator HighamHall54Integrator

List of usage examples for org.apache.commons.math3.ode.nonstiff HighamHall54Integrator HighamHall54Integrator

Introduction

In this page you can find the example usage for org.apache.commons.math3.ode.nonstiff HighamHall54Integrator HighamHall54Integrator.

Prototype

public HighamHall54Integrator(final double minStep, final double maxStep, final double[] vecAbsoluteTolerance,
        final double[] vecRelativeTolerance) 

Source Link

Document

Simple constructor.

Usage

From source file:org.orekit.propagation.conversion.HighamHall54IntegratorBuilder.java

/** {@inheritDoc} */
public AbstractIntegrator buildIntegrator(final Orbit orbit) throws PropagationException {
    final double[][] tol = NumericalPropagator.tolerances(dP, orbit, OrbitType.CARTESIAN);
    return new HighamHall54Integrator(minStep, maxStep, tol[0], tol[1]);
}

From source file:rcdemo.simulator.ODESimulator.java

@Override
protected void reset() {
    Track track = state.getTrack();
    TrackODE ode2 = new TrackODE(track,
            new CombinedForceModel().add(ConstantForceModel.createGravityForceModel(1, 9.81), 1)
                    .add(new FrictionForceModel(), 0 * 0.01));
    double v0 = state.getV0();
    double dxds = track.getDxDs(0).getNorm();
    double dsdt0 = v0 / dxds;
    ArrayRealVector y = new ArrayRealVector(new double[] { 0, dsdt0 });
    StateIntegrator.setDefaultIntegrator(new HighamHall54Integrator(1e-6, 1, 1e-8, 1e-8));
    stateInt = new StateIntegrator(ode2, y);
}

From source file:ummisco.gaml.extensions.maths.ode.utils.solver.HighamHall54Solver.java

public HighamHall54Solver(final double minStep, final double maxStep, final double scalAbsoluteTolerance,
        final double scalRelativeTolerance, final GamaMap<String, IList<Double>> integrated_val) {
    super((minStep + maxStep) / 2,
            new HighamHall54Integrator(minStep, maxStep, scalAbsoluteTolerance, scalRelativeTolerance),
            integrated_val);
}