grss.libgrss.IntegBody#
- class grss.libgrss.IntegBody#
Bases:
Body
The IntegBody class contains the properties of an integrated body.
- __init__(*args, **kwargs)#
Overloaded function.
__init__(self: grss.libgrss.IntegBody, name: str, t0: float, mass: float, radius: float, cometaryState: list[float], ngParams: grss.libgrss.NongravParameters) -> None
Constructor for the IntegBody class.
- namestr
Name of the body.
- t0real
Initial MJD TDB time of the body. Same as the initial time of the propagator.
- massreal
Mass of the body.
- radiusreal
Radius of the body.
- cometaryStatelist of real
Initial Heliocentric Ecliptic Cometary state of the body.
- ngParamslibgrss.NongravParameters
Non-gravitational parameters of the body.
__init__(self: grss.libgrss.IntegBody, name: str, t0: float, mass: float, radius: float, pos: list[float], vel: list[float], ngParams: grss.libgrss.NongravParameters) -> None
Constructor for the IntegBody class.
- namestr
Name of the body.
- t0real
Initial MJD TDB time of the body. Same as the initial time of the propagator.
- massreal
Mass of the body.
- radiusreal
Radius of the body.
- poslist of real
Initial barycentric Cartesian position of the body.
- vellist of real
Initial barycentric Cartesian velocity of the body.
- ngParamslibgrss.NongravParameters
Non-gravitational parameters of the body.
Methods
__init__
(*args, **kwargs)Overloaded function.
prepare_stm
(self)Prepare the state transition matrix of the body for propagation.
set_J2
(self, J2, poleRA, poleDec)Set the J2 parameter of the body.
set_harmonics
(self, poleRA, poleDec, nZon, ...)Set the J2 parameter of the body.
Attributes
Sectoral coefficients of the spherical harmonics.
Zonal coefficients of the spherical harmonics.
J2 parameter of the body.
Tesseral coefficients of the spherical harmonics.
Distance tolerance for close approaches.
Partials of initial cartesian state with repect to initial input state of the body.
Initial barycentric Cartesian state of the body.
Initial input state of the body (Cometary heliocentric/Cartesian barycentric).
Whether the body is a cometary body.
Whether the body has spherical harmonics.
Whether the body is an integrated body.
Whether the body is a J2 body.
Whether the body is a major body (used for EIH PPN).
Whether the body has non-gravitational accelerations.
Whether the body is a PPN body.
Whether the body is thrusting.
Mass of the body.
Number of second derivatives of the body.
Order of the spherical harmonics.
Degree of the spherical harmonics.
Name of the body.
Non-gravitational parameters of the body.
Declination of the pole of the body.
Right ascension of the pole of the body.
Boolean for whether to propagate the state transition matrix of the body.
Radius of the body.
SPICE ID of the body.
State transition matrix of the body.
Initial MJD TDB time of the body.
- property C#
Sectoral coefficients of the spherical harmonics.
- property J#
Zonal coefficients of the spherical harmonics.
- property J2#
J2 parameter of the body.
- property S#
Tesseral coefficients of the spherical harmonics.
- property caTol#
Distance tolerance for close approaches.
- property dCartdState#
Partials of initial cartesian state with repect to initial input state of the body.
- property initCart#
Initial barycentric Cartesian state of the body.
- property initState#
Initial input state of the body (Cometary heliocentric/Cartesian barycentric).
- property isCometary#
Whether the body is a cometary body.
- property isHarmonic#
Whether the body has spherical harmonics.
- property isInteg#
Whether the body is an integrated body. Always True.
- property isJ2#
Whether the body is a J2 body.
- property isMajor#
Whether the body is a major body (used for EIH PPN).
- property isNongrav#
Whether the body has non-gravitational accelerations.
- property isPPN#
Whether the body is a PPN body.
- property isThrusting#
Whether the body is thrusting.
- property mass#
Mass of the body.
- property n2Derivs#
Number of second derivatives of the body.
- property nTes#
Order of the spherical harmonics.
- property nZon#
Degree of the spherical harmonics.
- property name#
Name of the body.
- property ngParams#
Non-gravitational parameters of the body.
- property poleDec#
Declination of the pole of the body.
- property poleRA#
Right ascension of the pole of the body.
- prepare_stm(self: grss.libgrss.IntegBody) None #
Prepare the state transition matrix of the body for propagation.
- Returns:
None – None.
- Return type:
NoneType
- property propStm#
Boolean for whether to propagate the state transition matrix of the body.
- property radius#
Radius of the body.
- set_J2(self: grss.libgrss.Body, J2: float, poleRA: float, poleDec: float) None #
Set the J2 parameter of the body.
- Parameters:
J2 (real) – J2 parameter of the body.
poleRA (real) – Right ascension of the pole of the body in degrees.
poleDec (real) – Declination of the pole of the body in degrees.
- Returns:
None – None.
- Return type:
NoneType
- set_harmonics(self: grss.libgrss.Body, poleRA: float, poleDec: float, nZon: int, nTes: int, J: list[float], C: list[list[float]], S: list[list[float]]) None #
Set the J2 parameter of the body.
- Parameters:
poleRA (real) – Right ascension of the pole of the body in degrees.
poleDec (real) – Declination of the pole of the body in degrees.
nZon (int) – Degree of the spherical harmonics.
nTes (int) – Order of the spherical harmonics.
J (list of real) – Zonal coefficients of the spherical harmonics.
C (list of list of real) – Sectoral coefficients of the spherical harmonics.
S (list of list of real) – Tesseral coefficients of the spherical harmonics.
- Returns:
None – None.
- Return type:
NoneType
- property spiceId#
SPICE ID of the body.
- property stm#
State transition matrix of the body.
- property t0#
Initial MJD TDB time of the body. Same as the initial time of the propagator.