I want to get the values of forces, especially the drag one, during the propagation, and I’m a little lost.
One method I thought is to call getAllForceModels() and then to call acceleration() on my DragForce model. However if I want that force value to be stored over a timespan (ephemeris-like), I would need to loop over propagate() as I’m doing this on propagator outside of the propagate() function.
I think there may be more efficient ways to retrieve those informations as it is already computed during the propagation. It seems that making my own AdditionalDataProvider could do the trick to store the computed forces inside the SpacecraftState Am I in the right direction, or is there a more efficient and direct approach to retrieve those forces that the propagator is already computing ?
Sounds like you could use a custom OrekitStepHandler.
Link it to the drag force, evaluate it at each step and store. This works for pretty much any time series you can think ok
Thanks for this suggestion Romain ! In the meantime I wrote something based on AdditionalDataProvider, I found more inspiration when I understood it was previously named AdditionalStateProvider