用于光纤中的光传播的封装。
项目描述
SuPy模式
|蟒蛇| |文档| |引用|
该项目旨在产生一个有用的工具(python 库)来模拟各种参数和形式的传播模式。它还提供了计算这些模式之间的耦合系数的可能性,因此是模拟耦合器的实用工具。
文档
所有最新的可用文档都可用here <https://supymode.readthedocs.io/en/latest/>_或者您可以单击以下徽章:
|文档|
安装
点安装
该软件包已作为轮子上传,适用于一些操作系统(Linux、Windows)和一些 Python 版本(3.6、3.8)。因此,通过适当的配置,您可以简单地做到
.. 代码块:: python
pip3 安装 SuPyMode
手动安装
要手动安装(独立于操作系统),您需要安装:
- cmake (3.0+)
- 提升 (1.58+)
- Boost 组件:iostream 文件系统
为了使用 SuPyMode 模拟器库,必须安装 python 依赖项:
.. 代码块:: python
>>> pip3 install Numpy
>>> pip3 install Scipy
>>> pip3 install Pandas
>>> pip3 install Matplotlib
>>> pip3 install Shapely
>>> pip3 install Descartes
然后,下载并安装 SuPyMode 包:
.. 代码块:: python
>>> git clone https://github.com/MartinPdeS/SuPyModes.git
>>> cd SuPyModes && mkdir build && cd build
>>> cmake ..
>>> make install (Linux)
>>> msbuild INSTALL.vcxproj (from visual Studio powershell)
>>> cd ..
>>> pip3 install .
塞尔迈尔
某些材料的折射率通过 Sellmeier 方程计算:
.. 代码块:: python
Fused_silica(wavelength = 1.55)
Ambiant_air(wavelength = 1.55)
BK7_glass(wavelength = 1.55)
重要提示:模拟器中的所有单位都是微米!1.55 代表 1550 nm 的波长。
联系信息
截至 2021 年,该项目仍在开发中,如果您想合作,那将是一种乐趣。我鼓励你与我联系。
PyMieSim 由Martin Poinsinet de Sivry-Houle <https://github.com/MartinPdS>_ 编写。
电子邮件:martin.poinsinet-de-sivry@polymtl.ca <mailto:martin.poinsinet-de-sivry@polymtl.ca?subject=PyMieSim>_ 。
.. |蟒蛇| 图片::https ://img.shields.io/badge/Made%20with-Python-1f425f.svg:目标:https ://www.python.org/
.. |文档| 图片:: https://readthedocs.org/projects/supymode/badge/?version=latest :target: https://supymode.readthedocs.io/en/latest/?badge=latest
.. |引文| 图片::https ://zenodo.org/badge/366930899.svg:目标:https ://zenodo.org/badge/latestdoi/366930899