|Top Previous Next|
By default, gravitational forces from Earth, the Moon, and the Sun are applied to the Spacecraft, but gravitation forces from other celestial bodies can be added to the Force Model for any Spacecraft. Planetary ephemeris data is extracted from a JPL planetary ephemeris file. The DE405.dat is the default file, but FreeFlyer is also packaged with DE200, DE418, and DE421. To configure FreeFlyer to use a different file, go to Options à Preferences à User Preferences and edit the Planetary File.
This page is divided into the following sections:
Point mass gravitational affects can be modeled on the Spacecraft for a number of celestial bodies, including custom Celestial objects, by editing the Spacecraft object, proceeding to the Force Models page, and clicking the checkbox next to the body, as shown in the image below.
Once the desired celestial body has been checked, ensure that the body is modeled as a point mass using the Field Type drop-down menu.
Spacecraft Force Model with Mars selected as a Point Mass
To enable point mass gravitational forces via FreeFlyer script, either of the following syntaxes may be used:
Where any of the following celestial bodies can be substituted for Mars:
and the  represents Mars. The bodies are assigned the following array elements:
By default, when a celestial body is enabled in a Spacecraft's Force Model, FreeFlyer will model all celestial objects as point masses, except for the Earth, which is modeled by default using a 4x4 Zonal and Tesseral potential. To change the field type for any celestial object, use the following syntax:
Where the  represents Earth, as indicated in the bulleted list above, and the PlanetFieldType can be one of the following:
The physical properties of each celestial body (Gravity Constant (mu), Body Radius, Reciprocal Flattening) that are used in calculations such as Spacecraft.Height or propagation of a Spacecraft with a point mass gravitational model are set through FreeFlyer script as shown in the examples for setting Earth.Mu below. If propagating a Spacecraft using a gravitational potential field file (see Zonals and Tesserals), the physical properties specified in the file are used for propagation of that Spacecraft.
•ForceModel Properties and Methods