Skip to content

Dasslc is a solver for differential-algebraic equations inspired by DASSL. A python module for dasslc is provided.

License

Notifications You must be signed in to change notification settings

asanet/dasslc2py

Repository files navigation

Python wrapper for DASSLC

This is a simple wrapper for using the "Differential-Algebraic System Solver in C" by Argimiro R. Secchi (PEQ/COPPE/UFRJ) in python.

Getting Started

All the information about the usage of this package can be found in example file

Dasslc2py/dasslc_example.py

Prerequisites

  • C compiler:
archlinux: $ sudo pacman -S gcc gcc-libs

Python 3 with numpy, pip and (optionally) matplotlib

archlinux: $ sudo pacman -S python python-numpy python-matplotlib
OBS: matplotlib is needed by the **dasslc_example.py** file
  • If you want sparse algebra support, you need to first compile Sparse. On linux, open a terminal in sparse/src directory and run:
$ make

Installing

  • In order to locally build this module, open a terminal at the dir Dasslc2py and run the following command
$ python setup.py build_ext --inplace
  • Instead, if you want to install it along with your python distribution, run
$ pip install .

Author

About

Dasslc is a solver for differential-algebraic equations inspired by DASSL. A python module for dasslc is provided.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published