-
Notifications
You must be signed in to change notification settings - Fork 166
Description
Hi. I want to set a slab which is made of a unit cell like this:
The part framed by the red line is the cell I constructed. Inside this, I expect all the triangles are air(epsilon=1), and the rest to be a uniform medium(epsilon=2.02^2).
The problem is when I set these triangles with S:SetLayerPatternPolygon, even though I have set them to epsilon=1, I always end up with an error when I use S:GetEpsilon to check the dielectric constant distribution, as shown in the image above (yellow means high permittivity refer to color bar).
I think this problem is universal. Because no matter how I switch my SetLayerPatternPolygons, those triangles with abnormal permittivity will always be the second-to-last and third-to-last.
I wonder if there is a solution or a way around it. Many thanks!