Comments (4)
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.
scikit-odes has sundials bindings..
https://github.com/bmcage/odes
We should port the simulation bindings to use this instead of Julia.
from bondgraphtools.
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.
Release version 0.4 now uses scikits.odes for numerical integration.
from bondgraphtools.
Related Issues (20)
- Exceptions for empty models
- Error connecting exception needs better feedback
- Add error checking to constitutive relaiton generation
- Tutorial: Port Hamiltonians
- Contributors wiki
- Connecting to ports that do not exist incorrectly create new ports
- Export to matlab
- Installation and Readme
- Change ordered set impelementation
- Algebra Rework Take 1
- Reorganise API docs
- migrate to pyjulia v0.2 and diffeqpy v1.0 HOT 1
- Cannot create port following second tutorial. HOT 1
- Simple example raise "Key Error" exception HOT 1
- Simple example raise "NameError" exception HOT 2
- Unable to connect components with multiple port (like GY of TF) HOT 2
- The function simulate take a ndarray as an input for x0 but not for dx0 HOT 3
- Add Controlled Sources to components library HOT 1
- following tutorial 1, I got an error report HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from bondgraphtools.