Giter Site home page Giter Site logo

daskol / nls Goto Github PK

View Code? Open in Web Editor NEW
11.0 4.0 6.0 250 KB

Non-linear Schrodinger Equation Solver

License: MIT License

Makefile 1.27% Fortran 39.25% Python 56.48% JavaScript 2.09% CSS 0.10% Smarty 0.82%
nls equation schrodinger-equation physics-simulation quantum-mechanics

nls's Introduction

Build Status Coverage Status PyPi Downloads

Non-linear Schrodinger Equation Solver(NLS)

Description

Package to solve non-linear Schrodinger equation written with Fortran 95 and Python 2.

NLS is scientific package that provides ability to solve effeffectively non-linear schrodinger equation with reservoir. These equation describes exciton-polariton condensation in microcavities. NLS is built on native fortran code and is based on certain natural abstraction layer that wraps native solver. These features are reason that makes calcualtions with NLS fast.

Features

  • core written with native Fortran
  • wrapped with Python interaface
  • [DEV] executables written with native Fortran
  • [DEV] support for multithreading computation
  • [DEV] support for distributed computation

Gaussian Ring Pumping

Usage

Fortran executable

  1. Change directory to src/
  2. Run make
  3. Change directory to test/
  4. Run make and then run ./test_nls
  5. Change directory to bin/
  6. Run ./solve in order to start calculation
  7. Visualize solution with python2 src/visualize.py

Python module

  1. Change directory to src/
  2. Run make glue in order to build python lib in bin/ directory that incapsulate native code
  3. Use python to import native module in a way
    from nls.native import nls
    print(nls.version())
  1. Or use python to import python wrap in a way
    from nls import Problem
    model = Problem().model()
    model.report()
    model.solve()
    model.visualize()
    model.show()

Testing

Requirements

  1. Fortran compiler
  2. Python libraries numpy with f2py extension, matplotlib, and scipy.

Credits

© Daniel Bershatsky, 2015-2016

nls's People

Contributors

daskol avatar dependabot[bot] avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 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.