tidy3d.ElectroOpticPerturbation#

class ElectroOpticPerturbation[source]#

Bases: Tidy3dBaseModel

Change of the refractive index by a static electric field through the linear (Pockels) and quadratic (DC Kerr) electro-optic effects.

Parameters:
  • pockels (Optional[ArrayLike[dtype=float, ndim=2, shape=(6, 3)]] = None) – [units = um/V]. Linear electro-optic coefficients \(r_{Ik}\) in the crystal frame, shape (6, 3). Rows are the Voigt indices xx, yy, zz, yz, xz, xy, columns the field components x, y, z.

  • kerr (Optional[ArrayLike[dtype=float, ndim=2, shape=(6, 6)]] = None) – [units = um^2/V^2]. Quadratic electro-optic coefficients \(s_{IJ}\) in the crystal frame, shape (6, 6), with rows and columns the Voigt indices xx, yy, zz, yz, xz, xy.

  • rotation (Optional[RotationAroundAxis] = None) – Rotation orienting the crystal axes in simulation axes. None aligns them with the simulation axes.

  • freq (PositiveFloat) – [units = Hz]. Frequency at which the refractive index of the unperturbed medium is evaluated (Hz). The resulting permittivity and conductivity changes are applied at all frequencies.

Notes

In the crystal frame, the optical impermeability \(\eta = \varepsilon^{-1}\) changes by

\[\Delta\eta_I = \sum_k r_{Ik} E_k + \sum_J s_{IJ} P_J,\]

with \(r\) given by pockels, \(s\) by kerr, Voigt indices \(I, J\) ordered xx, yy, zz, yz, xz, xy, and \(P = (E_x^2, E_y^2, E_z^2, 2 E_y E_z, 2 E_x E_z, 2 E_x E_y)\), so that \(s_{IJ}\) equals the tensor component \(s_{ijkl}\).

rotation orients the crystal axes with the convention of AnisotropicPermittivity: crystal axis \(i\) points along \(R e_i\) in simulation axes. The field is rotated into the crystal frame and \(\Delta\eta\) back into simulation axes.

Only the diagonal of \(\Delta\eta\) in simulation axes is applied, which is first-order exact for modes polarized and propagating along simulation axes. Diagonal component \(i\) of the medium changes its refractive index by \(\Delta n_i = -\frac{1}{2} n_i^3 \Delta\eta_{ii}\), with \(n_i\) its index at freq. The index change is converted into permittivity and conductivity changes as in IndexPerturbation and applied at all frequencies.

The electric field is in V/um, so pockels is in um/V (1 pm/V = 1e-6 um/V) and kerr in um^2/V^2 (1 m^2/V^2 = 1e12 um^2/V^2).

Example

>>> import numpy as np
>>> from tidy3d import C_0, ElectroOpticPerturbation, RotationAroundAxis
>>> eo = ElectroOpticPerturbation.from_trigonal_3m(
...     r13=10e-6,
...     r22=5e-6,
...     r33=30e-6,
...     r51=30e-6,
...     freq=C_0 / 1.55,
...     rotation=RotationAroundAxis(axis=0, angle=-np.pi / 2),
... )

Attributes

Methods

from_isotropic_kerr(s11, s12, freq)

Kerr coefficients of an isotropic medium, with \(s_{44} = (s_{11} - s_{12}) / 2\).

from_tetragonal_4mm(r13, r33, r42, freq[, ...])

Pockels coefficients of a crystal of point group 4mm, with the 4-fold axis along the crystal z axis.

from_trigonal_3m(r13, r22, r33, r51, freq[, ...])

Pockels coefficients of a crystal of point group 3m, with the 3-fold axis along the crystal z axis and a mirror plane normal to the crystal x axis.

pockels#
kerr#
rotation#
freq#
classmethod from_trigonal_3m(r13, r22, r33, r51, freq, rotation=None)[source]#

Pockels coefficients of a crystal of point group 3m, with the 3-fold axis along the crystal z axis and a mirror plane normal to the crystal x axis.

Parameters:
  • r13 (float) – Coefficient \(r_{13} = r_{23}\) (um/V).

  • r22 (float) – Coefficient \(r_{22} = -r_{12} = -r_{61}\) (um/V).

  • r33 (float) – Coefficient \(r_{33}\) (um/V).

  • r51 (float) – Coefficient \(r_{51} = r_{42}\) (um/V).

  • freq (float) – Frequency at which the unperturbed refractive index is evaluated (Hz).

  • rotation (RotationAroundAxis = None) – Rotation orienting the crystal axes in simulation axes.

Returns:

The electro-optic model.

Return type:

ElectroOpticPerturbation

classmethod from_tetragonal_4mm(r13, r33, r42, freq, rotation=None)[source]#

Pockels coefficients of a crystal of point group 4mm, with the 4-fold axis along the crystal z axis. The same pattern holds for a poled polymer with the poling direction along the crystal z axis.

Parameters:
  • r13 (float) – Coefficient \(r_{13} = r_{23}\) (um/V).

  • r33 (float) – Coefficient \(r_{33}\) (um/V).

  • r42 (float) – Coefficient \(r_{42} = r_{51}\) (um/V).

  • freq (float) – Frequency at which the unperturbed refractive index is evaluated (Hz).

  • rotation (RotationAroundAxis = None) – Rotation orienting the crystal axes in simulation axes.

Returns:

The electro-optic model.

Return type:

ElectroOpticPerturbation

classmethod from_isotropic_kerr(s11, s12, freq)[source]#

Kerr coefficients of an isotropic medium, with \(s_{44} = (s_{11} - s_{12}) / 2\).

Parameters:
  • s11 (float) – Coefficient \(s_{11}\), change of \(\eta\) along the field (um^2/V^2).

  • s12 (float) – Coefficient \(s_{12}\), change of \(\eta\) normal to the field (um^2/V^2).

  • freq (float) – Frequency at which the unperturbed refractive index is evaluated (Hz).

Returns:

The electro-optic model.

Return type:

ElectroOpticPerturbation