From 26ac0655784f1b9f3b4491253c96d02e7f56e94d Mon Sep 17 00:00:00 2001 From: Ardavan Oskooi Date: Fri, 15 Nov 2024 13:26:07 -0800 Subject: [PATCH] Fix waveguide dimensions in mode-converter adjoint-optimization tutorial (#2933) * fix WAVEGUIDE_UM in mode_converter.py * fix WAVEGUIDE_UM in tutorial documentation --- doc/docs/Python_Tutorials/Adjoint_Solver.md | 2 +- python/examples/adjoint_optimization/mode_converter.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/doc/docs/Python_Tutorials/Adjoint_Solver.md b/doc/docs/Python_Tutorials/Adjoint_Solver.md index af4b4db51..54d874dbc 100644 --- a/doc/docs/Python_Tutorials/Adjoint_Solver.md +++ b/doc/docs/Python_Tutorials/Adjoint_Solver.md @@ -215,7 +215,7 @@ import numpy as np RESOLUTION_UM = 50 WAVELENGTH_MIN_UM = 1.26 WAVELENGTH_MAX_UM = 1.30 -WAVEGUIDE_UM = mp.Vector3(0.4, 3.0, 0) +WAVEGUIDE_UM = mp.Vector3(3.0, 0.4, 0) PADDING_UM = 0.6 PML_UM = 1.0 DESIGN_WAVELENGTHS_UM = (1.265, 1.270, 1.275, 1.285, 1.290, 1.295) diff --git a/python/examples/adjoint_optimization/mode_converter.py b/python/examples/adjoint_optimization/mode_converter.py index aee936d38..f25cb29c3 100644 --- a/python/examples/adjoint_optimization/mode_converter.py +++ b/python/examples/adjoint_optimization/mode_converter.py @@ -22,7 +22,7 @@ RESOLUTION_UM = 50 WAVELENGTH_MIN_UM = 1.26 WAVELENGTH_MAX_UM = 1.30 -WAVEGUIDE_UM = mp.Vector3(0.4, 3.0, 0) +WAVEGUIDE_UM = mp.Vector3(3.0, 0.4, 0) PADDING_UM = 0.6 PML_UM = 1.0 DESIGN_WAVELENGTHS_UM = (1.265, 1.270, 1.275, 1.285, 1.290, 1.295)