tidy3d.LossyMetalMedium#
- class LossyMetalMedium[source]#
Bases:
Medium
Lossy metal that can be modeled with a surface impedance boundary condition (SIBC).
- 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 anattr
obj.attrs['foo'] = bar
. Also note that Tidy3D` will raise aTypeError
ifattrs
contain objects that can not be serialized. One can check ifattrs
are serializable by callingobj.json()
.name (Optional[str] = None) β Optional unique name for medium.
frequency_range (Tuple[float, float]) β [units = (Hz, Hz)]. Frequency range of validity for the medium.
allow_gain (Literal[False] = False) β Allow the medium to be active. Caution: simulations with a gain medium are unstable, and are likely to diverge.Simulations where βallow_gainβ is set to βTrueβ will still be charged even if diverged. Monitor data up to the divergence point will still be returned and can be useful in some cases.
nonlinear_spec (Union[NonlinearSpec, NonlinearSusceptibility] = None) β Nonlinear spec applied on top of the base medium properties.
modulation_spec (Optional[ModulationSpec] = None) β Modulation spec applied on top of the base medium properties.
viz_spec (Optional[VisualizationSpec] = None) β Plotting specification for visualizing medium.
heat_spec (Union[FluidSpec, SolidSpec, SolidMedium, FluidMedium, NoneType] = None) β DEPRECATED: Use td.MultiPhysicsMedium. Specification of the medium heat properties. They are used for solving the heat equation via the
HeatSimulation
interface. Such simulations can beused for investigating the influence of heat propagation on the properties of optical systems. Once the temperature distribution in the system is found usingHeatSimulation
object,Simulation.perturbed_mediums_copy()
can be used to convert mediums with perturbation models defined into spatially dependent custom mediums. Otherwise, theheat_spec
does not directly affect the running of an opticalSimulation
.permittivity (Literal[1] = 1.0) β [units = None (relative permittivity)]. Relative permittivity.
conductivity (Union[float, Box] = 0.0) β [units = S/um]. Electric conductivity. Defined such that the imaginary part of the complex permittivity at angular frequency omega is given by conductivity/omega.
fit_param (SurfaceImpedanceFitterParam = SurfaceImpedanceFitterParam(attrs={}, max_num_poles=5, tolerance_rms=0.001, frequency_sampling_points=20, log_sampling=True, type='SurfaceImpedanceFitterParam')) β Parameters for fitting surface impedance divided by (-1j * omega) over the frequency range using pole-residue pair model.
Notes
SIBC is most accurate when the skin depth is much smaller than the structure feature size. If not the case, please use a regular medium instead, or set
simulation.subpixel.lossy_metal
totd.VolumetricAveraging()
ortd.Staircasing()
.Example
>>> lossy_metal = LossyMetalMedium(conductivity=10, frequency_range=(9e9, 10e9))
Attributes
Number of poles in the fitted model.
Sampling frequencies used in fitting.
Fitted surface impedance divided by (-j omega) using pole-residue pair model within
frequency_range
.Methods
eps_diagonal_numerical
(frequency)Main diagonal of the complex-valued permittivity tensor for numerical considerations such as meshing and runtime estimation.
plot
([ax])Make plot of complex-valued surface imepdance model vs fitted model, at sampling frequencies.
surface_impedance
(frequencies)Computing surface impedance.
Inherited Common Usage
- allow_gain#
- permittivity#
- frequency_range#
- fit_param#
- property scaled_surface_impedance_model#
Fitted surface impedance divided by (-j omega) using pole-residue pair model within
frequency_range
.
- property num_poles#
Number of poles in the fitted model.
- property sampling_frequencies#
Sampling frequencies used in fitting.
- eps_diagonal_numerical(frequency)[source]#
Main diagonal of the complex-valued permittivity tensor for numerical considerations such as meshing and runtime estimation.
- Parameters:
frequency (float) β Frequency to evaluate permittivity at (Hz).
- Returns:
The diagonal elements of relative permittivity tensor relevant for numerical considerations evaluated at
frequency
.- Return type:
Tuple[complex, complex, complex]
- plot(ax=None)[source]#
Make plot of complex-valued surface imepdance model vs fitted model, at sampling frequencies. :param ax: Axes to plot the data on, if None, a new one is created. :type ax: matplotlib.axes._subplots.Axes = None
- Returns:
Matplotlib axis corresponding to plot.
- Return type:
matplotlib.axis.Axes
- __hash__()#
Hash method.