The Mathematica Journal
Departments
Feature Articles
Columns
New Products
New Publications
Classifieds
Calendar
News Bulletins
Mailbox
Letters
FAQ
Write Us
About the Journal
Staff and Contributors
Submissions
Subscriptions
Advertising
Back Issues
Home
Download this Issue
Mats Jirstrand and Johan Gunnarsson
MathCore AB
Wallenbergs gata 4
SE-583 35 Linköping, Sweden

The use of Mathematica in combination with MathCode C++ is illustrated in a context of modeling of dynamical systems and design of controllers. The symbolic tools are used to derive a set of nonlinear differential equations using Euler-Lagrange equations of motion. The model is converted to C++ using MathCode C++, which produces an efficient implementation of the large expressions used in the model. The exported code is used for simulations, which illustrates that Mathematica in combination with MathCode C++ can be used to do accurate and powerful simulations of nonlinear systems. Controller synthesis is performed where the resulting controller is exported to C++ and run externally. The applications presented are a seesaw/pendulum process and the aerodynamics of a fighter aircraft.

1. Introduction

2. The Seesaw/Pendulum Process

3. A Fighter Aircraft

4. Conclusions

Initialization

References

Additional Material

About the Authors


Copyright © 2001 Wolfram Media, Inc. All rights reserved.