tidy3d.IndexPerturbation#
- class IndexPerturbation[source]#
Bases:
Tidy3dBaseModelA general medium perturbation model which is defined through perturbation to refractive index, n and k.
- Parameters:
delta_n (Optional[
ParameterPerturbation] = None) – Perturbation of the real part of refractive index.delta_k (Optional[
ParameterPerturbation] = None) – Perturbation of the imaginary part of refractive index.freq (NonNegativeFloat) – [units = Hz]. Frequency to evaluate permittivity at (Hz).
Example
>>> from tidy3d import LinearChargePerturbation, LinearHeatPerturbation, IndexPerturbation, C_0 >>> >>> heat_perturb = LinearHeatPerturbation( ... temperature_ref=300, ... coeff=0.001, ... ) >>> charge_perturb = LinearChargePerturbation( ... electron_ref=0, ... electron_coeff=0.0001, ... hole_ref=0, ... hole_coeff=0.0002, ... ) >>> dn_pb = ParameterPerturbation(heat=heat_perturb) >>> dk_pb = ParameterPerturbation(charge=charge_perturb) >>> index_pb = IndexPerturbation(delta_n=dn_pb, delta_k=dk_pb, freq=C_0)
Attributes
Methods
from_perturbation_delta_model(deltas_model)Create an IndexPerturbation from a DeltaPerturbationModel.
- delta_n#
- delta_k#
- freq#