Skip to content

Thaulino/2D-BPM

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

2D-BPM

Keywords: Beam-Propagation-Method, 2D, Scalar, Pade(1,1) Implementation of a simple Pade(1,1) Beam Propagation.

Setup and start

  • After cloning the repository install the dependencies by running:
> pip install -r requierements.txt  
  • The simulation should be started by running:
> python Simulation_scode.py  

Walkthrough

  1. The first step is to create the simulation area. It is internally represented by an 2D array which stores the refractive indexes.
  2. Some constraints are defined: resolution (pixel per um) and simulation frequency
  3. The eigenvalue ( fundamental mode) of the waveguide at the input plane is calculated
  4. The magnitude at the input plane is plotted.
    image magnitude distribution input
  5. The meshed simulation area is plotted.
    image meshed simulation area
  6. The beam propagation method is executed, this may take some seconds. The script will output a alive message by printing out:
-----> running
  1. The simulated magnitude distribution is plotted.
    image magnitude distribution
  2. The magnitude distribution at the output plane is plotted.
    image magnitude distribution output

Known issues

The simulation is not energy preserving due to inaccuracy, rounding and edge effects.

About

Keywords: Beam-Propagation-Method, 2D, Scalar, Python

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages