tidy3d icon indicating copy to clipboard operation
tidy3d copied to clipboard

Field projection result has strange plateaus

Open tomflexcompute opened this issue 1 year ago • 2 comments

I'm using this notebook to simulate metalens with a certain radius. A FieldProjectionCartesianMonitor is used to project the near field to areas around the focus. What I found strange is that when the lens radius is large, the projected field shows strange discontinuity.

For radius = 50 lambda, the projected field is smooth as expected. image

For radius = 200 lambda, the projected field has some strange "plateaus" at the center. image

For radius = 250 lambda, more "plateaus" are observed. image

In all simulations, the projected x and y in the FieldProjectionCartesianMonitor are the same so the "plateaus" are not due to under-sampling. @shashwat-sh could you take a look and see if you see anything wrong? I also attach the notebook here if you want to try. Running the notebook at a large radius does take a significant amount of time tho.

MidIRMetalens.zip

tomflexcompute avatar Jul 03 '23 15:07 tomflexcompute

Yeah zooming in on the 2D plot, it definitely looks strange. @shashwat-sh note that the projection distance increases as the diameter of the metalens increases - if I had to guess, it's probably again something related to overflow/numerical precision as the distance becomes large?

image

momchil-flex avatar Jul 07 '23 03:07 momchil-flex

what's the status of this?

tylerflex avatar Feb 01 '24 19:02 tylerflex