Giter VIP home page Giter VIP logo

Comments (4)

peter-cudmore avatar peter-cudmore commented on June 19, 2024

Hi Pierre.
Having a pure python simulator would definitely be ideal.

Unfortunately, last i checked SciPy does not have a functioning DAE solver, which is why we're using diffeqpy. However, if there is one floating around it would be great to replace the julia simulator with it.

I think the best approach here would be to see if the SciPy <-> Sundials interface is working, and fix that in SciPy if it's not.
Once that is working, it would be easy to completely remove the julia dependancies (which would be my preference) for simulation, whilst still allowing for julia code generation.

That being said, if someone wanted to write a quick-and-dirty DAE solver for internal use, that'd be great too.

from bondgraphtools.

peter-cudmore avatar peter-cudmore commented on June 19, 2024

scikit-odes has sundials bindings..

https://github.com/bmcage/odes

We should port the simulation bindings to use this instead of Julia.

from bondgraphtools.

pierre-haessig avatar pierre-haessig commented on June 19, 2024

OK, I had not in mind the ODE vs DAE issue. I've never used scikit.odes, but it sounds like a reasonable dependency. Their README claims a Python 3.3-3.5 compatibility which looks a bit outdated, but in common.py which feeds the setup.py, it's 3.5 - 3.7, so it's pretty up to date, with several fresh releases.

On my side, I've finished the Bond Graph course, and I ended up not doing BG simulations. I'll revisit this for the next iteration in November.

from bondgraphtools.

peter-cudmore avatar peter-cudmore commented on June 19, 2024

Release version 0.4 now uses scikits.odes for numerical integration.

from bondgraphtools.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.