Skip to content

Commit

Permalink
Revision
Browse files Browse the repository at this point in the history
  • Loading branch information
weiliangjin2021 committed Aug 9, 2024
1 parent 05912d5 commit f67964c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 9 deletions.
10 changes: 3 additions & 7 deletions tidy3d/components/grid/mesher.py
Original file line number Diff line number Diff line change
Expand Up @@ -522,13 +522,9 @@ def structure_steps(
min_steps = []
for structure in structures:
if isinstance(structure, Structure):
if (
isinstance(structure.medium, (PECMedium, Medium2D))
or isinstance(structure.medium, LossyMetalMedium)
or (
isinstance(structure.medium, AnisotropicMedium)
and structure.medium.is_comp_pec(axis)
)
if isinstance(structure.medium, (PECMedium, Medium2D, LossyMetalMedium)) or (
isinstance(structure.medium, AnisotropicMedium)
and structure.medium.is_comp_pec(axis)
):
# for 2d medium, will always ignore even if not PEC;
# later, this will be handled by _grid_corrections_2dmaterials
Expand Down
6 changes: 4 additions & 2 deletions tidy3d/components/medium.py
Original file line number Diff line number Diff line change
Expand Up @@ -6016,12 +6016,14 @@ class SkinDepthFitterParam(Tidy3dBaseModel):


class LossyMetalMedium(Medium):
"""Lossy metal modeled with a surface impedance boundary condition (SIBC).
"""Lossy metal that can be modeled with a surface impedance boundary condition (SIBC).
Notes
-----
SIBC is suitable when the skin depth is much smaller than the structure feature size.
SIBC is most accurate when the skin depth is much smaller than the structure feature size.
If not the case, please use a regular medium instead, or set ``simulation.subpixel.lossy_metal``
to ``td.VolumetricAveraging()`` or ``td.Staircasing()``.
Example
-------
Expand Down

0 comments on commit f67964c

Please sign in to comment.