Skip to main content

Utilities to set up and analyze Modelica simulation experiments

Project description

ModelicaRes is an open-source tool to 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 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. 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

The main author is Kevin Davies. Kevin Bandy also helped in the development of this package. Third-party code has been included from Jason Grout (ArrowLine class), Jason Heeris (efficient base-10 logarithm), Richard Murray (python-control), and Joerg Raedler (method to expand a Modelica variable tree - from 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, BuildingsPy, DyMat, and awesim projects provide related Python modules. pysimulator includes an elaborate GUI and supports the Functional Model Interface (FMI). BuildingsPy has a Tester class that can be used for unit testing. DyMat has functions to export Modelica simulation data to comma separated values (CSV), Gnuplot, MATLAB®, and Network Common Data Form (netCDF). awesim provides tools to help run simulation experiments and organize the results.

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.6.0.tar.gz (1.6 MB view details)

Uploaded Source

File details

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

File metadata

File hashes

Hashes for ModelicaRes-0.6.0.tar.gz
Algorithm Hash digest
SHA256 8be441569c213b0f28498a3f81c3ef9c80fa819bfc261c40e5574c9f52f6b0b3
MD5 ac08036c23bba1e760832e2812a3f240
BLAKE2b-256 e0b1883e164ab9e69931f9364078b468c0d6925c33d9a7e10bd25f0ccf01b45a

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