https://github.com/jonasbreuling/dae4py
https://github.com/jonasbreuling/dae4py
Last synced: 5 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/jonasbreuling/dae4py
- Owner: JonasBreuling
- License: bsd-3-clause
- Created: 2024-08-15T14:58:52.000Z (about 1 year ago)
- Default Branch: master
- Last Pushed: 2025-01-23T22:14:28.000Z (10 months ago)
- Last Synced: 2025-01-23T23:20:45.700Z (10 months ago)
- Language: Fortran
- Size: 1.02 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# dae4py - python implementation of solvers for differential algebraic equations (DAE's)
This repository is a collection of examples and solvers for the course [Differential Algebraic Equations I & II](https://www.inm.uni-stuttgart.de/lehre/dae/).
## Fixed step-size implementations
Two fixed step-size implementations are given
* [Implicit Runge-Kutta methods](dae4py/irk/irk.py)
* [Backward differentation formulas (BDF)](dae4py/bdf/bdf.py)
## Variable step-size Radau IIA methods
A variable step-size implementation of the Radau IIA method with odd number of stages is given in [radau.py](dae4py/radau/radau.py).
## Python wrapper for old fortran solvers.
* Four-stage Radau IIA method pside.f of [de Swart, Lioen and van der Veen](https://archimede.uniba.it/~testset/solvers/pside.php).
* 3 stage Radau IIA method radau.f of [Ernst Hairer](hhttp://www.unige.ch/~hairer/prog/stiff/radau5.f).
* 3, 5 and 7 stage Radau IIA method radau.f of [Ernst Hairer](https://www.unige.ch/~hairer/prog/stiff/radau.f).
* BDF methods of Linda Petzold
- [ddassl.f](https://www.netlib.org/ode/ddassl.f).
- [ddaskr.f](https://www.netlib.org/ode/daskr.tgz) (not implemented yet).
- [ddaspk.f](https://www.netlib.org/ode/daspk.tgz) (not implemented yet).
## Examples
All example discussed in the lecture are implemented here.
## Install
* unix
```bash
python -m venv myvenv
source myvenv/bin/activate
python -m pip install .
```
* windows
```bash
python -m venv myvenv
\myvenv\Scripts\activate.bat
python -m pip install .
```
Make sure that you are using the python interpreter of the virtual environment via
```bash
python -c "import os, sys; print(os.path.dirname(sys.executable))"
```
Compiling the fortran solvers on windows is by far not trivial. A simple and robust approach is to use WSL2 with Ubuntu.
* MacOS
tbd