Search in sources :

Example 1 with DormandPrince54Integrator

use of org.hipparchus.ode.nonstiff.DormandPrince54Integrator in project Orekit by CS-SI.

the class PartialDerivativesEquationsTest method setUp.

/**
 * set up {@link #pde} and dependencies.
 *
 * @throws OrekitException on error
 */
@Before
public void setUp() throws OrekitException {
    propagator = new NumericalPropagator(new DormandPrince54Integrator(1, 500, 0.001, 0.001));
    forceModel = new MockForceModel();
    propagator.addForceModel(forceModel);
    pde = new PartialDerivativesEquations("pde", propagator);
    Vector3D p = new Vector3D(7378137, 0, 0);
    Vector3D v = new Vector3D(0, 7500, 0);
    pv = new PVCoordinates(p, v);
    state = new SpacecraftState(new CartesianOrbit(pv, eci, date, gm)).addAdditionalState("pde", new double[2 * 3 * 6]);
    pde.setInitialJacobians(state);
}
Also used : FieldSpacecraftState(org.orekit.propagation.FieldSpacecraftState) SpacecraftState(org.orekit.propagation.SpacecraftState) CartesianOrbit(org.orekit.orbits.CartesianOrbit) FieldVector3D(org.hipparchus.geometry.euclidean.threed.FieldVector3D) Vector3D(org.hipparchus.geometry.euclidean.threed.Vector3D) PVCoordinates(org.orekit.utils.PVCoordinates) DormandPrince54Integrator(org.hipparchus.ode.nonstiff.DormandPrince54Integrator) Before(org.junit.Before)

Aggregations

FieldVector3D (org.hipparchus.geometry.euclidean.threed.FieldVector3D)1 Vector3D (org.hipparchus.geometry.euclidean.threed.Vector3D)1 DormandPrince54Integrator (org.hipparchus.ode.nonstiff.DormandPrince54Integrator)1 Before (org.junit.Before)1 CartesianOrbit (org.orekit.orbits.CartesianOrbit)1 FieldSpacecraftState (org.orekit.propagation.FieldSpacecraftState)1 SpacecraftState (org.orekit.propagation.SpacecraftState)1 PVCoordinates (org.orekit.utils.PVCoordinates)1