// Adaptive step integrator
// with a minimum step of 0.001 and a maximum step of 1000
double minStep = 0.001;
double maxstep = 1000.0;
double positionTolerance = 10.0;
OrbitType propagationType = OrbitType.KEPLERIAN;
double[][] tolerances =
NumericalPropagator.tolerances(positionTolerance, initialOrbit, propagationType);
AdaptiveStepsizeIntegrator integrator =
new DormandPrince853Integrator(minStep, maxstep, tolerances[0], tolerances[1]);
InvalidArgsError: (<type 'DormandPrince853Integrator'>, '__init__', (0.001, 1000.0, <Object: [D@e50a6f6>, <Object: [D@14ec4505>))
# Import all the required libraries
#Initialize orekit and JVM
import orekit
orekit.initVM()
from orekit.pyhelpers import setup_orekit_curdir
setup_orekit_curdir()
#Apache math
from org.orekit.bodies import CelestialBodyFactory, CelestialBody
from org.orekit.errors import OrekitException
from org.orekit.frames import LOFType, Frame, FramesFactory, Transform
from org.orekit.orbits import KeplerianOrbit, Orbit, CartesianOrbit, OrbitType, PositionAngle
from org.orekit.propagation import Propagator, SpacecraftState
from org.orekit.propagation.analytical import tle, KeplerianPropagator
from org.orekit.propagation.numerical import NumericalPropagator, Jacobianizer, TimeDerivativesEquations
from org.orekit.time import TimeScalesFactory, AbsoluteDate, DateComponents, TimeComponents
from org.orekit.utils import IERSConventions, Constants, PVCoordinates, PVCoordinatesProvider
from org.orekit.python import PythonEventHandler, PythonOrekitFixedStepHandler
from org.orekit.utils import IERSConventions
from org.hipparchus.geometry.euclidean.threed import Vector3D
from org.hipparchus.geometry.euclidean.threed import RotationOrder
from org.hipparchus.ode.nonstiff import DormandPrince853Integrator, ClassicalRungeKuttaIntegrator
# Inertial frameinertialFrame = FramesFactory.getEME2000();# Initial dateutc = TimeScalesFactory.getUTC();initialDate = AbsoluteDate(2004, 01, 01, 23, 30, 00.000,utc);# Central attraction coefficientmu = 3.986004415e+14;# Initial orbita = 24396159.0; # semi major axis in meterse = 0.72831215; # eccentricityi = 0.122173; # inclinationomega = 3.14159; # perigee argumentraan = 4.55531; # right ascention of ascending nodelM = 0.0; # mean anomalyinitialOrbit = KeplerianOrbit(a, e, i, omega, raan, lM, PositionAngle.MEAN, inertialFrame, initialDate, mu)# Initial state definitioninitialState = SpacecraftState(initialOrbit);# Adaptive step integrator# with a minimum step of 0.001 and a maximum step of 1000minStep = 0.001;maxstep = 1000.0;positionTolerance = 10.0;propagationType = OrbitType.KEPLERIAN;tolerances = NumericalPropagator.tolerances(positionTolerance, initialOrbit, propagationType);integrator = DormandPrince853Integrator(minStep,maxstep,tolerances[0],tolerances[1]) # Error herepropagator = NumericalPropagator(integrator)propagator.setOrbitType(propagationType)
Attachment:
OrekitPassNumericalIntegration.ipynb
Description: Binary data