Already started in /omf/scratch/openModelicaForOmf/
Goal
Run basic OpenModelica model through python to learn the system. This is the beginning of a circuit modeling capability in the OMF to replace hack approaches and open up new modeling possibilities (inverters, Gridlab components, cross-checking).
OpenModelica Initial steps.
[X]Installed. Binaries work great on Windows.
[X]Find circuit example file. Transformer comparison. Modified to be simpler. Results:
[X]Run example in commandline. Results come in a binary Matlab format!
[X]Run example via python library. Installed OMPython. Not much improvement over command line.
[X]Display output in iPython. Need to handle .mat thing. Getting scipy for this. First need Fortran compiler in MinGW. Actually, screw it, we just used binaries from here: http://www.lfd.uci.edu/~gohlke/pythonlibs/.
[X]Graph the data.
[ ]Pull graph out of the data that actually makes sense.
[ ]How do we plot those sweet component diagrams? Notebook export code in OMEdit is a good target because we know it creates a png. This is probably where that code is: https://trac.openmodelica.org/OpenModelica/changeset/15648
Next Steps
What grid problems are we going to apply this to beyond simple circuit models (i.e. like the one we used to understand power routing technology)?
Already started in /omf/scratch/openModelicaForOmf/
Goal Run basic OpenModelica model through python to learn the system. This is the beginning of a circuit modeling capability in the OMF to replace hack approaches and open up new modeling possibilities (inverters, Gridlab components, cross-checking).
OpenModelica Initial steps. [X]Installed. Binaries work great on Windows. [X]Find circuit example file. Transformer comparison. Modified to be simpler. Results: [X]Run example in commandline. Results come in a binary Matlab format! [X]Run example via python library. Installed OMPython. Not much improvement over command line. [X]Display output in iPython. Need to handle .mat thing. Getting scipy for this. First need Fortran compiler in MinGW. Actually, screw it, we just used binaries from here: http://www.lfd.uci.edu/~gohlke/pythonlibs/. [X]Graph the data. [ ]Pull graph out of the data that actually makes sense. [ ]How do we plot those sweet component diagrams? Notebook export code in OMEdit is a good target because we know it creates a png. This is probably where that code is: https://trac.openmodelica.org/OpenModelica/changeset/15648
Next Steps What grid problems are we going to apply this to beyond simple circuit models (i.e. like the one we used to understand power routing technology)?
Reading Some thoughts on modeling the grid with Modelica: http://www.ep.liu.se/ecp/063/081/ecp11063081.pdf
Cyber-physical modeling in Modelica: http://vimeo.com/29728369 Intro to language: http://www.cds.caltech.edu/archive/help/uploads/wiki/files/12/Lecture1.pdf