You could compare my work here to the wolfram system modeler. If you think of wolfram mathematica = sympy, then pymola = system modeller: http://www.wolfram.com/system-modeler/
They have the same kind of modelica -> wolframe equations export, so I think the use case is valid and most people will find it useful. On Tuesday, April 26, 2016 at 6:02:55 PM UTC-4, James Goppert wrote: > > I'm working on a Modelica compiler written in pure python that outputs a > sympy model. Please let me know if anyone is interested in contributing. > > Please see the jupyter notebook below for a quick overview of the current > capabilities: > > https://github.com/jgoppert/pymola/blob/master/test/Spring.ipynb > > The useful thing about the modelica language is that it can all be mapped > into one differential algebraic equation, that can be represented in > certain cases well in sympy. > > This allows one model in Modelica to be used to generate: > 1. Sympy models for mathematical analysis/ simulation. > 2. C/C++ code for embedded controllers/ estimators (to be done). > 3. Whatever else you can dream up. > > The compiler is very hack-able. I'm using jinja 2 for rendering the AST. > I'm using antlr4 python runtime to robustly construct the AST. > > I really need some good python programmers to help me get to the point > that the compiler can handle more language constructs and parse the entire > Modelica standard library. > This will enable use of many pre-written modelica models that handle > multi-body mechanics, control blocks, and many other. > https://github.com/modelica/Modelica > > Feel free to contact me if you are interested: > [email protected] > https://github.com/jgoppert/pymola > > -- You received this message because you are subscribed to the Google Groups "sympy" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at https://groups.google.com/group/sympy. To view this discussion on the web visit https://groups.google.com/d/msgid/sympy/21fe9cf1-fc6b-4c2d-a0fb-58d29f006add%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
