tidy3d.plugins.smatrix.LumpedPort#

class LumpedPort[source]#

Bases: Box

Class representing a single lumped port

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().

  • center (Tuple[float, float, float] = (0.0, 0.0, 0.0)) – [units = um]. Center of object in x, y, and z.

  • size (Tuple[NonNegativeFloat, NonNegativeFloat, NonNegativeFloat]) – [units = um]. Size in x, y, and z directions.

  • name (ConstrainedStrValue) – Unique name for the port.

  • voltage_axis (Literal[0, 1, 2]) – Specifies the axis along which the E-field line integral is performed when computing the port voltage. The integration axis must lie in the plane of the port.

  • impedance (Union[tidycomplex, ComplexNumber] = 50) – [units = ohm]. Reference port impedance for scattering parameter computation.

  • num_grid_cells (Optional[PositiveInt] = 3) – Number of mesh grid cells associated with the port along each direction, which are added through automatic mesh refinement. A value of None will turn off automatic mesh refinement.

Attributes

current_axis

Integration axis for computing the port current via the magnetic field.

injection_axis

Injection axis of the port.

attrs

Methods

to_current_monitor(freqs, snap_center)

Field monitor to compute port current.

to_load(snap_center)

Create a load resistor from the lumped port.

to_source(source_time, snap_center)

Create a current source from the lumped port.

to_voltage_monitor(freqs, snap_center)

Field monitor to compute port voltage.

Inherited Common Usage

name#
voltage_axis#
impedance#
num_grid_cells#
property injection_axis#

Injection axis of the port.

property current_axis#

Integration axis for computing the port current via the magnetic field.

to_source(source_time, snap_center)[source]#

Create a current source from the lumped port.

to_load(snap_center)[source]#

Create a load resistor from the lumped port.

to_voltage_monitor(freqs, snap_center)[source]#

Field monitor to compute port voltage.

to_current_monitor(freqs, snap_center)[source]#

Field monitor to compute port current.

__hash__()#

Hash method.