Analyzing a Lunar Launch with Astrogator and ModelCenter

STK Premium (Space) or STK Enterprise
You can obtain the necessary licenses for this tutorial by contacting AGI Support at support@agi.com or 1-800-924-7244.

Required product install: The Ansys ModelCenter® model-based systems engineering software and the STK Plugin for ModelCenter are required to complete this tutorial.

ModelCenter installation prerequisites: The ModelCenter software requires the installation of a 64-bit version of Java, a 64-bit implementation of Python 3.x, and the installation of the thrift and six Python packages. See the ModelCenter Installation Prerequisites for more information.

This tutorial was written using version 2026 R1 of the Ansys ModelCenter® model-based systems engineering software.

The results of the tutorial may vary depending on the user settings and data enabled (online operations, terrain server, dynamic Earth data, etc.). It is acceptable to have different results.

Capabilities covered

This lesson covers the following capabilities of the Ansys Systems Tool Kit® (STK®) digital mission engineering software:

  • STK Pro
  • Astrogator
  • STK Analyzer

Problem statement

Engineers and mission planners want to analyze the relationship between Delta-V and the time it takes for a probe to get from a low-Earth orbit into a low-altitude lunar orbit. You not only want to minimize the Delta-V of the maneuver, but you also want to keep the transfer time within an acceptable range.

Solution

Use the STK/Astrogator® capability and the Analyzer capability, which is part of the Ansys ModelCenter® model-based systems engineering software, to perform a parametric study to determine which duration of the translunar injection (TLI) maneuver delivers the lowest Delta-V. Then. perform another trade study to see how the required thrust changes when launching over different days.

Using the starter scenario

To speed things up and allow you to focus on the portion of this exercise that teaches you how to use the ModelCenter software, a partially created scenario has been provided for you.

Opening the starter scenario

The starter scenario is included in your install.

  1. Launch the STK application ().
  2. Click Open a Scenario in the Welcome to STK dialog box.
  3. Browse to <Install Dir>\Data\Resources\stktraining\VDFs.
  4. Select Analyzer_LunarMission.vdf.
  5. Click Open.

Saving the VDF as a scenario file

Save and extract the VDF data in the form of a scenario folder. When you save a VDF in the STK application, it will save in its originating format. That is, if you open a VDF, the default save format will be a VDF (.vdf). If you want to save and extract a VDF as a scenario folder, you must change the file format by using the Save As feature. This will create a permanent scenario file complete with child objects and any additional files packaged with the VDF.

  1. Open the File menu when the starter scenario opens.
  2. Select Save As....
  3. Select the STK User folder in the navigation pane when the Save As dialog box opens.
  4. Select the Analyzer_LunarMission folder.
  5. A scenario folder with the same name as the VDF was created for you when you opened the VDF in the STK application. This folder contains the temporarily unpacked files from the VDF.

  6. Click Open.
  7. Select Scenario Files (*.sc) in the Save as type drop-down list.
  8. Select the Analyzer_LunarMission scenario file in the file browser.
  9. Click Save.
  10. Click Yes in the Confirm Save As Dialog box to overwrite the existing scenario file in the folder and to save your scenario.

When saving a VDF as a scenario folder, you should extract its contents to the scenario folder the STK application automatically creates for you in the STK User folder. See the Permanently Extracting a VDF as a Scenario Folder and VDF Setup Considerations pages for more information.

Save () often during this lesson!

Reviewing the starter scenario

The Lunar Probe is launched into a Low Earth Orbit (LEO) transfer orbit and propagates until the trans-lunar injection burn. After the burn, it is further propagated until it reaches perilune, the point at which a spacecraft in lunar orbit is closest to the moon. At that time, another burn is performed to place the Lunar Probe into orbit around the Moon. Take a moment to familiarize yourself with the starter scenario.

Lunar Probe 3D Graphics windows

Viewing the Launch Segment

The Mission Control Sequence (MCS) is the core of your space mission scenario. The MCS functions as a graphical programming language in which mission segments dictate how the Astrogator capability calculates the trajectory of the spacecraft based on the general settings that you specify for the MCS itself. Review the Mission Control Sequence for the Astrogator probe by viewing its Basic - Orbit properties.

  1. Right-click on LunarProbe () in the Object Browser.
  2. Select Properties ().
  3. Select Launch () in the MCS.
  4. Note that Epoch in the Launch panel is set to 0.0000000 EpDay.

Your scenario's analysis period is one epoch year, and your launch is set to occur at the very beginning of your analysis period. You will vary the launch epoch later in this tutorial.

Understanding the Target Moon Target Sequence

A Target Sequence runs the segments nested within it and applies profiles to the run according to its configuration. The Target sequence uses differential corrector profiles, which use a differential corrector algorithm, to achieve a set of values. The values that the differential corrector profiles target are called independent variables, or control parameters. The values that define the goals of the profiles are called dependent variables, or equality constraints. When the target sequence runs, it will change the values of the independent variables to achieve the goal. Review Target Moon's differential corrector profiles to better understand the goals of the Target Sequence.

  1. Select the Target Moon () Target Sequence in the Mission Control Sequence.
  2. Note that there are two differential corrector profiles for Target Moon.
  3. Select Differential Corrector in the Profiles field.
  4. Click Properties... () in the Profiles toolbar.
  5. Note the Control Parameters and the desired Equality Constraints (Results) when the Differential Corrector dialog box opens.
  6. This Differential Corrector profile gets the satellite close to the Moon. It targets delta right ascension (Delta_Right_Asc) and delta declination (Delta_Decination) as well as the duration from the TLI maneuver until the satellite reaches the point of lunar orbit insertion.

  7. Note the targeted duration of 259200 sec.
  8. You will analyze this three-day duration using ModelCenter.

  9. Close the Differential Corrector dialog box without making any changes.
  10. Select Differential Corrector1 in the Profiles field.
  11. Click Properties... () in the Profiles toolbar.
  12. Note the Control Parameters and the desired Equality Constraints (Results).
  13. The second differential corrector profile targets the B-plane and gets the satellite into the desired lunar orbit. Note that the value of BDotR is 5000 km to avoid having the orbit intersect the Moon.

Use the Astrogator capability to build a mission to the Moon and learn more about B-plane targeting in the Moon Mission Using B-Plane Targeting tutorial.

Changing the differential corrector

Make a change with this second differential corrector before moving on.

  1. Under Equality Constraints (Results), change the desired value of BDotR to 6000 km.
  2. Click OK to confirm your changes and to close the Differential Corrector dialog box.
  3. Click Run Entire Mission Control Sequence ().
  4. Three target status windows will appear that inform you of the results of each differential corrector run. There is a differential corrector for Establish Lunar Orbit that places the Lunar Probe in a circular orbit.

  5. Close each of the target status windows.

Updated 6,000 km BDotR

Creating a dependent variable for use in ModelCenter

In this exercise, you want to change the time of flight and determine the required TLI Delta-V.

  1. Return to the MCS.
  2. Select burn (), nested within the Target Moon () Target Sequence in the MCS.
  3. Click Results... below the MCS.
  4. Clicking this button opens the User-Selected Results dialog box, in which you can view and select calculation objects for Astrogator to report and target when defining a Differential Corrector Target Sequence profile. In this case, you are targeting the true altitude above Earth.

  5. Expand () Maneuver () in the Available Components list.
  6. Select DeltaV ().
  7. Click Insert Component ().
  8. Click OK to confirm your change and to close the User-Selected Results dialog box.
  9. Click OKto confirm your change and to close the Properties Browser.

Creating a new ModelCenter project

The Ansys ModelCenter software is designed for multidisciplinary analysis and design optimization. It allows you to automate complex workflows, integrate multiple engineering tools, and optimize designs within model-based systems engineering frameworks. Before opening the ModelCenter application, however, save your scenario and close out of the STK application.

  1. Save () your scenario.
  2. Close the STK application.
  3. Open the ModelCenter () application.
  4. Click Start a New Model in the Welcome to ModelCenter dialog box.
  5. Click Process when the What type of model would you like to create? dialog box opens.
  6. Navigate to your scenario folder (for example, C:\Users\<username>\Documents\STK_ODTK 13\Analyzer_LunarMission.
  7. Enter Analyzer_LunarMission in the File name field.
  8. Ensure the Save as type is set to the ModelCenter Model (Zip) (*.pxcz).
  9. Click Save.

Launching the STK Plugin for ModelCenter

The STK Plugin for ModelCenter imports a copy of the desired Scenario and opens it in an instance of the STK application. Launch the plugin by adding it to your workflow's analysis view from the Server Browser.

  1. Select favorites () in the Server Browser at the bottom of the window.
  2. Click and drag the STK component () into the dashed circle underneath "Drop items here to build the model" in the workflow's Analysis View.
  3. Select Analyzer_LunarMission.sc when the Open STK Scenario file dialog box opens.
  4. Click Open.
  5. After a few moments, the STK Analyzer window will open.

The Analyzer_LunarMission scenario file will open in the STK application in the background.

You can add any of the STK variables as ModelCenter input or output variables through the STK Analyzer window that appears. If you change the value of a variable in your scenario through the STK interface or the ModelCenter Component Tree, you should re-add the variable into ModelCenter or re-run the workflow before running any trade studies with the new value.

Setting up your analysis with Analyzer

Use the STK Analyzer window to configure the input and output variables available for further analysis with the Analyzer capability.

Selecting the Analyzer input variable

Your studies will focus on the Trip value (that is, the true anomaly) of the first propagate segment against the Delta-V of the maneuver segment. Select the Trip value as your input variable.

  1. Select LunarProbe () in the STK Variables tree.
  2. When you select an object in the STK Variables tree, all possible input variable candidates for that object are listed under the General tab and the Active Constraints tab in the STK Property Variables panel.

  3. Expand () the Propagator (Astrogator) () property in the STK Property Variables tree.
  4. Expand () the Target Moon () Target Sequence.
  5. Expand () the Profiles () property.
  6. Expand () the Differential_Corrector () property.
  7. Expand () the EqualityConstraints () property.
  8. Expand () the Duration () property.
  9. Select DesiredValue ().
  10. Move () DesiredValue () into the Analyzer Variables list.

Note that DesiredValue is listed under Inputs in the Analyzer Variables list.

Selecting the Analyzer output variables

Because you selected Delta-V to be calculated as a result for the differential corrector, it is available as an output variable in ModelCenter. Select it to add to your model.

  1. Return to Target Moon ().
  2. Expand () the burn () impulsive maneuver segment.
  3. Expand () the Results () property.
  4. Select DeltaV ().
  5. Move () DeltaV () into the Analyzer Variables list.
  6. Note that DeltaV is listed under Outputs in the Analyzer Variables list.

  7. Click OK to confirm your selections and to close the STK Analyzer window.
  8. This will also close the STK application, which had been running in the background.

Determining the impact of Delta-V on the TLI burn duration

The first study you will perform plots the duration of the TLI against the Delta-V required.

Using the Parametric Study tool

The Parametric Study tool runs a workflow through a sweep of values for some input variable. You can plot the resulting data to view trends.

  1. Expand () all the elements in the Component Tree.
  2. Click Parametric Study () in the Standard toolbar.
  3. Click and drag DesiredValue () from the Component Tree to the Design Variable field when the Parametric Study tool opens.
  4. Set the following Design Variable values:
  5. Option Value
    starting value 200000
    ending value 500000
    number of samples 7

    Note the step size is automatically set to 50000. The starting and ending values are in seconds. The computations can take a couple of minutes, so stick with a small number of steps for now. Setting the number of samples will determine step size; conversely, setting the step size will determine the number of samples.

  6. Click and drag DeltaV () from the Component Tree to the Responses field.
  7. Click Run....

Clicking Run... will open the Data Explorer, which is a tool used by Trade Study tools to display data while they are being collected from the STK scenario. While data are being collected, the Data Explorer displays a progress meter, a halt button, and the data.

Creating a 2D Line Plot

Once the trade study is complete and all data have been collected, the Data Explorer toolbar becomes active. The Data Explorer stores values for all variables in a workflow and special variables from the trade study. Some trade study tools will automatically launch a default plot window when the trade study runs. For other plots, you can create them from the Add View menu. Any variable in the workflow can be plotted against any other variable. For this study, you will create a 2D Line Plot. A 2D Line Plot displays an X-Y plot for variables in your model.

  1. Close the 2D Scatter Plot that opened when the trade study finished running.
  2. Click Add View () on the Table Page toolbar.
  3. Select 2D Line Plot () in the drop-down menu.
  4. Review the 2D Line Plot.
  5. Delta-V vs Desired value

Closing out your trade study

Close out your trade study for the next section.

  1. Close the 2D Line Plot and the Table page when you are finished.
  2. Click No when prompted to close your trade study without saving.
  3. Close the Parametric Study tool.

Studying the effect of launch epoch on Delta-V

The required thrust varies depending on the day on which the launch occurs. Using Analyzer's Carpet Plot Study Tool, vary the starting time by 30 days and analyze the amount of Delta-V required to reach the Moon over the course of a month.

Adding additional input variables

  1. Right-click on the STK_ODTK13 component in the Analysis View.
  2. Select Show Component's GUI () in the shortcut menu.
  3. This will open the STK scenario and STK Analyzer windows.
  4. Select LunarProbe () in the STK Variables tree.
  5. Expand () the Propagator (Astrogator) () property in the STK Property Variables tree.
  6. Expand () the Target Moon () Target Sequence.
  7. Expand () the Launch () Launch segment.
  8. Select Launch_Epoch ().
  9. Move () Select Launch_Epoch () into the Analyzer Variables list.
  10. Click OK to confirm your selections and to close the STK Analyzer window.

Using the Carpet Plot tool

A Carpet Plot is a means of displaying data dependent on two variables in a format that makes interpretation easier than normal multiple curve plots. A Carpet Plot can be thought of as a multidimensional Parametric Study. Setting the design variables in a Carpet Plot is similar to using the Parametric Study tool, except you can study two variables simultaneously instead of one.

  1. Expand () all the elements in the Component Tree.
  2. Click Carpet Plot () on the Analyzer toolbar to access the Carpet Plot tool.
  3. Click and drag DesiredValue () from the Component Tree to the first Design Variables field when the Carpet Plot tool opens.
  4. Set the following DesiredVlaue Design Variable values:
  5. Option Value
    From 200000
    To 500000
    Num Steps 7
  6. Click and drag Launch_Epoch () from the Component Tree the second Design Variables field.
  7. Set the following Launch_Epoch Design Variable values:
  8. Option Value
    From 0.00000000
    To 30
    Num Steps 30

    Note the step size is automatically set to 1.0345 day.

    Because launch windows rarely occur at the same time each day, having your step size be slightly more than 24 hours will give you a good spread of values with far fewer failed runs compared to running with precise 24-hour steps.

  9. Click and drag DeltaV () from the Component Tree to the Responses field.
  10. Click Run....
  11. You carpet plot will build over a series of 210 runs.

    Be patient; this trade study may take several hours to complete.

  12. Close the Carpet Plot that is automatically generated after the trade study has finished running.

Reviewing data in the Data Explorer

Review the runs of your model on the Table page. The Table page of the Data Explorer displays trade study data in a tabular form. It is the default window that is present for all trade studies. Cells are shaded differently depending on the associated variable's state. Input variables are shown with green text, valid values are displayed with black text, invalid values are displayed with gray text, and modified values are displayed with blue text. From the table it is possible to view and edit all values in your trade study and even to add and remove whole runs.

  1. Return to the Table page.
  2. Scroll through your table of runs.
  3. Note that several runs are colored red, which means they are invalid.

Table View with failed runs

In these instances, the differential correctors in your scenario's Target Sequences did not converge with the selected input variables, and so the run failed. You would not be able to launch at those times while meeting those targeted durations.

Creating a 3D Scatter Plot

A 3D Scatter plot displays an X-Y plot of variables in the workflow.

  1. Click Add View () on the Table Page toolbar.
  2. Select 3D Scatter Plot () in the drop-down menu.
  3. Click Dimensions in the Plot Options menu when the 3D Scatter Plot opens.
  4. Open the color drop-down list.
  5. Select DeltaV.
  6. Click anywhere on the plot to close the Plot Options menu.
  7. Review the 3D Scatter Plot.

3D Scatter Plot of Delta-V vs. Launch Epoch Vs. Desired Value

You can see that at around 715,000 epoch seconds (about eight days), the required Delta-V spikes dramatically, but the period around 1.3-1.5 million epoch seconds (about 15-17 days) requires the least Delta-V to achieve lunar orbit during those 30 days.

Creating an Interactions Effects Plot

An Interactions Effects Plot shows quantitatively how the selected output variable changes (on average) as each of the two design parameters is varied from its lower bound to its upper bound. The influence of all other design parameters is averaged out.

  1. Click Add View () on the 3D Scatter Plot toolbar.
  2. Select Interactions Effects Plot () in the drop-down menu.
  3. Click Dimensions in the Plot Options menu when the Interactions Effects Plot opens.
  4. Open the x drop-down list.
  5. Select Launch_Epoch.
  6. Open the y drop-down list.
  7. Select DesiredValue.
  8. Click anywhere on the plot to close the Plot Options menu.
  9. Review the plot.

Interaction Effects Plot of Delta-V vs. Desired Value Vs. Launch Epoch

You can see that the most consistent region with the lowest Delta-V is around the same time (15-17 days from the start of the epoch), centered around a desired value of 450,000 seconds. While the study did not provide information for specific launch windows during those periods, you can use the study to narrow a range of launch days to better meet your mission requirements.

Saving your work

Save your work and close out ModelCenter application.

  1. Close out any open plots, tools, and the Data Explorer window.
  2. Click No when prompted to close your trade study without saving.
  3. Click Save () to save your ModelCenter workflow.
  4. Close the ModelCenter application.

Summary

You began by opening a prebuilt scenario of a lunar probe launching from earth and entering lunar orbit, which was propagated using the Astrogator capability. Using the ModelCenter software, you examined the Target Sequence surround the trans-lunar injection maneuver to understand the variables you are studying. You then studied the duration of the TLI maneuver and its effect on the resulting Delta-V required for successful insertion into lunar orbit. Finally, you studied the impact launching on different days had on the Delta-V requirements.