This project aims to develop an useful tool design and optimize fiber optic tapered component.
SuPyMode is a Python library linked to a c++ core allowing for a flexible interface and fast computing core.
The library also aims to offer the end-user a great vizual tools for data analysis.
To this day, SuPyMode as been proven a useful tool to develop very-short 2x1 and 3x1 modally specific photonic lantern with very low loss and cross-talk.
Features
Fast and efficient simulation of fiber optic tapered components.
User-friendly interface for easy integration into existing workflows.
Comprehensive visualization tools for data analysis and interpretation.
Installation
SuPyMode is available on PyPI and Anaconda. Install it with:
Below is a short example computing the mode propgation in a simple fiber.
fromSuPyMode.workflowimportWorkflow,fiber_loader,Boundaries,BoundaryValue,DomainAlignmentwavelength=1550e-9fiber=fiber_loader.load_fiber('SMF28',clad_refractive_index=1.4444,remove_cladding=False)boundaries=[Boundaries(right=BoundaryValue.SYMMETRIC,top=BoundaryValue.SYMMETRIC),Boundaries(right=BoundaryValue.SYMMETRIC,top=BoundaryValue.ANTI_SYMMETRIC)]workflow=Workflow(fiber_list=[fiber],# List of fiber to be added in the mesh, the order matters.wavelength=wavelength,# Wavelength used for the mode computation.resolution=80,# Number of point in the x and y axis [is divided by half if symmetric or anti-symmetric boundaries].x_bounds=DomainAlignment.LEFT,# Mesh x-boundary structure.y_bounds=DomainAlignment.BOTTOM,# Mesh y-boundary structure.boundaries=boundaries,# Set of symmetries to be evaluated, each symmetry add a round of simulationn_sorted_mode=3,# Total computed and sorted mode.n_added_mode=2,# Additional computed mode that are not considered later except for field comparison [the higher the better but the slower].plot_geometry=True,# Plot the geometry mesh before computation.auto_label=True,# Auto labeling the mode. Label are not always correct and should be verified afterwards.itr_final=0.05,# Final value of inverse taper ratio to simulateindex_scrambling=0# Scrambling of refractive index value in order to lift mode degeneracy [useful for some analysis])workflow.superset.plot(plot_type='field',itr_list=[1.0,0.1])workflow.superset.plot(plot_type='index')workflow.superset.plot(plot_type='normalized-coupling')workflow.superset.plot(plot_type='adiabatic')
Building from source
For development or manual compilation, clone the repository and run:
If you use SuPyMode in academic work, please cite:
@article{de2024supymode,
title={SuPyMode: an open-source library for design and optimization of fiber optic components},
author={de Sivry-Houle, Martin Poinsinet and Becerra Deana, Rodrigo Itzamna and Virally, St{\'e}phane and Godbout, Nicolas and Boudoux, Caroline},
journal={Optics Continuum},
volume={3},
number={2},
pages={242--255},
year={2024},
publisher={Optica Publishing Group}
}
Data provided by the project maintainers, verified at the time the release was uploaded to PyPI. Confirms that the provided email matches a verified, public email address on a PyPI user account associated with the project.
Data provided by the project maintainers, verified at the time the release was uploaded to PyPI. Confirms that the provided email matches a verified, public email address on a PyPI user account associated with the project.
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
You are visitor 01402792 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.