tidy3d.rf.CustomImpedanceSpec#

class CustomImpedanceSpec[source]#

Bases: MicrowaveBaseModel

Specification for custom transmission line voltages and currents in mode solvers.

Parameters:

Notes

The CustomImpedanceSpec class specifies how quantities related to transmission line modes are computed. It defines the paths for line integrals, which are used to compute voltage, current, and characteristic impedance of the transmission line.

Users must supply at least one of voltage or current path specifications to control where these integrals are evaluated. Both voltage_spec and current_spec cannot be None simultaneously.

Example

>>> from tidy3d.components.microwave.path_integrals.specs.voltage import AxisAlignedVoltageIntegralSpec
>>> from tidy3d.components.microwave.path_integrals.specs.current import AxisAlignedCurrentIntegralSpec
>>> voltage_spec = AxisAlignedVoltageIntegralSpec(
...     center=(0, 0, 0), size=(0, 0, 1), sign="+"
... )
>>> current_spec = AxisAlignedCurrentIntegralSpec(
...     center=(0, 0, 0), size=(2, 1, 0), sign="+"
... )
>>> impedance_spec = CustomImpedanceSpec(
...     voltage_spec=voltage_spec,
...     current_spec=current_spec
... )

Attributes

Methods

check_path_spec_combinations()

Validate that at least one of voltage_spec or current_spec is provided.

Inherited Common Usage

voltage_spec#
current_spec#
check_path_spec_combinations()[source]#

Validate that at least one of voltage_spec or current_spec is provided.

In order to define voltage/current/impedance, either a voltage or current path specification must be provided. Both cannot be None simultaneously.