Skip to content

Commit

Permalink
disable subpixel averaging to ensure field stability
Browse files Browse the repository at this point in the history
  • Loading branch information
oskooi committed May 7, 2022
1 parent 026c48f commit 84e180d
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Metagrating3D/metagrating-meep.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Computes the transmittance of the m=+1 order
# for a 3d metagrating with the 2d design
# for a 3D metagrating with the 2D design
# imported from the file device1.csv

import meep as mp
Expand Down Expand Up @@ -85,7 +85,8 @@ def metagrating(P_pol: bool):
sources=sources,
geometry=geometry,
boundary_layers=boundary_layers,
k_point=k_point)
k_point=k_point,
eps_averaging=False)

flux = sim.add_mode_monitor(fcen,
0,
Expand Down

0 comments on commit 84e180d

Please sign in to comment.