Search in sources :

Example 1 with SecondaryODE

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

the class AbstractIntegratedPropagator method createODE.

/**
 * Create an ODE with all equations.
 * @param integ numerical integrator to use for propagation.
 * @param mathInitialState initial state
 * @return a new ode
 * @exception OrekitException if initial state cannot be mapped
 */
private ExpandableODE createODE(final ODEIntegrator integ, final ODEState mathInitialState) throws OrekitException {
    final ExpandableODE ode = new ExpandableODE(new ConvertedMainStateEquations(getMainStateEquations(integ)));
    // secondary part of the ODE
    for (int i = 0; i < additionalEquations.size(); ++i) {
        final AdditionalEquations additional = additionalEquations.get(i);
        final SecondaryODE secondary = new ConvertedSecondaryStateEquations(additional, mathInitialState.getSecondaryStateDimension(i + 1));
        ode.addSecondaryEquations(secondary);
    }
    return ode;
}
Also used : ExpandableODE(org.hipparchus.ode.ExpandableODE) SecondaryODE(org.hipparchus.ode.SecondaryODE)

Aggregations

ExpandableODE (org.hipparchus.ode.ExpandableODE)1 SecondaryODE (org.hipparchus.ode.SecondaryODE)1