JModelica.org
User Guide

Version 1.2.0

2010-04-22


Acknowledgements

This document is produced with DocBook 5 using XMLMind XML Editor for authoring, Norman Walsh's XSL stylesheets and a GNOME xsltproc + Apache fop toolchain. Math contents is converted from LaTeX using the TeX/LaTeX to MathML Online Translator by the Ontario Research Centre for Computer Algebra and processed by JEuclid.

Table of Contents

1. Introduction
1. About JModelica.org
2. Mission Statement
3. Technology
4. Architecture
5. Extensibility
2. Installation
1. Supported platforms
2. Binary distribution
2.1. Linux
2.2. Mac OS X
2.3. Windows
2.3.1. Prerequisites
2.3.2. Windows installer
3. Getting started
1. Compilation of models
1.1. Compilation
1.1.1. Simple compilation example
1.1.2. Targets
1.1.3. Compilation in more detail
1.2. Loading the Shared Object file (DLL)
2. Simulation of models
3. Solving optimal control problems
3.1. The van der Pol Oscillator
3.2. The Hicks Ray Continuously Stirred Reactor (CSTR)
3.2.1. Start the Python shell
3.2.2. Compile and instantiate a model object
3.2.3. Solve the DAE initialization problem
3.2.4. Solving an optimal control problem
3.2.5. Verify optimal control solution
3.2.6. Exercises
3.2.7. References
4. Working with file I/O
4.1. I/O functionality
4.2. Loading result data
5. Setting and saving model parameters
5.1. Model parameter XML files
5.2. Get and set value
5.3. Loading from and saving to XML
5.3.1. Loading XML values file
5.3.2. Writing to XML values file
4. Advanced topics
1. Tutorial on Abstract Syntax Trees (ASTs)
1.1. About Abstract Syntax Trees
1.2. Start the Python shell
1.3. Load the Modelica standard library
1.4. Count the number of classes in the Modelica standard library
1.5. Dump the instance AST
1.6. Flattening of the filter model
5. Optimica
6. Limitations
Bibliography
Index

List of Figures

1.1. JModelica platform architecture.
3.1. Electric Circuit
3.2. Simulation result
3.3. Van der Pol optimization result.
3.4. Optimization result
3.5. Simulated system response