This is cool stuff. I'd always imagined outputting modelica models from
sympy instead of the other way around. Aren't there already a lot of
software packages that take modelica models as input for various numerical
analyses purposes? For multi-body dynamics models, constructing the model
and generating the correct differential algebraic equations is the hard
part. It'd be nice to pass these off to modelica based tools. Doesn't
JModelica offer all the simulation side of things? I thought it generated
code from modelica models and is Python based.

What is the use case for converting a pre-generated modelica model into
sympy symbolics? Why not generate code, your #2, directly from modelica
model code?


Jason
moorepants.info
+01 530-601-9791

On Tue, Apr 26, 2016 at 2:55 PM, James Goppert <[email protected]>
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/f7c7d0e7-7d87-4ab4-8135-25d94e3664f2%40googlegroups.com
> <https://groups.google.com/d/msgid/sympy/f7c7d0e7-7d87-4ab4-8135-25d94e3664f2%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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/CAP7f1AhbO4J4nzkENcQpHRvYdkfwXYoCDx6qcCFzRAhAiSajWQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to