Hi @elzbth ,
getDensity methods are mainly called in the
DragForce#acceleration methods which are themselves called in the
ForceModel#addContribution methods that are used during the integration process.
So no they are not the initial conditions of the satellite but the current date, position and frame of the spacecraft at a given point of the propagation.
Consider it an input given to you by Orekit; you don’t need to actually compute them, they are provided by the library.
If you write down your
getDensity methods and the other required methods of the
Atmosphere interface, then you just need to use your new Atmospheric model in a
DragForce myDragForceInstance = new DragForce(myAtmosphericModel, myDragSensitiveModel);
And then add this drag force instance to a numerical propagator:
Orekit will handle computing the date, position and frame inputs needed during the propagation.
More generally your Java IDE can help you find out the classes’ hierarchy or where the methods are called in the code.
For example in Eclipse you can right-click on a method and choose “Open Call Hierarchy” to see where the method is called in all your projects.
Or you can right-click on a class and choose “Open Type Hierarchy” to see the actual classes’ hierarchy it belongs to.
Hope this helps,