1
$\begingroup$

I am failing with the most simple thing ever:

I want to store the SC states of a Propagation over 1 day inside an array!

So the basic script would look like this:

BeginMissionSequence;
Propagate 'Prop' JGM3_18_18(DefaultSC) {DefaultSC.ElapsedSecs = 86400};
GMAT an_array = DefaultSC.SMA;

So the question is:

How do I store the SC states of a propgation in GMAT in order to use them in the further mission sequence to calculate sth. In my case I would like to calculate the average eccentricity over this one day of propagation and use it later in the mission sequence.

Thanks a lot in advance!

Cheers

$\endgroup$
1
  • $\begingroup$ I don't think you can do that in GMAT itself. You could either export the states using a ReportFile or write a Python script that GMAT calls, which would then do this calculation. The scripting language of GMAT is restrictive $\endgroup$
    – ChrisR
    Commented Dec 15, 2022 at 18:28

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Browse other questions tagged or ask your own question.