Code Monkey home page Code Monkey logo

polatrace's Introduction

PolaTrace, a Simulation Library for Polarization Evaluation in Optical Fiber

Author: Xiaojun (James) Chen from Inline Photonics Inc. Email: [email protected]

This open-source Python program was developed for the book "Polarization Measurement and Control in Optical Fiber Communication and Sensor Systems." By X. Steve Yao and Xiaojun(James) Chen. The package includes the following:

  1. PolaTrace library named polatrace.py is a library to display and emulates the optical polarization phenomenon in fiber.

  2. Application examples of the PolarTrace library:

Example 1: PolarizationEllipse.py. It displays polarization ellispe according to the inputs of amplitudes of Ex and Ey, and the phase difference between Ey and Ex: image

Example 2: JV-Ellipse-Stokes.py. It represents the polarization of a given optical electric field in polarization ellispe, and a Stokes vector on Poincare sphere. image

Example 3: Polarizaion elements.py. It displays the relationship between the input and output polarization state after light passes a polarization element, for example, waveplate, rotator, and partial polarizer. This program also shows the trace output polarization on the Poincare sphere when retardation or optical axis orientation is changed. This program can be used as a conversation between the Jones vector and the Stokes parameters of monochromatic light.
image

Example 4: Spun fiber.py. This program calculates and displays the polarization states evaluation along a spun fiber. The spun fiber is modeled by a continuously rotated linear polarization maintaining fiber. One can change the input polarization state, intrinsic linear birefringence, and rotating rate to see how these parameters influence polarization evaluation along the spun fiber.
image

Example 5: PMD simulation.py. This program calculates the polarization mode dispersion(PMD of a fiber consisting of six DGD segments. The curves of PMD vs. wavelength are displayed in the left graphs. The corresponding polarization principle state (PSP) and SOP evaluation vs. wavelength are shown on the Poincare sphere. One can change the DGD values of each fiber segment and their relative orientation angles to research how these parameters change the overall PMD of the fiber.

image

polatrace's People

Contributors

polarizationinfiber avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Forkers

xianglight

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.