Download Separation Analysis with OpenModelica

Transcript
Chapter 7
OMSep implementation
The program developed in this master’s thesis, OMSep (OpenModelica Separation),
consists of a model of a separation system, a function which gives input data to the
model, a function which simulates the model and a function which saves the output
data. An overview of OMSep can be seen in Figure 7.1 and the implementation of
the program is described in this chapter. A Monte Carlo method can also be used
when simulating the model, the implementation of the function to perform this is
also described in this chapter.
Figure 7.1. An overview of OMSep, the program developed in this master’s thesis. It
consists of a model of a separation system, a function which gives input data to the model,
a function which simulates the model and a function which saves the output data.
7.1
Input data
The input data to OMSep are written in the files Sep.Inp and Spring.Inp. In
Sep.Inp the satellite and launch vehicle input data are written and the spring
input data are written in Spring.Inp. Examples of input files and a description
of how to use them can be seen in Appendix B.
A Python script, readSepinput.py, is used to read the input data from the
input files. This script only reads the input data and saves them as variables.
55