




























































































Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!





























































































Godda.rd Spa.ce Flight Center Thi~lkingSystems? Inc. Codes 583 and 595 6441 N^ Cainino^ Libby Greenbelt., hlarylarld 20771 Tucson, Arizoiia 85718
J u l y 12, 2007
Introduction
1.2 Design Criteria
There are several high level requirements for GMAT that drove the design of t,he sysbem. These requirements can be sunlmarized in five broad categories: R/IATLAB Accessibility, E,xtensibility, firmation Modeling, Parallel Processing, and Open Source Availability. Thc syst,enl is designed t o run on Ma.cintosh, Willdows, and variant.^ of Unix (including Linux) - through a. recompilation of the source.
1.2.1 MATLAB Accessibility
MATLAB is a tool used a t many facilities in the aerospace coln~nunityt o develop new algorith~nsand t.o prototype approaches unique t o new missions under considera.tion. hlATLAB as a syst.em is quite flexible,
modeling, pro~idingan engine that can be callod from MATLAB for tasks that present, parformance issues when built in t,he MATLAB language.
1.2.2 User Extensibility
One prirne driver for the development. of GMAT mas to provide a tool that allows users t o try new components and ~nodclsin the system wit,hout rebuilding it from scratch. This capability is partially sat,isfied by thc MATLAB int,erface describetl a.bove. Conlponents of GPIIAT can also he added to the system by writing new code t,hat can be conlpiled into shared libraries and incorporated into t.he system at run time. All of the operating systems GMAT supports provide native methods for this capability: and t,he syst,em is designed t,o make the atldit,ion of new components si~npleusing thest.?capabilities.
1.2.3 Formation Modeling
The current tool set. used to model format.ions treats a format.ion of spacecraft as individual spacecraft, modeled independently and then compared by matching states at spccific epochs, either on a. small scale (taking single steps for each and then comparuig t.he states) or on a large scale (prol)a.gating ephemerides for each spacecraft and then going hack afterwards to compare states at specific epochs. GMAT provides t.he ability to t,reat a collection of spacecraft as a single entity, makiug the modeling more streamlined and providing the ability t,o handle formations and constellat.ions as simple ent.ities.
1.2.4 Parallel Processing Capabilities
Some sat,ellite analysis tasks require the execution of many separate orbit propagat'ions, ii~cludi~lgmission
sccmarios under analysis. Thesc tasks can take as marly as several hundrcd separate runs, cad1 consisting of several minutes or more of run time on current hardware, in order to determine the results of t,he analysis problem. GMAT is designed t.o enable t,he parallelization of these tasks across multiple processors, either within the same computcr or, eventuall;r5 across a net.wor1i of computers. While the current implementation does not 1evera.g~this capability, it. is designed to make the transition to multiple processors and distributctl computing as simple as possible.
1.2.5 Open Source Availability
GMAT is a.vailable for external users in bot,h execut,a.bla and source code form, subjoct t o the NASA Open Source licensing agreement. This redistribution requirement drove design issuc?s related t o the selection of external libraries and packages used by GMAT.
1.3 Design Approach
The categories described above drove t,he architecture of GMAT. The following paragraphs describe the architectural elements used to address t.hese requirement.^.
1.3.1 Modularity
GMAT is a conlplicated systenz. It is designed to be imple~nentedusing a "divide and conquer" approach that uses simple components that combine to satisfy the needs of t,he sys%em. This system modularity nlakes the inclividual components simplc, a ~ dalso simplifies the addition of new components i11t.o the @em. In
New components in each category are created by implenlentat,ion of classes derived from these base classes, building core methods to implement the new functiona1it.y... for c:xa,n~ple!forces usod in the force model for a spacecraft all support. an interface; GctDerivativt:s(), that provides tho a.ccelcrat,iondata. needed to model the force. Users can add near components by implenlenting the desired behavior in these interfaces and then registering these components in the GM.4T factory subsystem.
1.3.2 Loose Coupling
components that allows them to be conlbined easily using a set of common interfaces. Conlpollents built in the system have simple interfaces t o be able to communicat.e with MATLAB and with one another. Dependei~cies bet,ween the components arc ~nininlized.Circular dcpcndencies betwecm components minimized.
Dam1 .J. Conwuy
Tho G M - T syst,eln consists of a high level framework, the GMAT -4pplication: that manages systern level messages l>rocessedby GMAT. This framework contains a single instance of the core GMAT executive, the Moderator, which manages the functionality of the system. The Moderator interacts with five high level elements, shown in Figure 1: that function together to run the system. The Interpreter subsystem consists of two separate components. The interpreter contains the crrent, tnissioi: script-, used t80generate the mission event sequence, and t,he interface to the GMAT user int,el-face. This 1at.ter interface takes the defined user actions and passes these actions to the appropria.te ele~nentsin the systeni .. for instance, when a user presses a "Run Mission" butt'on on the GMAT GUI, the command is passed to the user act,ion int,erpreter, n~hichthen configrost.he objects needed t.o n m the current script and then starts the execution of the script. (Okay, that sentence assumes a lot that I haven't talked about yet ...) The Environment subsyst,em contains configuration information for the system data files, ex3ernal pro- grams (e.g. MATLAB), and a numbtrr of utility subsystems (Okay: I needed someplace to put these - - is t,his the best place?) used to perform co~n~nonta.slrs. It a.cts a.s the repository for all of the information needed for GMAT to talk to other elements running on a user's workstation, along with the central location for information about the data files used by the system. GhlAT contains numerous classes t,hat are used t o perfonn spacecraft modeling. These classc?~are all mana.gec1by a set of components that construct instances of the classes nc?edr!d by a. script; these components are shown on Figure 1 as a set of object factories defined fbr the system. This infrastruct,ure provides t,he flexibi1it.y needed by t,he systenl to give users the a.bility to add custorn componc.nts to the system, and will be described in inore det,ail la,ter in this document. (This piece is pretty core to the design I'm t,hinking about right now, so it needs t o be examined closely to be sure nre get what we want in GblAT. Of course, that means it,%also the hardest, part to explain ... especiall~rwhen I try t o muddle through the way the systern puts it together with the script interpreter and the config~~rations!) The GhlKT Moderator includes a, contd~lerused t,o ~nanagelists of configured components used by the system t o pelform mission analysis. GR/I:AT maintains these lists a.s the core object structures manipulat.ed by the system t o perform mission analysis. The Moderator has the following core 1ist.s used in a 1nissio timeline:
3, .4ssc.t Configurations: A co~itaincrfor spacecraft, forma,tionsl of spacecraft., and ground assets
taken by the system to rnodtrl all or a piece of an orbit problem
G. Matllernatical Configurations: Elements used to perform custom calculations and for com~nunication with exterilal p r o g a n s like MATLAB
GMAT runs arc perfonnetl in the G K 4 T Sandbox. This pox-tion of t,hc syste~nis tha contailler for the components of a run, linked tog-ether to perform the sequence of events in the mission t,imeline. When a,
of a. script, a.nd t o place t.he corresponding script t?lernents into t,he sandbox for use during the run. The Moderator links ea,ch element pla,ced into the sandbox to its neighboring elements. Once the full script has been translated into the component,s in the sandbox, the Moderator starts the run by calling the R.un method on the sandbox The following sections describe ea.ch of these conlponents more completely. These descriptions we follotvcd by several sample system configurations. The last' section of this document provides details of the classes used in this design.