PropagatorSPICE#
- class ansys.stk.core.stkobjects.PropagatorSPICE#
Bases:
IPropagator
Class defining the SPICE propagator.
Overview#
Propagates the satelliteβs path using the specified time interval. |
Step size. Uses Time Dimension. |
|
Name of SPICE file. |
|
Body name. |
|
Get the segment list. |
|
Get a list of available body names. |
|
Get the propagatorβs ephemeris interval. |
Examples#
Set satellite propagator to SPICE and propagate
# Satellite satellite: Satellite object
# STKObjectRoot root: STK Object Model Root
satellite.set_propagator_type(PropagatorType.SPICE)
propagator = satellite.propagator
if os.name == "nt":
installPath = r"C:\Program Files\AGI\STK 12"
else:
installPath = os.environ["STK_INSTALL_DIR"]
bspPath = ["STKData", "Spice", "planets.bsp"]
propagator.spice = os.path.join(installPath, *bspPath) # Make sure this is a valid path
propagator.body_name = "MARS"
intvl = root.current_scenario.analysis_workbench_components.time_intervals.item("AnalysisInterval")
propagator.ephemeris_interval.set_implicit_interval(intvl) # Link to scenario period
propagator.step = 60.0
propagator.propagate()
Import detail#
from ansys.stk.core.stkobjects import PropagatorSPICE
Property detail#
- property PropagatorSPICE.segments: PropagatorSPICESegmentsCollection#
Get the segment list.
- property PropagatorSPICE.ephemeris_interval: ITimeToolTimeIntervalSmartInterval#
Get the propagatorβs ephemeris interval.