Skip to content

clegaard/psl

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Python Systems Library (PSL)

PSL is a minimalistic library for simulating dynamical systems in Python using SciPy library.

Authors: Jan Drgona, Aaron Tuor, Stefan Dernbach, James Koch, Soumya Vasisht, Wenceslao Shaw Cortez, Draguna Vrabie

Installation

pip

python3 -m venv venv
source venv/bin/activate
python3 -m pip install .

Conda

$ conda create -n psl python=3.8
$ conda activate psl
(psl) $ conda install numpy
(psl) $ conda install scipy
(psl) $ conda install matplotlib
(psl) $ pip install pyts
(psl) $ pip install tqdm

Documentation

See online Documentation.

Syntax and Use

import psl
# instantiate selected dynamical system model
model = psl.systems['Duffing'](ts=0.01)
# simulate the dynamical system over nsim steps
out = model.simulate(nsim=2000)
# plot time series and phase portrait 
psl.plot.pltOL(Y=out['Y'], X=out['X'])
psl.plot.pltPhase(X=out['Y'])

Duffing_time_series Duffing_phase

Examples

See folder tests.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Jupyter Notebook 89.6%
  • Python 10.2%
  • MATLAB 0.2%