mirror of
https://github.com/edoverg/modeconverter.git
synced 2026-10-14 23:06:39 +00:00
the stop condition on the normalization run needs to be better analyzed. Specifically, we should understand where to position the monitor point. Before, it was in a far field point, outside the simulation cell. I've seen the simulation does not converge, at first glance. Now I'll try position it in a real physical point inside the cell. Let's see if it converges in a different way.
This commit is contained in:
+1
-1
@@ -75,7 +75,7 @@ xs = ys = np.linspace(-ff_monitor_size.x/2, ff_monitor_size.x/2, NX_DESIGN_GRID)
|
|||||||
#collection of points in the far-field monitor
|
#collection of points in the far-field monitor
|
||||||
ff_points = [mp.Vector3(x_p,y_p,ff_monitor_center.z) for x_p in xs for y_p in ys]
|
ff_points = [mp.Vector3(x_p,y_p,ff_monitor_center.z) for x_p in xs for y_p in ys]
|
||||||
|
|
||||||
stop_cond = mp.stop_when_fields_decayed(50, mp.Ex, ff_monitor_center, 1e-6)
|
stop_cond = mp.stop_when_fields_decayed(50, mp.Ex, NEAR_REGION_MONITOR_CENTER, 1e-6)
|
||||||
|
|
||||||
pml_layers = [mp.PML(PML_UM)]
|
pml_layers = [mp.PML(PML_UM)]
|
||||||
frequencies = [1/wavelength for wavelength in DESIGN_WAVELENGTHS_UM]
|
frequencies = [1/wavelength for wavelength in DESIGN_WAVELENGTHS_UM]
|
||||||
|
|||||||
Reference in New Issue
Block a user