Download MOSAIC User Guide

Transcript
3
5.8
Parameter Lists . . . . . . . . . . . . . . . . . . . . . . . . . .
6 Tutorials
6.1 Getting Started - Create and solve a very simple model . . .
6.2 Notations and Variables - Superscripts, Subscripts, and Indices
6.3 Differential Equation Systems . . . . . . . . . . . . . . . . . .
6.3.1 ODE - The Van der Pol Oscillator . . . . . . . . . . .
6.3.2 DAE - The Robertson Problem . . . . . . . . . . . . .
48
49
49
52
58
58
60
7 Appendix
63
7.1 Connection using streams . . . . . . . . . . . . . . . . . . . . 63
7.1.1 Objects . . . . . . . . . . . . . . . . . . . . . . . . . . 63
7.1.2 Name Spaces . . . . . . . . . . . . . . . . . . . . . . . 64
1
Introduction
The modeling environment MOSAIC is a project that tries to improve the
creation and the use of custom made models. While many software tools
exist that provide standard models for chemical engineering (like AspenPlus
among many others) it is often necessary to create new models that fulfill
special needs. Such custom models can be written in many languages (e.g.
Fortran, C) and there are many environments that allow use custom models
in one or two languages (e.g. Matlab, gProms). However, most of these languages are textual programming languages, which leads to three handicaps:
First, it takes a long time to write and debug the model; second, the model
can only be used in environments that understand the programming language of the model, for other environments the model must be programmed
anew which again comes along which much effort; and third, there is a visual
and conceptional gab between programming languages and the mathematical two-dimensional formulation. To react on this situation, MOSAIC is
created as symbolic mathematical environment and code generator for large
systems of equations. The idea is to create a model once and use it in
different cases and many environments or languages.
Apart from its modeling concept, MOSAIC is a Web 2.0 application, so
that the maintenance on the computer of the user is small and the storage
is done on a server over the internet.
Important principles To describe the work with the MOSAIC modeling
environment the following basic principles need to be mentioned:
• Mathematic expressions are written symbolically so that they can be
seen in the environment just as they would appear in a publication or
written on paper.