PropagatorSPICE#

class ansys.stk.core.stkobjects.PropagatorSPICE#

Bases: IPropagator

Class defining the SPICE propagator.

Overview#

propagate

Propagates the satellite’s path using the specified time interval.

step

Step size. Uses Time Dimension.

spice

Name of SPICE file.

body_name

Body name.

segments

Get the segment list.

available_body_names

Get a list of available body names.

ephemeris_interval

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.step: float#

Step size. Uses Time Dimension.

property PropagatorSPICE.spice: str#

Name of SPICE file.

property PropagatorSPICE.body_name: str#

Body name.

property PropagatorSPICE.segments: PropagatorSPICESegmentsCollection#

Get the segment list.

property PropagatorSPICE.available_body_names: list#

Get a list of available body names.

property PropagatorSPICE.ephemeris_interval: ITimeToolTimeIntervalSmartInterval#

Get the propagator’s ephemeris interval.

Method detail#

PropagatorSPICE.propagate(self) None#

Propagates the satellite’s path using the specified time interval.

Returns:

None