Thanks to visit codestin.com
Credit goes to github.com

Skip to content

A problem of "SetLayerPatternPolygon" #109

@fr0ger

Description

@fr0ger

Hi. I want to set a slab which is made of a unit cell like this:
屏幕截图 2023-10-28 112557

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!
image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions