Lunar orbits definition


I wondered if there was an easy way to define lunar orbits via Orekit, defining the Moon as the central object?

Thank you very much for your answer!



You just have to set up your orbit using an inertial frame centered at Moon and making sure you use the Moon central attraction coefficient. This can be done with

  CelestialBody moon     = CelestialBodyFactory().getMoon();
  Frame moonCentered = moon.getInertiallyOrientedFrame;
 double gm                     = moon.getGM();

If you want to use a numerical propagator, take care to get a Moon gravity field (you can get one from You will also need to consider the Earth as a perturbing body in the ThirdBodyAttraction force model.