next up previous contents
Next: Default Values Up: Defining Dynamical Systems Using Previous: Temporary Functions   Contents


Automatic C Code Generation

For complicated dynamical systems or analyses which will require a large amount of computation, the user will wish to code the dynamical system in C. If the model is written for the parser, then the parser may be able to do most of the work of writing the C language procedures necessary to interface into DsTool. The system can be built and tested using the parser and when the user has decided on a set of satisfactory initial conditions and ranges, the user may fill in the Name field with a single descriptive word and select the Write C code command/window button. This will generate C code for the system, and open the C Code window.

The code may be immediately edited, if for example the user wishes to add explicit Jacobian or inverse routines. Additionally, the C code may be made more efficient or functions may be implemented which are unavailable in the parser. Any information which was not supplied through the parser will be assigned a default value. These are listed in the table in the following subsection. When the user is finished making any modifications, the C code file may be saved and compiled into DsTool in the standard way. Section 4.2 contains a complete description of this process.


next up previous contents
Next: Default Values Up: Defining Dynamical Systems Using Previous: Temporary Functions   Contents
2010-01-04