Crash during computation of mean elements for BrouwerLydanne

Hello,

On Orekit 12.0, I have a crash during the computation of the mean elements for the Brouwer-Lydanne propagator when I use a perfectly (or almost perfectly) circular osculating orbit as input.
During the iterations, the eccentricity becomes slightly negative and an exception is raised.
In the example, the exception is raised with eccentricity = 0 but with eccentricity = 1e-4, I still have the problem. With ecc=1e-3, it works.

Is there a problem in the way I try to use it ?

TestBrouwer.java (1.1 KB)

Exception in thread "main" org.orekit.errors.OrekitException: paramètre invalide eccentricity: -0,001 n'est pas dans l'intervalle [0, ∞]
	at org.orekit.orbits.KeplerianOrbit.checkParameterRangeInclusive(KeplerianOrbit.java:1366)
	at org.orekit.orbits.KeplerianOrbit.<init>(KeplerianOrbit.java:186)
	at org.orekit.propagation.analytical.BrouwerLyddanePropagator$BLModel.propagateParameters(BrouwerLyddanePropagator.java:1438)
	at org.orekit.propagation.analytical.BrouwerLyddanePropagator.computeMeanParameters(BrouwerLyddanePropagator.java:740)
	at org.orekit.propagation.analytical.BrouwerLyddanePropagator.resetInitialState(BrouwerLyddanePropagator.java:682)
	at org.orekit.propagation.analytical.BrouwerLyddanePropagator.<init>(BrouwerLyddanePropagator.java:533)
	at org.orekit.propagation.analytical.BrouwerLyddanePropagator.computeMeanOrbit(BrouwerLyddanePropagator.java:644)
	at org.orekit.propagation.analytical.BrouwerLyddanePropagator.computeMeanOrbit(BrouwerLyddanePropagator.java:600)
	at org.orekit.propagation.analytical.BrouwerLyddanePropagator.computeMeanOrbit(BrouwerLyddanePropagator.java:568)
	at TestBrouwer.main(TestBrouwer.java:23)

Thank you.

Christophe

Hi Christophe,

I believe you have encountered this known issue.
Unfortunately it’s still not solved.

Best,
Romain.

1 Like

I missed this issue and the thread.

Thank you Romain!

Actually @alberto-ferrero is currently trying to fix this, any help welcome :wink:

Cheers,
Romain.

1 Like