Giter Club home page Giter Club logo

psl's Introduction

PSL: Python Systems Library v1.3.1

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

1.3.1 release notes

  • Optional pytorch backend via torchdiffeq for all systems in autonomous.py
  • Faster numpy integration for systems in autonomous.py
  • Sampling of initial conditions and control inputs over dynamic range via get_U, and get_x0 functions for all systems.
  • Coupled dynamical systems in coupled_systems.py module

Documentation

See online Documentation.

Setup

$ 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
(psl) $ conda install torchdiffeq

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.

psl's People

Contributors

aaron-tuor avatar abhyshr avatar drgona avatar mkfold avatar shawcortezpnnl avatar sovasisht avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

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.