Skip to content

Commit 4c6e51b

Browse files
version 1.11
bpm.py and user_interface.py: Waveguides can have a finite z dimension. Remove the losses menu to incorporate the losses in the refractive index. Correct an error in the Kerr calculation. Previous results were wrong by a factor 2eta/no = 753/no. Add the nonlinear refractive index n2 as a alternative to chi3. Change most of the operations into numpy ones to speed up the computation. Add a option to select which waveguide width and dn are used to find the corresponding optical mode. Copy the main_compute function into the user_interface to be able to display the computation progression onto the interface. The power in each waveguides can be computed and displayed without recomputing the whole propagation. Variables chi3, n2 and irrad are now defined by a significand and a exponent, allowing to choose a larger range in the interface version. Correct an error in the power calculation for curved waveguides. Previous results were wrong for high curvature factor. Change the linestyle in the power display to have more control over it. examples.py: Update examples. Add a multimodal beam splitter example. Add an attempt of benchmarking the Kerr effect.
1 parent 5abd195 commit 4c6e51b

File tree

127 files changed

+10455
-6785
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

127 files changed

+10455
-6785
lines changed

README.rst

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,11 @@ The light propagation is done by the bpm module.
1111
An user interface - done using Qt desginer - allows to control the parameters
1212
and display the results.
1313

14-
This project was done by Jonathan Peltier and Marcel Soubkovsky during a master
15-
university course from the PAIP master of the université de Lorraine,
14+
This project was initiate by Jonathan Peltier and Marcel Soubkovsky during a
15+
master university course from the PAIP master of the université de Lorraine,
1616
under the directive of Pr. Nicolas Fressengeas.
1717

18-
The bpm codes are mainly based on a compilation of MatLab codes initialy
18+
The bpm core codes are mainly based on a compilation of MatLab codes initialy
1919
developed by Régis Grasser during his PhD thesis [#thesis]_,
2020
and later modified at the FEMTO-ST institute of the Université de
2121
Franche-Comté and at the LMOPS laboratory [#lmops]_ of the
@@ -43,7 +43,8 @@ The online documentation can be found at
4343
The source code of the whole project can be found at
4444
`<https://github.com/Python-simulation/Beampy/>`_.
4545

46-
The PyPI repository can be found at `<https://pypi.org/project/beampy/>`_.
46+
The PyPI repository can be found at
47+
`<https://pypi.org/project/beampy/>`_.
4748

4849

4950
Installation

beampy/__init__.py

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@
1616
defines the :class:`beampy.interface.setupUi` class.
1717
And also define the unused :class:`retranslateUi`
1818
19-
This project was done by Jonathan Peltier and Marcel Soubkovsky during a master
20-
university course from the PAIP master of the université de Lorraine,
19+
This project was initiate by Jonathan Peltier and Marcel Soubkovsky during
20+
a master university course from the PAIP master of the université de Lorraine,
2121
under the directive of Pr. Nicolas Fressengeas.
2222
2323
The bpm codes are mainly based on a compilation of MatLab codes initialy
@@ -29,24 +29,21 @@
2929
# module
3030
from beampy import examples
3131

32-
__version__ = "1.1"
32+
__version__ = "1.11"
3333

3434

3535
def help():
3636
print("Use the open_app function to launch the beampy app.")
3737
print("Possible way to do so: beampy.open_app(),")
38-
print("beampy.user_interface.open_app().")
3938
print("Or open the user_interface.py")
40-
print("or __init__.py file from the beampy module")
4139
print("\n")
4240
print("For more help, open the documentation with:")
4341
print("beampy.open_doc() or")
44-
print("with beampy.user_interface.open_doc()")
4542
print("\n")
4643
print("Examples can be found using beampy.examples")
47-
print("and the example name, for example: .example_beams()")
44+
print("and the example name, for example: beampy.examples.gaussian_beam()")
4845
print("\n")
49-
print("All the documentation can be found on the site:")
46+
print("All the documentation can be found on the website:")
5047
print("https://beampy.readthedocs.io")
5148

5249

0 commit comments

Comments
 (0)