Uploaded image for project: 'GMAT'
  1. GMAT
  2. GMT-4576

Bad error message when setting HyperbolicRadPer

    Details

      Description

      The attached script does this in the mission sequence:

      InAsymSat.HyperbolicRadPer = 1.0660426230389136e+004;
      

      starting from the default mission.

      The generated error is:

      Utility Exception: A nearly circular orbit (ECC = -0.4822743213913474) was encountered while converting from the the Incoming Asymptote elements to the Cartesian. The Incoming Asymptote elements are undefined for a circular orbit.
       in
         "InAsymSat.HyperbolicRadPer = 1.0660426230389136e+004;"
      

      There's a numeric issue going on here, but the message makes no sense. The given value for ECC is not circular.

      The workaround is to set C3Energy first, then it works fine.

      
      

        Gliffy Diagrams

          Attachments

            Activity

            Hide
            jjkparker Joel Parker added a comment -

            The original ordering is setting the new HyperbolicRadPer to be much greater than the default apoapsis, which must be involved in the error.

            Setting C3Energy first resizes the apoapsis, allowing the periapsis to be set.

            Show
            jjkparker Joel Parker added a comment - The original ordering is setting the new HyperbolicRadPer to be much greater than the default apoapsis, which must be involved in the error. Setting C3Energy first resizes the apoapsis, allowing the periapsis to be set.

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated: