A Python package containing a variety of scripts and functions for interaction with Modelica and TRANSFORM.
Scott Greenwood
https://pypi.org/project/modelicapy/ - pip version may be behind GitHub
pip install modelicapy
from modelicapy import cleanData as cln
For updating your pip install to the latest GitHub version:
pip install git+https://github.com/ORNL-Modelica/ModelicaPy.git@master
or
pip install --upgrade git+https://github.com/ORNL-Modelica/ModelicaPy.git@master
- GraphViz folder - Generation of dependency graphs of a Modelica library.
- parametric.py - Generate parametric sweeps for simulations.
- read_dslog.py - Create a summary of the dslog file (e.g., pass/fail, simulation time, etc.).
- gen_dsin.py - Generate new dsin.txt file from dsin.txt or dsfinal.txt with modified simulation and/or variable parameters.
- regressiontest.py - Modified regressiontest.py file from BuildingsPy for regression testing on Windows (use with buildingspy tag 1.7 and Anaconda2)
- cleanData.py - Returns data using a 'r=Reader' from buildingspy that has been cleaned of repeated values (i.e., due to events) and interpolates between values.
- getValues - Functions to return single values from components. Helpful for getting initial values. Includes Modelica formatted output. For use with TRANSFORM.
- createUnitScripts.py - autogenerate .mos files for use with buildingspy regression test.
- raven folder - contains an example of running FMU (via pyFMI) with RAVEN
- wordclouds folder - example playing with the Modelica conference proceedings and wordcloud
- optimize folder - a demonstration. auto-simulate multiple heat transfer models, select the best one based on gold values, and then optimize CFs to match the gold values
- FMPy folder - a couple simple templates for using fmpy
- coolTSplots - a reference (may not simulate) for putting Modelica simulation results onto a TS diagram
You may report any issues with using the Issues button.
Contributions in the form of Pull Requests are always welcome.