%General Mission Analysis Tool(GMAT) Script %Created: 2018-03-23 12:49:08 %---------------------------------------- %---------- Spacecraft %---------------------------------------- Create Spacecraft DefaultSC; GMAT DefaultSC.DateFormat = TAIModJulian; GMAT DefaultSC.Epoch = '21545'; GMAT DefaultSC.CoordinateSystem = EarthMJ2000Eq; GMAT DefaultSC.DisplayStateType = Cartesian; GMAT DefaultSC.X = 7100; GMAT DefaultSC.Y = 0; GMAT DefaultSC.Z = 1300; GMAT DefaultSC.VX = 0; GMAT DefaultSC.VY = 7.35; GMAT DefaultSC.VZ = 1; GMAT DefaultSC.DryMass = 850; GMAT DefaultSC.Cd = 2.2; GMAT DefaultSC.Cr = 1.8; GMAT DefaultSC.DragArea = 15; GMAT DefaultSC.SRPArea = 1; GMAT DefaultSC.NAIFId = -10000001; GMAT DefaultSC.NAIFIdReferenceFrame = -9000001; GMAT DefaultSC.OrbitColor = Red; GMAT DefaultSC.TargetColor = Teal; GMAT DefaultSC.OrbitErrorCovariance = [ 1e+070 0 0 0 0 0 ; 0 1e+070 0 0 0 0 ; 0 0 1e+070 0 0 0 ; 0 0 0 1e+070 0 0 ; 0 0 0 0 1e+070 0 ; 0 0 0 0 0 1e+070 ]; GMAT DefaultSC.CdSigma = 1e+070; GMAT DefaultSC.CrSigma = 1e+070; GMAT DefaultSC.Id = 'SatId'; GMAT DefaultSC.Attitude = CoordinateSystemFixed; GMAT DefaultSC.SPADSRPScaleFactor = 1; GMAT DefaultSC.ModelFile = 'aura.3ds'; GMAT DefaultSC.ModelOffsetX = 0; GMAT DefaultSC.ModelOffsetY = 0; GMAT DefaultSC.ModelOffsetZ = 0; GMAT DefaultSC.ModelRotationX = 0; GMAT DefaultSC.ModelRotationY = 0; GMAT DefaultSC.ModelRotationZ = 0; GMAT DefaultSC.ModelScale = 1; GMAT DefaultSC.AttitudeDisplayStateType = 'Quaternion'; GMAT DefaultSC.AttitudeRateDisplayStateType = 'AngularVelocity'; GMAT DefaultSC.AttitudeCoordinateSystem = EarthMJ2000Eq; GMAT DefaultSC.EulerAngleSequence = '321'; %---------------------------------------- %---------- ForceModels %---------------------------------------- Create ForceModel DefaultProp_ForceModel; GMAT DefaultProp_ForceModel.CentralBody = Earth; GMAT DefaultProp_ForceModel.PrimaryBodies = {Earth}; GMAT DefaultProp_ForceModel.Drag = None; GMAT DefaultProp_ForceModel.SRP = Off; GMAT DefaultProp_ForceModel.RelativisticCorrection = Off; GMAT DefaultProp_ForceModel.ErrorControl = RSSStep; GMAT DefaultProp_ForceModel.GravityField.Earth.Degree = 4; GMAT DefaultProp_ForceModel.GravityField.Earth.Order = 4; GMAT DefaultProp_ForceModel.GravityField.Earth.StmLimit = 100; GMAT DefaultProp_ForceModel.GravityField.Earth.PotentialFile = 'JGM2.cof'; GMAT DefaultProp_ForceModel.GravityField.Earth.TideModel = 'None'; %---------------------------------------- %---------- Propagators %---------------------------------------- Create Propagator DefaultProp; GMAT DefaultProp.FM = DefaultProp_ForceModel; GMAT DefaultProp.Type = RungeKutta89; GMAT DefaultProp.InitialStepSize = 60; GMAT DefaultProp.Accuracy = 9.999999999999999e-012; GMAT DefaultProp.MinStep = 0.001; GMAT DefaultProp.MaxStep = 2700; GMAT DefaultProp.MaxStepAttempts = 50; GMAT DefaultProp.StopIfAccuracyIsViolated = true; %---------------------------------------- %---------- Subscribers %---------------------------------------- Create OrbitView DefaultOrbitView; GMAT DefaultOrbitView.SolverIterations = Current; GMAT DefaultOrbitView.UpperLeft = [ 0 0 ]; GMAT DefaultOrbitView.Size = [ 0 0 ]; GMAT DefaultOrbitView.RelativeZOrder = 0; GMAT DefaultOrbitView.Maximized = false; GMAT DefaultOrbitView.Add = {DefaultSC, Earth}; GMAT DefaultOrbitView.CoordinateSystem = EarthMJ2000Eq; GMAT DefaultOrbitView.DrawObject = [ true true ]; GMAT DefaultOrbitView.DataCollectFrequency = 1; GMAT DefaultOrbitView.UpdatePlotFrequency = 50; GMAT DefaultOrbitView.NumPointsToRedraw = 0; GMAT DefaultOrbitView.ShowPlot = true; GMAT DefaultOrbitView.MaxPlotPoints = 20000; GMAT DefaultOrbitView.ShowLabels = true; GMAT DefaultOrbitView.ViewPointReference = Earth; GMAT DefaultOrbitView.ViewPointVector = [ 30000 0 0 ]; GMAT DefaultOrbitView.ViewDirection = Earth; GMAT DefaultOrbitView.ViewScaleFactor = 1; GMAT DefaultOrbitView.ViewUpCoordinateSystem = EarthMJ2000Eq; GMAT DefaultOrbitView.ViewUpAxis = Z; GMAT DefaultOrbitView.EclipticPlane = Off; GMAT DefaultOrbitView.XYPlane = On; GMAT DefaultOrbitView.WireFrame = Off; GMAT DefaultOrbitView.Axes = On; GMAT DefaultOrbitView.Grid = Off; GMAT DefaultOrbitView.SunLine = Off; GMAT DefaultOrbitView.UseInitialView = On; GMAT DefaultOrbitView.StarCount = 7000; GMAT DefaultOrbitView.EnableStars = On; GMAT DefaultOrbitView.EnableConstellations = On; Create GroundTrackPlot DefaultGroundTrackPlot; GMAT DefaultGroundTrackPlot.SolverIterations = Current; GMAT DefaultGroundTrackPlot.UpperLeft = [ 0 0 ]; GMAT DefaultGroundTrackPlot.Size = [ 0 0 ]; GMAT DefaultGroundTrackPlot.RelativeZOrder = 0; GMAT DefaultGroundTrackPlot.Maximized = false; GMAT DefaultGroundTrackPlot.Add = {DefaultSC}; GMAT DefaultGroundTrackPlot.DataCollectFrequency = 1; GMAT DefaultGroundTrackPlot.UpdatePlotFrequency = 50; GMAT DefaultGroundTrackPlot.NumPointsToRedraw = 0; GMAT DefaultGroundTrackPlot.ShowPlot = true; GMAT DefaultGroundTrackPlot.MaxPlotPoints = 20000; GMAT DefaultGroundTrackPlot.CentralBody = Earth; GMAT DefaultGroundTrackPlot.TextureMap = 'ModifiedBlueMarble.jpg'; Create DynamicDataDisplay DynamicDataDisplay1; GMAT DynamicDataDisplay1.UpperLeft = [ 0 0 ]; GMAT DynamicDataDisplay1.Size = [ 0 0 ]; GMAT DynamicDataDisplay1.RelativeZOrder = 0; GMAT DynamicDataDisplay1.Maximized = false; GMAT DynamicDataDisplay1.AddParameters = {3, DefaultSC.EarthMJ2000Eq.VMAG, DefaultSC.UTCGregorian}; GMAT DynamicDataDisplay1.RowTextColors = {3, [0 0 0], [0 0 0]}; GMAT DynamicDataDisplay1.WarnColor = [218 165 32]; GMAT DynamicDataDisplay1.CritColor = [255 0 0]; %---------------------------------------- %---------- Mission Sequence %---------------------------------------- BeginMissionSequence; Propagate DefaultProp(DefaultSC) {DefaultSC.ElapsedSecs = 12000.0}; UpdateDynamicData DynamicDataDisplay1;