Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add ContourPath averaging option to dielectric subpixel #2297

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

### Added
- New `LobeMeasurer` tool in the `microwave` plugin that locates lobes in antenna patterns and calculates lobe measures like half-power beamwidth and sidelobe level.
- New subpixel averaging option `ContourPathAveraging` applied to dielectric material boundaries.

### Changed

Expand Down
2 changes: 2 additions & 0 deletions tidy3d/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -331,6 +331,7 @@

# subpixel
from .components.subpixel_spec import (
ContourPathAveraging,
HeuristicPECStaircasing,
PECConformal,
PolarizedAveraging,
Expand Down Expand Up @@ -623,6 +624,7 @@ def set_logging_level(level: str) -> None:
"Staircasing",
"VolumetricAveraging",
"PolarizedAveraging",
"ContourPathAveraging",
"HeuristicPECStaircasing",
"PECConformal",
"SurfaceImpedance",
Expand Down
18 changes: 16 additions & 2 deletions tidy3d/components/subpixel_spec.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,8 @@ class Staircasing(AbstractSubpixelAveragingMethod):


class PolarizedAveraging(AbstractSubpixelAveragingMethod):
"""Apply a polarized subpixel averaging method to dielectric boundaries.
"""Apply a polarized subpixel averaging method to dielectric boundaries, which
is a phenomenological approximation of :class:`.ContourPathAveraging`.

Note
----
Expand All @@ -51,7 +52,20 @@ class PolarizedAveraging(AbstractSubpixelAveragingMethod):
"""


DielectricSubpixelType = Union[Staircasing, PolarizedAveraging]
class ContourPathAveraging(AbstractSubpixelAveragingMethod):
"""Apply a contour-path subpixel averaging method to dielectric boundaries.

Note
----
The algorithm is based on:

A. Mohammadi, H. Nadgaran and M. Agio, "Contour-path effective
permittivities for the two-dimensional finite-difference
time-domain method", Optics express, 13(25), 10367-10381 (2005).
"""


DielectricSubpixelType = Union[Staircasing, PolarizedAveraging, ContourPathAveraging]


class VolumetricAveraging(AbstractSubpixelAveragingMethod):
Expand Down