Spacecraft aerodynamics and trajectory simulation during aerobraking