Access to ephemeris of celestial bodies

Spacecraft, Thruster, Tank, Propagator, CoordinateSystem, etc.

Re: Access to ephemeris of celestial bodies

Postby marchand » Wed May 08, 2013 7:38 pm

That only fixes the state print line, it does not fix the problem about accessing eccentricity. Internally , GMAT still thinks that X, Y, Z, VX, VY, and VZ are zeros. So, it can't compute eccentricity.

For example, even with your fix to the previous print line, if I uncomment the line:

Code: Select all
Report rf helioEarthSC.ECC

I still get the error that says

Code: Select all
"Parameter exception: *** Error *** Cannot convert from Cartesian to Keplerian because position vector is a zero vector".

I can't link the eccentricity calculation directly to the SunMJ2000Eq state, apparently, because this line:

Code: Select all
Report rf helioEarthSC.SunMJ2000Eq.ECC

gives this error:

Code: Select all
1: **** ERROR **** Interpreter Exception: Invalid dependency name "SunMJ2000Eq" found for Parameter type "ECC" in line:
   "  81: Report rf helioEarthSC.SunMJ2000Eq.ECC;"

Clearly it's computing the eccentricity based on helioEarthSC.X, helioEarthSC.Y, helioEarthSC.Z, helioEarthSC.VX, helioEarthSC.VY, and helioEarthSC.VZ, without the coordinate frame specification. However, since GMAT thinks those are zero, it's not able to compute the eccentricity.
Posts: 86
Joined: Tue Feb 21, 2012 2:42 pm

Re: Access to ephemeris of celestial bodies

Postby jjkparker » Thu May 09, 2013 4:50 pm

Just to be clear, are you trying to report the Sun-centered eccentricity of Earth?

This line seems to give that:
Code: Select all
Report rf earthSC.Sun.ECC;

earthSC is the Earth analog, and the ECC parameter takes a celestial body as a dependency (hence Sun).
Joel J. K. Parker
Flight dynamics engineer, GMAT team
Posts: 617
Joined: Thu Jan 07, 2010 9:48 pm
Location: NASA Goddard Space Flight Center, Greenbelt, MD


Return to GMAT Resources

Who is online

Users browsing this forum: No registered users and 2 guests