Skip to content

flex_rf.tidy3d.SubpixelSpec

Type: class Base(s): Tidy3dBaseModel

Defines specification for subpixel averaging schemes when added to Simulation.subpixel.

dielectric [DielectricSubpixelType] = factory: PolarizedAveraging

Subpixel averaging method applied to dielectric material interfaces.

metal [MetalSubpixelType] = factory: Staircasing

Subpixel averaging method applied to metallic structure interfaces. A material is considered as metallic if its real part of relative permittivity is less than 1 at the central frequency.

pec [PECSubpixelType] = factory: PECConformal

Subpixel averaging method applied to PEC structure interfaces.

pmc [PMCSubpixelType] = factory: Staircasing

Subpixel averaging method applied to PMC structure interfaces.

lossy_metal [LossyMetalSubpixelType] = factory: SurfaceImpedance

Subpixel averaging method applied to td.LossyMetalMedium material interfaces.

courant_ratio(contain_pec_structures: bool, contain_sibc_structures: bool)

The scaling ratio applied to Courant number so that the courant number in the simulation is sim.courant * courant_ratio. So far only PEC subpixel averaging scheme and SIBC require deduction of Courant number.

staircasing()

Apply staircasing on all material boundaries.