I came across a strange case When I try to use MasterMode.java from tutorials “.\orekit-tutorials-10.3\src\main\java\org\orekit\tutorials\propagation” and modify the orbit to what I want to test.
The initial kepler orbit as follow:
double a = 6872646.35761074;
double e = 0.00074728;
double i = FastMath.toRadians(97.55287354);
double omega = FastMath.toRadians(208.85302221);
double raan = FastMath.toRadians(91.37269145);
double lM =FastMath.toRadians(284.85658); //e < 0 when LM <= 284.85657; ???
When the lM be set to less than 284.85657, it will run error when execute to line 145:
final SpacecraftState finalState = propagator.propagate(initialDate.shiftedBy(630.));
it will report an error information:
invalid parameter eccentricity: -0 not in range [0, ∞]
But when the lM be set to 284.85658 or more than this value, it works.
I also find this phenomenon is correlated with the degree of gravity field, when I change the degree to 8, it also works, but when I change the degree to 10 or higher, it will run this error.
The attachment is the code I used.
Would you please check this problem? Thank you!
MasterMode.java (9.3 KB)
After I change the integrator from DormandPrince853Integrator to ClassicalRungeKuttaIntegrator, it works no matter what lM value or gravity field degree.