Audience |
Advanced |
Length |
75 minutes |
Prerequisites |
Complete Simulating an Orbit, Simple Orbit Transfer and a basic understanding of B-Planes and their usage in targeting is required. |
Script File |
|
Note
One of the most challenging problems in space mission design is to design an interplanetary transfer trajectory that takes the spacecraft within a very close vicinity of the target planet. One possible approach that puts the spacecraft close to a target planet is by targeting the B-Plane of that planet. The B-Plane is a planar coordinate system that allows targeting during a gravity assist. It can be thought of as a target attached to the assisting body. In addition, it must be perpendicular to the incoming asymptote of the approach hyperbola. Figure 8.1, “Geometry of the B-Plane as seen from a viewpoint perpendicular to the B-Plane” and Figure 8.2, “The B-vector as seen from a viewpoint perpendicular to orbit plane” show the geometry of the B-Plane and B-vector as seen from a viewpoint perpendicular to orbit plane. To read more on B-Planes, please consult the GMATMathSpec document. A good example involving the use of B-Plane targeting is a mission to Mars. Sending a spacecraft to Mars can be achieved by performing a Trajectory Correction Maneuver (TCM) that targets Mars B-Plane. Once the spacecraft gets close to Mars, then an orbit insertion maneuver can be performed to capture into Mars orbit.
In this tutorial, we will use GMAT to model a mission to Mars. Starting from an out-going hyperbolic trajectory around Earth, we will perform a TCM to target Mars B-Plane. Once we are close to Mars, we will adjust the size of the maneuver to perform a Mars Orbit Insertion (MOI) to achieve a final elliptical orbit with an inclination of 90 degrees. Meeting these mission objectives requires us to create two separate targeting sequences. In order to focus on the configuration of the two targeters, we will make extensive use of the default configurations for spacecraft, propagators, and maneuvers.
The first target sequence employs maneuvers in the Earth-based Velocity (V), Normal (N) and Bi-normal (B) directions and includes four propagation sequences. The purpose of the maneuvers in VNB directions is to target BdotT and BdotR components of the B-vector. BdotT is targeted to 0 km and BdotR is targeted to a non-zero value to generate a polar orbit that has inclination of 90 degrees. BdotR is targeted to -7000 km to avoid having the orbit intersect Mars, which has a radius of approximately 3396 km.
The second target sequence employs a single, Mars-based anti-velocity direction (-V) maneuver and includes one propagation sequence. This single anti-velocity direction maneuver will occur at periapsis. The purpose of the maneuver is to achieve MOI by targeting position vector magnitude of 12,000 km at apoapsis. The basic steps of this tutorial are:
-
Modify the
DefaultSC
to define spacecraft’s initial state. The initial state is an out-going hyperbolic trajectory that is with respect to Earth. -
Create and configure a
Fuel Tank
resource. -
Create two
ImpulsiveBurn
resources with default settings. -
Create and configure three
Propagators:
NearEarth, DeepSpace and NearMars -
Create and configure
DifferentialCorrector
resource. -
Create and configure three
DefaultOrbitView
resources to visualize Earth, Sun and Mars centered trajectories. -
Create and configure three
CoordinateSystems:
Earth, Sun and Mars centered. -
Create first
Target
sequence to target BdotT and BdotR components of the B-vector. -
Create second
Target
sequence to implement MOI by targeting position magnitude at apoapsis. -
Run the mission and analyze the results.
For this tutorial, you’ll need GMAT open, with the default mission loaded. To load the default mission, click New Mission () or start a new GMAT session. DefaultSC will be modified to set spacecraft’s initial state as an out-going hyperbolic trajectory.
We need to create a fuel tank in order to see how much fuel is expended after each impulsive burn. We will modify DefaultSC resource later and attach the fuel tank to the spacecraft.
-
In the Resources tree, right-click the Hardware folder, point to Add and click ChemicalTank. A new resource called ChemicalTank1 will be created.
-
Right-clickChemicalTank1 and click Rename.
-
In theRename box, type MainTank and click OK.
-
Double click onMainTank to edit its properties.
-
Set the values shown in the table below.
-
Click OK to save these changes.
We need to make minor modifications to DefaultSC in order to define spacecraft’s initial state and attach the fuel tank to the spacecraft.
-
In the Resources tree, under Spacecraft folder, right-click DefaultSC and click Rename.
-
In the Rename box, type MAVEN and click OK.
-
Double-click on MAVEN to edit its properties. Make sure Orbit tab is selected.
-
Set the values shown in the table below.
Table 8.2. MAVEN settings
Field Value Epoch Format UTCGregorian Epoch 18 Nov 2013 20:26:24.315
Coordinate System EarthMJ2000Eq State Type Keplerian SMA under Elements -32593.21599272796
ECC under Elements 1.202872548116185
INC under Elements 28.80241266404142
RAAN under Elements 173.9693759331483
AOP under Elements 240.9696529532764
TA under Elements 359.9465533778069
-
Click on Tanks tab now.
-
Under Available Tanks, you'll see MainTank. This is the fuel tank that we created earlier.
-
We attach MainTank to the spacecraft MAVEN by bringing it under Selected Tanks box. Select MainTank under Available Tanks and bring it over to the right-hand side under the Selected Tanks.
-
Click OK to save these changes.
We’ll need two ImpulsiveBurn resources for this tutorial. Below, we’ll rename the default ImpulsiveBurn and create a new one. We’ll also select the fuel tank that was created earlier in order to access fuel for the burns.
-
In the Resources tree, under the Burns folder, right-click DefaultIB and click Rename.
-
In the Rename box, type TCM, an acronym for Trajectory Correction Maneuver and click OK to edit its properties.
-
Double-Click TCM to edit its properties to edit its properties.
-
Check Decrement Mass under Mass Change.
-
For Tank field under Mass Change, select MainTank from drop down menu.
-
Click OK to save these changes.
-
Right-click theBurns folder, point to Add, and click ImpulsiveBurn. A new resource called ImpulsiveBurn1 will be created.
-
Rename the new ImpulsiveBurn1 resource to MOI, an acronym for Mars Orbit Insertion and click OK.
-
Double-click MOI to edit its properties.
-
For Origin field under Coordinate System, select Mars.
-
Check Decrement Mass under Mass Change.
-
For Tank field under Mass Change, select MainTank from the drop down menu.
-
Click OK to save these changes.
We’ll need to add three propagators for this tutorial. Below, we’ll rename the default DefaultProp and create two more propagators.
-
In the Resources tree, under the Propagators folder, right-click DefaultProp and click Rename.
-
In the Rename box, type NearEarth and click OK.
-
Double-click on NearEarth to edit its properties.
-
Set the values shown in the table below.
Table 8.3. NearEarth settings
Field Value Initial Step Size under Integrator 600
Accuracy under Integrator 1e-013
Min Step Size under Integrator 0
Max Step Size under Integrator 600
Model under Gravity JGM-2 Degree under Gravity 8
Order under Gravity 8
Atmosphere Model under Drag None Point Masses under Force Model Add Luna and Sun Use Solar Radiation Pressure under Force Model Check this field
-
Click on OK to save these changes.
-
Right-click the Propagators folder and click Add Propagator. A new resource called Propagator1 will be created.
-
Rename the new Propagator1 resource to DeepSpace and click OK.
-
Double-click DeepSpace to edit its properties.
-
Set the values shown in the table below.
Table 8.4. DeepSpace settings
Field Value Type under Integrator PrinceDormand78 Initial Step Size under Integrator 600
Accuracy under Integrator 1e-012
Min Step Size under Integrator 0
Max Step Size under Integrator 864000
Central Body under Force Model Sun Primary Body under Force Model None Point Masses under Force Model Add Earth, Luna, Sun, Mars, Jupiter, Neptune, Saturn, Uranus, Venus Use Solar Radiation Pressure under Force Model Check this field
-
Click OK to save these changes.
-
Right-click the Propagators folder and click Add Propagator. A new resource called Propagator1 will be created.
-
Rename the new Propagator1 resource to NearMars and click OK.
-
Double-click on NearMars to edit its properties.
-
Set the values shown in the table below.
Table 8.5. NearMars settings
Field Value Type under Integrator PrinceDormand78 Initial Step Size under Integrator 600
Accuracy under Integrator 1e-012
Min Step Size under Integrator 0
Max Step Size under Integrator 86400
Central Body under Force Model Mars Primary Body under Force Model Mars Model under Gravity Mars-50C Degree under Gravity 8
Order under Gravity 8
Atmosphere Model under Drag None Point Masses under Force Model Add Sun Use Solar Radiation Pressure under Force Model Check this field
-
Click OK to save the changes.
Two Target
sequences that we will create
later need a DifferentialCorrector
resource to
operate, so let’s create one now. We'll leave the settings at their
defaults.
-
In the Resources tree, expand the Solvers folder if it isn’t already.
-
Right-click the Boundary Value Solvers folder, point to Add, and click DifferentialCorrector. A new resource called DC1 will be created.
-
Rename the new DC1 resource to DefaultDC and click OK.
The BdotT and BdotR constraints that we will define later under the first Target sequence require us to create a coordinate system. Orbit View resources that we will create later also need coordinate system resources to operate. We will create Sun and Mars centered coordinate systems. So let’s create them now.
-
In the Resources tree, right-click the Coordinate Systems folder and click Add Coordinate System. A new Dialog box is created with a title New Coordinate System.
-
Type SunEcliptic under Coordinate System Name box.
-
Under Origin field, select Sun.
-
For Type under Axes, select MJ2000Ec.
-
Click OK to save these changes. You’ll see that a new coordinate system SunEcliptic is created under Coordinate Systems folder.
-
Right-click the Coordinate Systems folder and click Add Coordinate System. A new Dialog Box is created with a title New Coordinate System.
-
Type MarsInertial under Coordinate System Name box.
-
Under Origin field, select Mars.
-
For Type under Axes, select BodyInertial.
-
Click OK to save these changes. You’ll see that a new coordinate system MarsInertial is created under Coordinate Systems folder.
We’ll need three DefaultOrbitView resources for this tutorial. Below, we’ll rename the default DefaultOrbitView and create two new ones. We need three graphics windows in order to visualize spacecraft’s trajectory centered around Earth, Sun and then Mars
-
In the Resources tree, under Output folder, right-click DefaultOrbitView and click Rename.
-
In the Rename box, type EarthView and click OK.
-
In the Output folder, delete DefaultGroundTrackPlot.
-
Double-click EarthView to edit its properties.
-
Set the values shown in the table below.
Table 8.6. EarthView settings
Field Value View Scale Factor under View Definition 4
View Point Vector boxes, under View Definition 0, 0, 30000
-
Click OK to save these changes.
-
Right-click the Output folder, point to Add, and click OrbitView. A new resource called OrbitView1 will be created.
-
Rename the new OrbitView1 resource to SolarSystemView and click OK.
-
Double-click SolarSystemView to edit its properties.
-
Set the values shown in the table below.
Table 8.7. SolarSystemView settings
Field Value From Celestial Object under View Object, add following objects to Selected Celestial Object box Mars, Sun (Do not remove Earth) Coordinate System under View Definition SunEcliptic View Point Reference under View Definition Sun View Point Vector boxes, under View Definition 0, 0, 5e8
View Direction under View Definition Sun Coordinate System under View Up Definition SunEcliptic
-
Click OK to save these changes.
-
Right-click the Output folder, point to Add, and click OrbitView. A new resource called OrbitView1 will be created.
-
Rename the new OrbitView1 resource to MarsView and click OK.
-
Double-click MarsView to edit its properties.
-
Set the values shown in the table below.
Table 8.8. MarsView settings
Field Value From Celestial Object under View Object, add following object to Selected Celestial Object box Mars (You don’t have to remove Earth) Coordinate System under View Definition MarsInertial View Point Reference under View Definition Mars View Point Vector boxes, under View Definition 22000, 22000, 0
View Direction under View Definition Mars
Coordinate System under View Up Definition MarsInertial
-
Click OK to save the changes.
Now we will configure first Target sequence to solve for the maneuver values required to achieve BdotT and BdotR components of the B-vector. BdotT will be targeted to 0 km and BdotR is targeted to a non-zero value in order to generate a polar orbit that will have an inclination of 90 degrees. To allow us to focus on the first Target sequence, we’ll assume you have already learned how to propagate an orbit by having worked through Chapter 5, Simulating an Orbit tutorial.
The second Target sequence will perform the MOI maneuver so that the spacecraft can orbit around Mars, but that sequence will be created later.
Now create the commands necessary to perform the first Target sequence. Figure 8.3, “Mission Sequence for the First Target sequence” illustrates the configuration of the Mission tree after you have completed the steps in this section. We’ll discuss the first Target sequence after it has been created.
To create the first Target
sequence:
-
Click on the Mission tab to show the Mission tree.
-
You’ll see that there already exists a Propagate1 command. We need to delete this command
-
Right-click on Propagate1 command and click Delete.
-
Right-click on Mission Sequence folder, point to Append, and click Target. This will insert two separate commands: Target1 and EndTarget1.
-
Right-click Target1 and click Rename.
-
Type Target desired B-plane Coordinates and click OK.
-
Right-click Target desired B-plane Coordinates, point to Append, and click Propagate. A new command called Propagate1 will be created.
-
Right-click Propagate1 and click Rename.
-
In the Rename box, type Prop 3 Days and click OK.
-
Complete the Target sequence by appending the commands in Table 8.9, “Additional First Target Sequence Commands”.
Table 8.9. Additional First Target Sequence Commands
Command Name Propagate Prop 12 Days to TCM
Vary Vary TCM.V
Vary Vary TCM.N
Vary Vary TCM.B
Maneuver Apply TCM
Propagate Prop 280 Days
Propagate Prop to Mars Periapsis
Achieve Achieve BdotT
Achieve Achieve BdotR
Note
Let’s discuss what the first Target sequence does. We know that a maneuver is required to perform the B-Plane targeting. We also know that the desired B-Plane coordinate values for BdotT and BdotR are 0 and -7000 km, resulting in a polar orbit with 90 degree inclination. However, we don’t know the size (or ΔV magnitude) and direction of the TCM maneuver that will precisely achieve the desired orbital conditions. We use the Target sequence to solve for those precise maneuver values. We must tell GMAT what controls are available (in this case, three controls associated with three components of the TCM maneuver) and what conditions must be satisfied (in this case, BdotT and BdotR values). You accomplish this by using the Vary and Achieve commands. Using the Vary command, you tell GMAT what to solve for—in this case, the ΔV value and direction for TCM. You use the Achieve command to tell GMAT what conditions the solution must satisfy—in this case, BdotT and BdotR values that result in a 90 degree inclination.
Now that the structure is created, we need to configure various parts of the first Target sequence to do what we want.
-
1Double-click Target desired B-plane Coordinates to edit its properties.
-
In the ExitMode list, click SaveAndContinue. This instructs GMAT to save the final solution of the targeting problem after you run it.
-
Click OK to save these changes.
-
Double-click Prop 3 Days to edit its properties.
-
Under Propagator, make sure that NearEarth is selected
-
Under Parameter, replace MAVEN.ElapsedSeconds with MAVEN.ElapsedDays.
-
Under Condition, replace 0.0 with 3.
-
Click OK to save these changes.
-
Double-click Prop 12 Days to TCM to edit its properties.
-
Under Propagator, replace NearEarth with DeepSpace.
-
Under Parameter, replace MAVEN.ElapsedSeconds with MAVEN.ElapsedDays.
-
Under Condition, replace 0.0 with 12.
-
Click OK to save these changes.
-
Double-click Vary TCM.V to edit its properties. Notice that the variable in the Variable box is TCM.Element1, which by default is the velocity component of TCM in the local Velocity-Normal-Binormal (VNB) coordinate system. That’s what we need, so we’ll keep it.
-
In the Initial Value box, type 1e-005.
-
In the Perturbation box, type 0.00001.
-
In the Lower box, type -10e300.
-
In the Upper box, type 10e300.
-
In the Max Step box, type 0.002.
-
Click OK to save these changes.
-
Double-click Vary TCM.N to edit its properties. Notice that the variable in the Variable box is still TCM.Element1, which by default is the velocity component of TCM in the local VNB coordinate system. We need to insert TCM.Element2 which is the normal component of TCM in the local VNB coordinate system. So let’s do that.
-
Next to Variable, click the Edit button..
-
Under Object List, click TCM.
-
In the Object Properties list, double-click Element2 to move it to the Selected Value(s) list. See the image below for results.
-
Click OK to close the ParameterSelectDialog window.
-
Notice that the variable in the Variable box is now TCM.Element2.
-
In the Initial Value box, type 1e-005.
-
In the Perturbation box, type 0.00001.
-
In the Lower box, type -10e300.
-
In the Upper box, type 10e300.
-
In the Max Step box, type 0.002.
-
Click OK to save these changes.
-
Double-click Vary TCM.B to edit its properties. Notice that the variable in the Variable box is still TCM.Element1, which by default is the velocity component of TCM. We need to insert TCM.Element3 which is the bi-normal component of TCM in the local VNB coordinate system. So let’s do that.
-
Next to Variable, click the Edit button.
-
Under Object List, click TCM.
-
In the Object Properties list, double-click Element3 to move it to the Selected Value(s) list. See the image below for results.
-
Click OK to close the ParameterSelectDialog window.
-
Notice that the variable in the Variable box is now TCM.Element3.
-
In the Initial Value box, type 1e-005.
-
In the Perturbation box, type 0.00001.
-
In the Lower box, type -10e300.
-
In the Upper box, type 10e300.
-
In the Max Step box, type 0.002.
-
Click OK to save these changes.
-
Double-click Apply TCM to edit its properties. Notice that the command is already set to apply the TCM burn to the MAVEN spacecraft, so we don’t need to change anything here.
-
Double-click Prop 280 Days to edit its properties.
-
Under Propagator, replace NearEarth with DeepSpace.
-
Under Parameter, replace MAVEN.ElapsedSeconds with MAVEN.ElapsedDays.
-
Under Condition, replace 0.0 with 280.
-
Click OK to save these changes.
-
Double-click Prop to Mars Periapsis to edit its properties.
-
Under Propagator, replace NearEarth with NearMars.
-
Under Parameter, replace MAVEN.ElapsedSeconds with MAVEN.Mars.Periapsis.
-
Click OK to save these changes.
-
Double-click Achieve BdotT to edit its properties.
-
Next to Goal, click the Edit button.
-
In the Object Properties list, click BdotT.
-
Under Coordinate System, select MarsInertial and double-click on BdotT.
-
Click OK to close the ParameterSelectDialog window.
-
In the Value box, type 0.
-
In the Tolerance box, type 0.00001.
-
Click OK to save these changes.
-
Double-click Achieve BdotR to edit its properties.
-
Next to Goal, click the Edit button.
-
In the Object Properties list, click BdotR.
-
Under Coordinate System, select MarsInertial and double-click on BdotR.
-
Click OK to close the ParameterSelectDialog window.
-
In the Value box, type -7000.
-
In the Tolerance box, type 0.00001.
-
Click OK to save these changes.
Before running the mission, click Save () and save the mission to a file of your choice. Now click Run (). As the mission runs, you will see GMAT solve the targeting problem. Each iteration and perturbation is shown in EarthView, SolarSystemView and MarsView windows in light blue, and the final solution is shown in red. After the mission completes, the 3D views should appear as in the images shown below. You may want to run the mission several times to see the targeting in progress.
Since we are going to continue developing the mission tree by
creating the second Target
sequence, we will store
the final solution of the first Target
sequence as
the initial conditions of the TCM resource. This is
so that when you make small changes, the subsequent runs will take less
time. To do this, follow these steps:
-
In the Mission tree, double-click Target desired B-plane Coordinates to edit its properties.
-
Click Apply Corrections.
-
Click OK to save these changes.
-
Now re-run the mission. If you inspect the results in the message window, you will see that the first Target sequence converges in one iteration. This is because you stored the solution as the initial conditions.
-
In the Mission tree, double-click Vary TCM.V, Vary TCM.N and Vary TCM.B, you will notice that the values in Initial Value box have been updated to the final solution of the first Target sequence.
If you want to know TCM maneuver’s delta-V vector values and how much fuel was expended during the maneuver, do the following steps:
-
In the Mission tree, right-click Apply TCM, and click on Command Summary.
-
Scroll down and under
Maneuver Summary
heading, values for delta-V vector are:Delta V Vector:
Element 1: 0.0039376963731 km/s
Element 2: 0.0060423170483 km/s
Element 3: -0.0006747125434 km/s
-
Scroll down and under
Mass depletion from MainTank
heading,Delta V
andMass Change
tells you TCM maneuver’s magnitude and how much fuel was used for the maneuver:Delta V: 0.0072436375569 km/s
Mass change: -6.3128738639690 kg
-
Click OK to close Command Summary window.
Just to make sure that the goals of first Target sequence were met successfully, let us access command summary for Prop to Mars Periapsis command by doing the following steps:
-
In the Mission tree, right-click Prop to Mars Periapsis, and click on Command Summary.
-
Under Coordinate System, select MarsInertial.
-
Under
Hyperbolic Parameters
heading, see the values ofBdotT
andBdotR
. UnderKeplerian State
, see the value forINC
. You can see that the desired B-Plane coordinates were achieved which result in a 90 degree inclined trajectory:BdotT = -0.0000053320678 km
BdotR = -7000.0000019398 km
INC = 90.000000039301 deg
Recall that we still need to create second Target sequence in order to perform Mars Orbit Insertion maneuver to achieve the desired capture orbit. In the Mission tree, we will create the second Target sequence right after the first Target sequence.
Now let’s create the commands necessary to perform the second Target sequence. Figure 8.20, “Mission Sequence showing first and second Target sequences” illustrates the configuration of the Mission tree after you have completed the steps in this section. Notice that in Figure 8.20, “Mission Sequence showing first and second Target sequences”, the second Target sequence is created after the first Target sequence. We’ll discuss the second Target sequence after it has been created.
To create the second Target sequence:
-
Click on the Mission tab to show the Mission tree.
-
In the Mission tree, right-click on Mission Sequence folder, point to Append, and click Target. This will insert two separate commands: Target2 and EndTarget2.
-
Right-click Target2 and click Rename.
-
Type Mars Capture and click OK.
-
Right-click Mars Capture, point to Append, and click Vary. A new command called Vary4 will be created.
-
Right-click Vary4 and click Rename.
-
In the Rename box, type Vary MOI.V and click OK.
-
Complete the Target sequence by appending the commands in Table 8.10, “Additional Second Target Sequence Commands”.
Table 8.10. Additional Second Target Sequence Commands
Command Name Maneuver Apply MOI
Propagate Prop to Mars Apoapsis
Achieve Achieve RMAG
Note
Let’s discuss what the second Target sequence does. We know that a maneuver is required for the Mars capture orbit. We also know that the desired radius of capture orbit at apoapsis must be 12,000 km. However, we don’t know the size (or ΔV magnitude) of the MOI maneuver that will precisely achieve the desired orbital conditions. You use the second Target sequence to solve for that precise maneuver value. You must tell GMAT what controls are available (in this case, a single maneuver) and what conditions must be satisfied (in this case, radius magnitude value). Once again, just like in the first Target sequence, here we accomplish this by using the Vary and Achieve commands. Using the Vary command, you tell GMAT what to solve for—in this case, the ΔV value for MOI. You use the Achieve command to tell GMAT what conditions the solution must satisfy—in this case, RMAG value of 12,000 km.
We need a Propagate command after the second Target sequence so that we can see our final orbit.
-
In the Mission tree, right-click End Mars Capture, point to Insert After, and click Propagate. A new Propagate6 command will appear.
-
Right-click Propagate6 and click Rename.
-
Type Prop for 1 day and click OK.
-
Double-click Prop for 1 day to edit its properties.
-
Under Propagator, replace NearEarth with NearMars.
-
Under Parameter, replace MAVEN.ElapsedSeconds with MAVEN.ElapsedDays.
-
Under Condition, replace the value 0.0 with 1.
-
Click OK to save these changes
Now that the structure is created, we need to configure various parts of the second Target sequence to do what we want.
-
Double-click Mars Capture to edit its properties.
-
In the ExitMode list, click SaveAndContinue. This instructs GMAT to save the final solution of the targeting problem after you run it.
-
Click OK to save these changes
-
Double-click Vary MOI.V to edit its properties. Notice that the variable in the Variable box is TCM.Element1. We want MOI.Element1 which is the velocity component of MOI in the local VNB coordinate system. So let’s change that.
-
Next to Variable, click the Edit button.
-
Under Object List, click MOI.
-
In the Object Properties list, double-click Element1 to move it to the Selected Value(s) list. See the image below for results.
-
Click OK to close the ParameterSelectDialog window.
-
In the Initial Value box, type -1.0.
-
In the Perturbation box, type 0.00001.
-
In the Lower box, type -10e300.
-
In the Upper box, type 10e300.
-
In the Max Step box, type 0.1.
-
Click OK to save these changes.
-
Double-click Apply MOI to edit its properties.
-
In the Burn list, click MOI.
-
Click OK to save these changes.
-
Double-click Prop to Mars Apoapsis to edit its properties.
-
Under Propagator, replace NearEarth with NearMars.
-
Under Parameter, replace MAVEN.ElapsedSeconds with MAVEN.Mars.Apoapsis.
-
Click OK to save these changes.
-
Double-click Achieve RMAG to edit its properties.
-
Next to Goal, click the Edit button.
-
In the Object Properties list, click RMAG.
-
Under Central Body, select Mars and double-click on RMAG.
-
Click OK to close the ParameterSelectDialog window.
-
In the Value box, type 12000.
-
Click OK to save these changes.
Before running the mission, click Save (). This will save the additional changes that we implemented in the Mission tree. Now click Run (). The first Target sequence will converge in one-iteration. This is because earlier, we stored the solution as the initial conditions. The second Target sequence may converge after 10 to11 iterations.
As the mission runs, you will see GMAT solve the second Target sequence’s targeting problem. Each iteration and perturbation is shown in MarsView windows in light blue, and the final solution is shown in red. After the mission completes, the MarsView 3D view should appear as in the image shown below. EarthView and SolarSystemView 3D views are same as before. You may want to run the mission several times to see the targeting in progress.
If you were to continue developing this mission, you can store the final solution of the second Target sequence as the initial condition of MOI resource. This is so that when you make small changes, the subsequent runs will take less time. To do this, follow these steps:
-
In the Mission tree, double-click Mars Capture to edit its properties.
-
Click Apply Corrections.
-
Now re-run the mission. If you inspect the results in the message window, you will see that now the second Target sequence also converges in one iteration. This is because you stored the solution as the initial condition. Now whenever you re-run the mission, both first and second Target sequences will converge in just one iteration.
-
In the Mission tree, double-click Vary MOI.V, you will notice that the values in Initial Value box have been updated to the final solution of the second Target sequence.
If you want to know MOI maneuver’s delta-V vector values and how much fuel was expended during the maneuver, do the following steps:
-
In the Mission tree, right-click Apply MOI, and click on Command Summary.
-
Scroll down and under
Maneuver Summary
heading, values for delta-V vector are:Delta V Vector:
Element 1: -1.6034665169868 km/s
Element 2: 0.0000000000000 km/s
Element 3: 0.0000000000000 km/s
-
Scroll down and under
Mass depletion from MainTank
heading,Delta V
andMass Change
tells you MOI maneuver’s magnitude and how much fuel was used for the maneuver:Delta V: 1.6034665169868 km/s
Mass change: -1076.0639629424 kg
Just to make sure that the goal of second Target sequence was met successfully, let us access command summary for Achieve RMAG command by doing the following steps:
-
In the Mission tree, right-click Achieve RMAG, and click on Command Summary.
-
Under Coordinate System, select MarsInertial.
-
Under
Keplerian State
andand Spherical State
headings, see the values ofTA
andRMAG
. You can see that the desired radius of the capture orbit at apoapsis was achieved successfully:TA = 180.00000241484 deg
RMAG = 12000.019889021 km