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/f7c7d0e7-7d87-4ab4-8135-25d94e3664f2%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to