Skip to main content

Utilities to set up and analyze Modelica simulation experiments

Project description

The goal of ModelicaRes_ is to provide an open-source tool to effectively manage
manage Modelica_ simulations, interpret results, and create publishable figures.
It is currently possible to

- Auto-generate simulation scripts,
- Run model executables with varying parameters,
- Browse data,
- Perform custom calculations, and
- Produce various plots and diagrams.

The figures are generated via matplotlib_, which offers a rich set of plotting
routines. ModelicaRes_ includes convenient functions to automatically
pre-format and label some figures, like xy plots, Bode and Nyquist plots, and
Sankey diagrams. ModelicaRes_ can be scripted or run from a Python_ interpreter
with math and matrix functions from NumPy_.

For more information, please see the `main project site
<http://kdavies4.github.io/ModelicaRes/>`_ or the "doc" folder of the package
for the full documentation and many examples. The development site is
https://github.com/kdavies4/modelicares.

Installation
------------
An installable copy of this package can be downloaded from the `main project
site`_ or the `PyPI page <http://pypi.python.org/pypi/ModelicaRes>`_. To
install the package, first download and extract it. Then run the set up script
(setup.py) from the base folder. On Windows, use the following command::

python setup.py install

On Linux, use::

sudo python setup.py install

The matplotlibrc file in the base folder has some recommended revisions to
matplotlib_'s defaults. To use it, copy or move the file to the working
directory or matplotlib_'s configuration directory. See
http://matplotlib.org/users/customizing.html for details.

Credits
-------
Kevin Bandy helped to develop this package. Third-party code has been included
from Jason Grout (`ArrowLine
<http://old.nabble.com/Arrows-using-Line2D-and-shortening-lines-td19104579.html>`_
class), Jason Heeris (`efficient base-10 logarithm
<http://www.mail-archive.com/matplotlib-users@lists.sourceforge.net/msg14433.html>`_),
Richard Murray (`python-control
<http://sourceforge.net/apps/mediawiki/python-control>`_), and Joerg Raedler
(method to expand a Modelica_ variable tree - from `DyMat
<http://www.j-raedler.de/projects/dymat/>`_).

License terms
-------------
ModelicaRes_ is published under the terms of the BSD license (see LICENSE.txt).
Please share any modifications you make (preferably on a Github fork from
https://github.com/kdavies4/ModelicaRes) so that others may benefit from your
work.

See also
--------
The `pysimulator <https://code.google.com/p/pysimulator/>`_, `BuildingsPy
<http://simulationresearch.lbl.gov/modelica/buildingspy/>`_, DyMat_, and
`awesim <https://github.com/saroele/awesim>`_ projects provide related Python_ modules. pysimulator_ includes an elaborate GUI and supports the Functional
Model Interface (FMI). BuildingsPy_ has a :class:`Tester` class that can be
used for unit testing. DyMat_ has functions to export Modelica_ simulation data
to comma separated values (CSV), `Gnuplot <http://www.gnuplot.info/>`_, MATLAB
\ :sup:`®`, and `Network Common Data Form (netCDF)
<http://www.unidata.ucar.edu/software/netcdf/>`_. awesim_ provides tools to
help run simulation experiments and organize the results.


.. _ModelicaRes: http://kdavies4.github.io/ModelicaRes/
.. _Modelica: http://www.modelica.org
.. _Python: http://www.python.org
.. _matplotlib: http://www.matplotlib.org
.. _NumPy: http://numpy.scipy.org

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

ModelicaRes-0.5.1.tar.gz (1.7 MB view details)

Uploaded Source

File details

Details for the file ModelicaRes-0.5.1.tar.gz.

File metadata

  • Download URL: ModelicaRes-0.5.1.tar.gz
  • Upload date:
  • Size: 1.7 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for ModelicaRes-0.5.1.tar.gz
Algorithm Hash digest
SHA256 e3ad7fc4700c799a9dfe8f022c9ebfbde29cb3a08163240012541894e4c83c89
MD5 3748cff990f5c2143341d2c402942b6d
BLAKE2b-256 0429c4d608ea3cdd8abd5ab0a52367219db15b20370f98a44b3e2afe4ce96e2c

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page