tidy3d.SubpixelSpec#

class SubpixelSpec[source]#

Bases: Tidy3dBaseModel

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

Parameters:

Attributes

Methods

courant_ratio(contain_pec_structures, ...)

The scaling ratio applied to Courant number so that the courant number in the simulation is sim.courant * courant_ratio.

staircasing()

Apply staircasing on all material boundaries.

Inherited Common Usage

dielectric#
metal#
pec#
pmc#
lossy_metal#
classmethod staircasing()[source]#

Apply staircasing on all material boundaries.

courant_ratio(contain_pec_structures, contain_sibc_structures)[source]#

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.