tidy3d.plugins.smatrix.ModalComponentModelerData#
- class ModalComponentModelerData[source]#
Bases:
AbstractComponentModelerDataA data container for the results of a
ModalComponentModelerrun.- 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,
attrsare mutable. For example, the following is allowed for setting anattrobj.attrs['foo'] = bar. Also note that Tidy3D will raise aTypeErrorifattrscontain objects that can not be serialized. One can check ifattrsare serializable by callingobj.json().modeler (ModalComponentModeler) β The original
ModalComponentModelerobject that defines the simulation setup and from which this data was generated.data (SimulationDataMap) β A mapping from task names to
SimulationDataobjects, containing the results of each simulation run.log (Optional[str] = None) β A string containing the log information from the modeler post-processing run.
obtained (This class stores the original modeler and the simulation data)
to (from running the simulations it defines. It also provides a method)
data. (compute the S-matrix from the simulation)
Attributes
dataMethods
smatrix()Computes and returns the scattering matrix (S-matrix).
Inherited Common Usage
- modeler#
- smatrix()[source]#
Computes and returns the scattering matrix (S-matrix).
The S-matrix is computed from the simulation data using the
modal_construct_smatrix()function.- Returns:
The computed S-matrix.
- Return type:
- __hash__()#
Hash method.