tidy3d.PECConformal#

class PECConformal[source]#

Bases: AbstractSubpixelAveragingMethod

Apply a subpixel averaging method known as conformal mesh scheme to PEC boundaries.

Parameters:
  • attrs (dict = {}) – Dictionary storing arbitrary metadata for a Tidy3D object. This dictionary can be freely used by the user for storing data without affecting the operation of Tidy3D as it is not used internally. Note that, unlike regular Tidy3D fields, attrs are mutable. For example, the following is allowed for setting an attr obj.attrs['foo'] = bar. Also note that Tidy3D` will raise a TypeError if attrs contain objects that can not be serialized. One can check if attrs are serializable by calling obj.json().

  • timestep_reduction (ConstrainedFloatValue = 0.3) – Reduction factor between 0 and 1 such that the simulation’s time step size will be 1 - timestep_reduction times its default value. Accuracy can be improved with a smaller time step size, but simulation time increased as well.

Note

The algorithm is based on:

S. Dey and R. Mittra, “A locally conformal finite-difference time-domain (FDTD) algorithm for modeling three-dimensional perfectly conducting objects”, IEEE Microwave and Guided Wave Letters, 7(9), 273 (1997).

S. Benkler, N. Chavannes and N. Kuster, “A new 3-D conformal PEC FDTD scheme with user-defined geometric precision and derived stability criterion”, IEEE Transactions on Antennas and Propagation, 54(6), 1843 (2006).

Attributes

courant_ratio

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

attrs

Methods

Inherited Common Usage

timestep_reduction#
property courant_ratio#

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

__hash__()#

Hash method.