ThirdBodyFunction#

class ansys.stk.core.stkobjects.astrogator.ThirdBodyFunction#

Bases: IComponentInfo, ICloneable

ThirdBody propagator function.

Overview#

set_mode_type

Set the third body gravity mode.

ephemeris_source

Source for the third body’s ephemeris.

ephemeris_source_warning

Return a warning message if the Ephemeris source and the gravity are not compatible.

mode

Get the third body gravity mode. The IComponentInfo object returned by this property can be cast to GravityFieldFunction or PointMassFunction depending on the selected ModeType.

mode_type

Get the third body gravity mode type.

third_body_name

Get or set the selected third body model.

Import detail#

from ansys.stk.core.stkobjects.astrogator import ThirdBodyFunction

Property detail#

property ThirdBodyFunction.ephemeris_source: EphemerisSource#

Source for the third body’s ephemeris.

property ThirdBodyFunction.ephemeris_source_warning: str#

Return a warning message if the Ephemeris source and the gravity are not compatible.

property ThirdBodyFunction.mode: IComponentInfo#

Get the third body gravity mode. The IComponentInfo object returned by this property can be cast to GravityFieldFunction or PointMassFunction depending on the selected ModeType.

property ThirdBodyFunction.mode_type: ThirdBodyMode#

Get the third body gravity mode type.

property ThirdBodyFunction.third_body_name: str#

Get or set the selected third body model.

Method detail#

ThirdBodyFunction.set_mode_type(self, mode: ThirdBodyMode) None#

Set the third body gravity mode.

Parameters:

mode : ThirdBodyMode

Returns:

None