Code Monkey home page Code Monkey logo

single-mode-fopo's Introduction

SM-FOPO

Build Status

The repository holds the model of a unidirectional single mode FOPO based upon the system.

Updates in Version 2.0:

  • Introduction of the 7-band Banded Generalised Nonlinear Schrodinger equation for pulse propagation

  • Introduction of the Phase-modulation at every round trip for resonance to be reached

  • Use of Cython Memoryviews and Intel MKL libraries for compilation

  • Requirements:

    • Tested on Ubuntu Xenian.
    • Python 3.6 tested
    • mpi4py futures
    • The Conda Intel Python distribution found here
    • MKL libraries for compilation of the Cython code here

Installation:

bash build_install.sh

Note: Pass 'cluster' as an argument if you do not have sudo. sudo is used to install mpich for multinode computations.

Testing (unit-tests):

source activate intel && pytest code_testing/test*.py

Execution of FOPO:

bash run_oscilator.sh rounds cores library && bash run_posprocess.sh

Note:

  • rounds: Number of round trips
  • cores: Number of cores to use
  • library: mpi (Code uses mpi4py, needed for multiple nodes on cluster), joblib: Multicore computations, MKL: Runs with MKL libraries

Example: bash run_oscilator.sh 1000 4 mpi; will run the oscillator for 1000 rounds over 4 cores using mpi4py.

There is now a build script that downloads and installs miniconda with all the equilavent packadges needed. Beware to have sudo now for MPICH if not already installed.

In particular the repository has been branched to create a more efficient way to do the pulse propagation within the fibre since the grid cannot resolve all waves at the moment.

single-mode-fopo's People

Stargazers

 avatar  avatar

Watchers

 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.