tidy3d.plugins.smatrix.ports.base_terminal.AbstractTerminalPort#

class AbstractTerminalPort[source]#

Bases: AbstractBasePort, MicrowaveBaseModel

Class representing a single terminal-based port. All terminal ports must provide methods for computing voltage and current. These quantities represent the voltage between the terminals, and the current flowing from one terminal into the other.

Parameters:

name (str) – Unique name for the port.

Attributes

injection_axis

Injection axis of the port.

name

Methods

compute_current(sim_data)

Helper to compute current flowing into the port.

compute_voltage(sim_data)

Helper to compute voltage across the port.

to_field_monitors(freqs[, snap_center, grid])

DEPRECATED: Monitors used to compute the port voltage and current.

to_monitors(freqs[, snap_center, grid])

Monitors used to compute the port voltage and current.

to_source(source_time[, snap_center, grid])

Create a current source from a terminal-based port.

abstract property injection_axis#

Injection axis of the port.

abstract to_source(source_time, snap_center=None, grid=None, **kwargs)[source]#

Create a current source from a terminal-based port.

to_field_monitors(freqs, snap_center=None, grid=None)[source]#

DEPRECATED: Monitors used to compute the port voltage and current.

abstract to_monitors(freqs, snap_center=None, grid=None, **kwargs)[source]#

Monitors used to compute the port voltage and current.

abstract compute_voltage(sim_data)[source]#

Helper to compute voltage across the port.

abstract compute_current(sim_data)[source]#

Helper to compute current flowing into the port.