Celestial Objects |
Top Previous Next |
FreeFlyer models solar system bodies (i.e. planets, moons, asteroids, or comets) via the CelestialObject. The eight planets, Earth's Moon, the Sun, and Pluto are built-in CelestialObjects. You can also create custom CelestialObjects to model other moons, asteroids, comets, etc. The gravitational effects of any CelestialObject can be included in any Spacecraft's Force Model. You can also use a CelestialObject as the central body for a Spacecraft, GroundStation, PointGroup, or Region.
This page covers information on configuring a CelestialObject's basic properties, its orbital motion, and its orientation model. For a summary of the available methods for computing shadows cast by a CelestialObject, and methods for computing when CelestialObjects are visible to other objects, see the Contact Method Summary.
To create a view centered on a CelestialObject, create a ViewWindow and edit the 3D viewpoint Source and Target properties, or the 2D viewpoint Mapped Body. For detailed information on configuring the display of a CelestialObject, including day/night textures, coastlines, and political boundaries, see the Globe Layers page in the Generating Output guide.
Celestial Object Body IDThe CelestialObject has a BodyID property which can be used to provide a numerical representation of a celestial body. This numerical representation can be used as input for a variety of FreeFlyer's properties and methods, such as Spacecraft.Azimuth(BodyID) or GroundStation.TrackingInterference(trackedSpacecraft, interferenceAngle, interferingCelestialObjectID).
The following body ID's are assigned to the default Solar System objects:
Custom CelestialObjects will have body ID's starting at 12 and assigned in the order they are created.
Note: When accessing the array properties of the ForceModel object listed below, the indexing for the default solar system bodies begins at 0. For example, to access the PlanetFieldDegree property for Mercury, you should use ForceModel.PlanetFieldDegree[0] (not 1).
Celestial Object Reference Frame IDsEvery CelestialObject holds a set of reference frames that can be used with various methods and functions. Each CelestialObject holds the following frames:
Please refer to the Orbit Reference Frames page for more information on the definition of these frames. You can access these reference frames through their IDs using syntax such as:
These reference frame IDs can be used to specify reference frames for conversion functions and methods including:
Celestial Object ConfigurationYou can create a custom CelestialObject in the Object Browser or through a FreeForm script editor. After creating a CelestialObject using the Object Browser, double-click it to edit. The Properties page prompts you to specify:
The Properties page of the CelestialObject GUI
To create a CelestialObject and set these basic properties in FreeFlyer script, follow these syntax examples:
You can set a custom CelestialObject as the Central Body for a Spacecraft object using this syntax:
Orbital Motion ModelUser-created CelestialObjects can be propagated using a TwoBody propagator or a SpiceEphemeris propagator. Built-in CelestialObjects (the eight planets, Earth's Moon, the Sun, and Pluto) can also be propagated using the internal DE State Advancer.
By default, built-in CelestialObjects such as the Earth use the DE State Advancer propagator, and user-created CelestialObjects will use a TwoBody propagator. To change the propagator for a CelestialObject, use the CelestialObject.SetPropagatorType() method.
Setting the Orbital Motion Model for built-in CelestialObjectsThe example below demonstrates how to change the propagator for a built-in CelestialObject from the default DE State Advancer to a TwoBody propagator. Note that we need to specify the initial orbital state to use with the TwoBody propagator:
To reset a built-in CelestialObject to use the default DE State Advancer again, use the following syntax:
Setting the Orbital Motion Model for user-created CelestialObjectsThe example below demonstrates how to configure a custom CelestialObject called Io to use a SpiceEphemeris propagator instead of the default TwoBody propagator:
You could also specify the propagator type to use when creating the CelestialObject, in the object's constructor:
When using a SpiceEphemeris as a CelestialObject's propagator, you can specify the SPICE files used via the CelestialObject Editor or through FreeFlyer Script, as shown below. You must set the name or NAIF ID of the target and observer celestial bodies in order to tell FreeFlyer which object to model. The example below models Jupiter's moon Io by loading a SPICE file and setting the Target to "Io" and the Observer to "Jupiter".
SPICE files are ephemerides created and maintained by the Navigation and Ancillary Information Facility (NAIF) Node of the Planetary Data System. For more information on SPICE files, including instructions on how to obtain them, see the SPICE Files page of the Ephemerides and AHF section of the Appendix.
SPICE ephemerides can also be used to define the motion of Spacecraft objects. For information about using SPICE ephemerides with Spacecraft objects, see the Using a SPICE Ephemeris page of the Spacecraft Propagation Guide.
Celestial Object Basic Properties Editor
Orientation ModelFreeFlyer uses the IAU/IAG analytical orientation models for most of the the built-in CelestialObjects (all except the Earth, Moon, and Sun). You can also use the IAU/IAG analytical models for user-created CelestialObjects, or specify your own analytical model.
Note: The orientation of the Earth is computed using the International Astronomical Union (IAU) 1976/80 nutation and precession model. The orientation of the Moon is computed using the Moon Principal Axis (PA) frame from the planetary ephemeris (DE file). See the Solar System page for more information.
The IAU/IAG Analytical Model can be used to model the orientation of many solar system objects, including but not limited to: Mercury, Venus, Earth, Moon, Mars, Phobos, Deimos, Jupiter, Io, Europa, Ganymede, Callisto, Saturn, Enceladus, Titan, Phoebe, Uranus, Neptune, Triton, Pluto, Charon, Ceres, Vesta, Eros, Itokawa, and more.
You can also configure a Custom Analytical Orientation Model, which allows you to specify alpha nought, delta nought, omega nought, and the omega rate that define the analytical attitude model. These values can be assigned through the CelestialObject Editor or through FreeForm Script as shown below:
You can also select No Orientation Updates for the orientation model, which means that the attitude of the Celestial Object will not change with time.
VisualizationYou can set the tail length and surface texture for a CelestialObject through the CelestialObject editor or FreeFlyer script, as shown below. For detailed information on configuring the display of CelestialObject, see the Globe Layers page.
Celestial Object Visualization Properties Editor
The image below shows a custom CelestialObject representing Io as it orbits the built-in CelestialObject Jupiter.
Custom CelestialObject Io orbiting Jupiter
See Also
|