25
Andrew Turner Masters Thesis Presentation July 17th, 2003 Open-Source, Extensible Spacecraft Simulation And Modeling Environment Framework

Open-Source, Extensible Spacecraft Simulation And Modeling …spacecraft.sourceforge.net/presentations/AAS2003... · 2003. 8. 3. · Spacecraft Simulation Aerospace Engineering -

  • Upload
    others

  • View
    18

  • Download
    0

Embed Size (px)

Citation preview

Page 1: Open-Source, Extensible Spacecraft Simulation And Modeling …spacecraft.sourceforge.net/presentations/AAS2003... · 2003. 8. 3. · Spacecraft Simulation Aerospace Engineering -

Andrew TurnerMasters Thesis Presentation

July 17th, 2003

Open-Source, Extensible Spacecraft Simulation And Modeling Environment Framework

Page 2: Open-Source, Extensible Spacecraft Simulation And Modeling …spacecraft.sourceforge.net/presentations/AAS2003... · 2003. 8. 3. · Spacecraft Simulation Aerospace Engineering -

Introduction

Background

Purpose

Architecture Design

Software Implementation

Verification and Validation

Simulation Examples

Conclusions

Outline of Presentation

2

Page 3: Open-Source, Extensible Spacecraft Simulation And Modeling …spacecraft.sourceforge.net/presentations/AAS2003... · 2003. 8. 3. · Spacecraft Simulation Aerospace Engineering -

Open-SESSAME Framework

Open-Source

Extensible

Spacecraft

Simulation And Modeling

Environment

Framework

Introduction

Adapted by J. Schwartz from http://www.jenn98.com/bugs/1957-1.html3

Page 4: Open-Source, Extensible Spacecraft Simulation And Modeling …spacecraft.sourceforge.net/presentations/AAS2003... · 2003. 8. 3. · Spacecraft Simulation Aerospace Engineering -

Spacecraft SimulationAerospace Engineering

- Attitude dynamics

- Orbit dynamics

- Satellite environment

- Terminology

- Aerospace tools

- Typical use cases

- Satellite Community

Computer Science / Software Engineering

- Object-Oriented Design

- Computational Speed

- Networking

- Data Handling

- Extensibility

- Software development tools

- Open-Source Community

4

Page 5: Open-Source, Extensible Spacecraft Simulation And Modeling …spacecraft.sourceforge.net/presentations/AAS2003... · 2003. 8. 3. · Spacecraft Simulation Aerospace Engineering -

Provide a useful spacecraft simulation modeling tool to engineers

Complement existing engineering tools

Include underdeveloped methodologies

Allow for infinite extensibility

Educate students and other users how to design and implement simulation in software

Readable and useful documentation and software

Logical architecture design

Develop an open-source framework that can be maintained and extended longer than the original project’s lifetime

Host on a public repository and include developers in the community

Foster communication between developers and users

Purpose

5

Page 6: Open-Source, Extensible Spacecraft Simulation And Modeling …spacecraft.sourceforge.net/presentations/AAS2003... · 2003. 8. 3. · Spacecraft Simulation Aerospace Engineering -

Architecture Design

Rotation Library

Attitude Library Orbit Library

Dynamics Library

Environment Library

Data Handling

Collections of libraries

Interchangeable components

Application framework

‘Assemble’ to build an application

Suggested Architecture

Reconfigurable

Communications116

Page 7: Open-Source, Extensible Spacecraft Simulation And Modeling …spacecraft.sourceforge.net/presentations/AAS2003... · 2003. 8. 3. · Spacecraft Simulation Aerospace Engineering -

C++ software language

Open-source libraries and toolkits

Matrix

Network Communications

Documentation

Verbose coding

Doxygen

Software Implementation

217

Page 8: Open-Source, Extensible Spacecraft Simulation And Modeling …spacecraft.sourceforge.net/presentations/AAS2003... · 2003. 8. 3. · Spacecraft Simulation Aerospace Engineering -

Documentation

8

Page 9: Open-Source, Extensible Spacecraft Simulation And Modeling …spacecraft.sourceforge.net/presentations/AAS2003... · 2003. 8. 3. · Spacecraft Simulation Aerospace Engineering -

Rotation Class

Abstract

Conversion Routines

Stored as a Quaternion

Example: Rotation Library

Rotation-Quaternion+SetDCM+SetEulerAngles+SetEulerAxisAngle+SetMRP+SetQuaternion+GetDCM+GetEulerAxisAngle+GetMRP+GetQuaternion

Quaternion

ModifiedRodriguezParameters

DirectionCosineMatrix

Vector

Matrix

1

Other Representations 129

Page 10: Open-Source, Extensible Spacecraft Simulation And Modeling …spacecraft.sourceforge.net/presentations/AAS2003... · 2003. 8. 3. · Spacecraft Simulation Aerospace Engineering -

10

Keplerian

MatLabSTK Export

XML Export

MarsCBMoonCB

OrbitState

Attitude

Rotation Quaternion

Vector

AttitudeState

Orbit

Propagator Environment

EarthCB

EnvFunction

HistoryConverter CentralBody

OrbitRep

OrbitFrame

AttitudeHistory

OrbitHistory

Position Velocity

AttitudeFrame

Attitude Dynamics

Orbit Dynamics

Integrator

Runge-Kutta Integrator

Runge-Kutta Fehlberg

Interpolator

LinearInterpolator

CubicSpline Interpolator

A

A

0..n

B

0,1,2

B

Page 11: Open-Source, Extensible Spacecraft Simulation And Modeling …spacecraft.sourceforge.net/presentations/AAS2003... · 2003. 8. 3. · Spacecraft Simulation Aerospace Engineering -

Attitude Integration

Attitude

Rotation Quaternion

VectorAttitudeState

EnvFunction

HistoryConverter

AttitudeHistory

AttitudeFrame

Attitude Dynamics

Runge-Kutta Integrator

CubicSpline Interpolator

3211

Page 12: Open-Source, Extensible Spacecraft Simulation And Modeling …spacecraft.sourceforge.net/presentations/AAS2003... · 2003. 8. 3. · Spacecraft Simulation Aerospace Engineering -

Hardware-in-the-Loop

GPS SensorStub

Flight Software

Orbit Determination

Attitude DeterminationAttitude Control Orbit Control

Thrusters SensorStub

Torquers SensorStub

RateGyro SensorStub

Magnetometer SensorStub

Open-SESSAME Communications Layer

AppliedTorques

PositionVelocity

AppliedForces

B-FieldAngularVelocity

Open-SESSAME Application Server

Propagator and History

3512

Page 13: Open-Source, Extensible Spacecraft Simulation And Modeling …spacecraft.sourceforge.net/presentations/AAS2003... · 2003. 8. 3. · Spacecraft Simulation Aerospace Engineering -

No prior solution for configurable, extensible, coupled spacecraft simulation

Open-SESSAME fulfills goals and requirements

Speed and accuracy comparable to commercial packages

Used to ease development and testing of HokieSat flight code

Future

Multiple extension points for added functionality

Integrate software into curriculum

Publish use cases and include in lab activities

Increase connectivity with other programs

Optimize operation

Conclusions

3713

Page 14: Open-Source, Extensible Spacecraft Simulation And Modeling …spacecraft.sourceforge.net/presentations/AAS2003... · 2003. 8. 3. · Spacecraft Simulation Aerospace Engineering -

Space Systems Simulation Laboratory

Dr. Christopher Hall

Sourceforge.net

ION-F & HokieSat

Thank you

Virginia Tech Department of Aerospace & Ocean Engineering

3815

Page 15: Open-Source, Extensible Spacecraft Simulation And Modeling …spacecraft.sourceforge.net/presentations/AAS2003... · 2003. 8. 3. · Spacecraft Simulation Aerospace Engineering -

Questions?

Page 16: Open-Source, Extensible Spacecraft Simulation And Modeling …spacecraft.sourceforge.net/presentations/AAS2003... · 2003. 8. 3. · Spacecraft Simulation Aerospace Engineering -

Object-Oriented Programming

Page 17: Open-Source, Extensible Spacecraft Simulation And Modeling …spacecraft.sourceforge.net/presentations/AAS2003... · 2003. 8. 3. · Spacecraft Simulation Aerospace Engineering -

Software Architecture

Component Libraries

Building an Application

Section: Architecture Design

IntroductionBackgroundArchitecture DesignSoftware ImplementationVerification and ValidationSimulation ExamplesConclusions

Page 18: Open-Source, Extensible Spacecraft Simulation And Modeling …spacecraft.sourceforge.net/presentations/AAS2003... · 2003. 8. 3. · Spacecraft Simulation Aerospace Engineering -

Attitude Library

Attitude AttitudeState

Rotation

AttitudeFrame

1

1

1..n Vector

AngularVelocity1

odeFunctor

QuaternionAngularVelocity

Any Kinematic or Kinetic EOM

ModifiedRodriguezAngularMomentum

Kinematic & Kinetic Equations of Motion

* AttitudeState

Composition

Rotation, Frame, AngVel

Attitude

Larger composition

AttitudeState

Kinematics & Dynamics

History

13

Page 19: Open-Source, Extensible Spacecraft Simulation And Modeling …spacecraft.sourceforge.net/presentations/AAS2003... · 2003. 8. 3. · Spacecraft Simulation Aerospace Engineering -

Orbit Library

Orbit

OrbitState

OrbitState-Representation OrbitFrame

PositionVelocity

Keplerian

Delauney

Poincaré OrbitFramePQW

OrbitFrameECEF

OrbitFrameIJK

OrbitFrameRSW

1 1

1..n

Other State Representations Other OrbitFrames

OrbitState

Local Composite

OrbitStateRep

OrbitFrame

Orbit

Larger Composite

Dynamics

History

14

Page 20: Open-Source, Extensible Spacecraft Simulation And Modeling …spacecraft.sourceforge.net/presentations/AAS2003... · 2003. 8. 3. · Spacecraft Simulation Aerospace Engineering -

Propagator

NumericPropagator

Combined-NumericPropagator

AnalyticPropagator

EnkeCombined-NumericPropagator

AnalyticPropagator Schemes

Other Numeric Propagators

Dynamics LibraryPropagator

Abstract interface

Types of propagators

Numeric

Analytic

15

Page 21: Open-Source, Extensible Spacecraft Simulation And Modeling …spacecraft.sourceforge.net/presentations/AAS2003... · 2003. 8. 3. · Spacecraft Simulation Aerospace Engineering -

Environment

EarthCentralBody

CentralBody EnvFunction

TwoBodyGravity

SimpleAeroDrag

SimpleSolarRadiationPressure

GravityGradient

AerodynamicTorque

MagneticDipole

Force Environmental Disturbance Functions

Torque Environmental Disturbance Functions

1 0,1..n

MoonCentralBody

MarsCentralBody

ComplexAeroDrag

Other Environment Force Functions

J2GravityModel

ComplexMagneticDipole

Other Environment Torque Functions

ComplexGravityGradient

Other CentralBodies

Environment LibraryEnvironment

Composition and interface

CentralBody

Physical parameters

Defines frames

Location with respect to other celestial bodies

EnvFunctions

Interface to force and torque functions

Parameters: time, orbit state, attitude state 16

Page 22: Open-Source, Extensible Spacecraft Simulation And Modeling …spacecraft.sourceforge.net/presentations/AAS2003... · 2003. 8. 3. · Spacecraft Simulation Aerospace Engineering -

Data Handling Utilities

History

AttitudeState OrbitState

AttitudeHistory OrbitHistory

ssfTime0,1..n

0,1..n 0,1..n

Other History Collections

ControlHistory(Torque / Force)

ControlState Applicable Data or State

0,1..n 0,1..n

History

Vectors of data

Associated with times

Interpolation

Data Conversion

17

Page 23: Open-Source, Extensible Spacecraft Simulation And Modeling …spacecraft.sourceforge.net/presentations/AAS2003... · 2003. 8. 3. · Spacecraft Simulation Aerospace Engineering -

Math Library

Integrator

RungeKuttaIntegrator

AdamsBashforthIntegrator

Interpolator

LinearInterpolator

CubicSplineInterpolator

NaturalCubicSplineInterpolator

FixedStep Integrator

VariableStepIntegrator

Other Interpolators

Other VariableStep Integrators

Other FixedStep Integrators

Numerical Integration

Fixed step

Variable step

Data Interpolation

18

Page 24: Open-Source, Extensible Spacecraft Simulation And Modeling …spacecraft.sourceforge.net/presentations/AAS2003... · 2003. 8. 3. · Spacecraft Simulation Aerospace Engineering -

High EccentricityParameter Value

Initial Orbit State r0 =[7500 0 0

]T

v0 =[0 6.819333903 6.819333903

]T

Disturbances Two-Body GravityIntegrator Runge-Kutta-Fehlberg 4(5)Simulation Time 20 days

Output O-SESSAME STK FreeFlyer

Final Orbit State

−46724.94751−8276.177337−8276.1773371.339061791−0.85741544−0.85741544

−46727.35881−8275.048124−8275.048124

1.338824−0.857447−0.857447

−46713.96349−8283.620519−8283.6205191.340490327−0.857151194−0.857151194

Running Time 15 sec 4 sec 48 secRMS Error - 2.72× 10−4 1.73× 10−3

1

Page 25: Open-Source, Extensible Spacecraft Simulation And Modeling …spacecraft.sourceforge.net/presentations/AAS2003... · 2003. 8. 3. · Spacecraft Simulation Aerospace Engineering -

Accumulation of ErrorHigh Eccentricity Error

Altitude (km)

Posi

tion

Erro

r (k

m)