Wolfram Library Archive


Courseware Demos MathSource Technical Notes
All Collections Articles Books Conference Proceedings
Title

Code Generation for Simulation and Control Applications
Authors

Mats Jirstrand
Organization: MathCore Engineering AB
URL: http://www.mathcore.com
Johan Gunnarsson
Organization: MathCore Engineering AB
URL: http://www.mathcore.com
Conference

1999 International Mathematica Symposium
Description

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 aerodynamics of a fighter aircraft.
Subjects

*Engineering > Control Theory
*Wolfram Technology > Application Packages > Applications from Independent Developers > MathCode C++
Keywords

MathCode C++, modeling dynamical systems, controller design, Euler-Lagrange equations, Controller synthesis
URL

http://www.internationalmathematicasymposium.org/IMS99/ims99papers/ims99papers.html