tidy3d.plugins.smatrix.TerminalComponentModeler#

class TerminalComponentModeler[source]#

Bases: AbstractComponentModeler

Tool for modeling two-terminal multiport devices and computing port parameters with lumped ports.

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

  • simulation (Simulation) โ€“ Simulation describing the device without any sources present.

  • ports (Tuple[Union[LumpedPort, CoaxialLumpedPort], ...] = ()) โ€“ Collection of lumped ports associated with the network. For each port, one simulation will be run with a lumped port source.

  • freqs (Union[Tuple[float, ...], ArrayLike[dtype=float, ndim=1]]) โ€“ [units = Hz]. Array or list of frequencies at which to compute port parameters.

  • remove_dc_component (bool = True) โ€“ Whether to remove the DC component in the Gaussian pulse spectrum. If True, the Gaussian pulse is modified at low frequencies to zero out the DC component, which is usually desirable so that the fields will decay. However, for broadband simulations, it may be better to have non-vanishing source power near zero frequency. Setting this to False results in an unmodified Gaussian pulse spectrum which can have a nonzero DC component.

  • folder_name (str = default) โ€“ Name of the folder for the tasks on web.

  • verbose (bool = False) โ€“ Whether the AbstractComponentModeler should print status and progressbars.

  • callback_url (Optional[str] = None) โ€“ Http PUT url to receive simulation finish event. The body content is a json file with fields {'id', 'status', 'name', 'workUnit', 'solverVersion'}.

  • path_dir (str = .) โ€“ Base directory where data and batch will be downloaded.

  • solver_version (Optional[str] = None) โ€“ batch_cached : Optional[Batch] = None Optional field to specify batch. Only used as a workaround internally so that batch is written when .to_file() and then the proper batch is loaded from .from_file(). We recommend leaving unset as setting this field along with fields that were not used to create the task will cause errors.

Attributes

sim_dict

Generate all the Simulation objects for the port parameter calculation.

ports

attrs

Methods

plot_sim([x,ย y,ย z,ย ax])

Plot a Simulation with all sources added for each port, for troubleshooting.

plot_sim_eps([x,ย y,ย z,ย ax])

Plot permittivity of the Simulation with all sources added for each port.

Inherited Common Usage

ports#
plot_sim(x=None, y=None, z=None, ax=None, **kwargs)[source]#

Plot a Simulation with all sources added for each port, for troubleshooting.

plot_sim_eps(x=None, y=None, z=None, ax=None, **kwargs)[source]#

Plot permittivity of the Simulation with all sources added for each port.

property sim_dict#

Generate all the Simulation objects for the port parameter calculation.

__hash__()#

Hash method.