tidy3d.AnisotropicPermittivity#

class AnisotropicPermittivity[source]#

Bases: AbstractPrincipalAxesTensor

Anisotropic (tensor) relative permittivity of a charge medium.

Parameters:
  • xx (float) – [units = None (relative permittivity)]. Principal relative permittivity along the local x-axis.

  • yy (float) – [units = None (relative permittivity)]. Principal relative permittivity along the local y-axis.

  • zz (float) – [units = None (relative permittivity)]. Principal relative permittivity along the local z-axis.

  • rotation (Optional[RotationAroundAxis] = None) – Optional rotation orienting the principal axes (xx, yy, zz) in the global frame. When None the principal axes coincide with the global axes (diagonal tensor).

Notes

Specified by the principal permittivities xx, yy, zz along local axes, plus an optional rotation that orients those axes in the global frame. The resulting tensor is symmetric with every eigenvalue at least 1, and the electric displacement is \(\mathbf{D} = \varepsilon_0 \varepsilon \mathbf{E}\).

The global tensor is \(R \, \mathrm{diag}(xx, yy, zz) \, R^T\), with \(R\) the active (counter-clockwise) rotation of rotation, so local axis \(i\) points along \(R e_i\). For example, RotationAroundAxis(axis=2, angle=theta) turns the local x-axis by theta from +x towards +y, which gives a positive xy component when xx > yy.

Use from_components() to build an instance from the six symmetric components in the global frame.

An anisotropic permittivity is supported only in charge simulations on the accelerated solver. The legacy solver, selected with use_accelerated_solver=False, and conduction simulations reject it. Reflection symmetry along an axis is rejected when the tensor couples that axis to the others. In a 2D simulation, the components along the zero-size axis do not enter the solution.

Example

>>> from tidy3d import RotationAroundAxis
>>> eps = AnisotropicPermittivity(xx=20.0, yy=20.0, zz=10.0)
>>> tilted = AnisotropicPermittivity(
...     xx=20.0, yy=5.0, zz=10.0, rotation=RotationAroundAxis(axis=2, angle=0.5)
... )
>>> eps = AnisotropicPermittivity.from_components(exx=20.0, eyy=15.0, ezz=10.0, exy=2.0)

Attributes

xx

yy

zz

rotation

Methods

from_components(exx, eyy, ezz[, exy, exz, eyz])

Build from the six symmetric tensor components in the global frame.

xx#
yy#
zz#
classmethod from_components(exx, eyy, ezz, exy=0.0, exz=0.0, eyz=0.0)[source]#

Build from the six symmetric tensor components in the global frame.

The components define the symmetric matrix [[exx, exy, exz], [exy, eyy, eyz], [exz, eyz, ezz]], whose eigenvalues must all be at least 1. It is diagonalized into principal permittivities (its eigenvalues) plus a rotation orienting the principal axes. The principal values come out sorted ascending, so xx is the smallest eigenvalue rather than exx.

Parameters:
  • exx (float) – xx component of the permittivity tensor.

  • eyy (float) – yy component of the permittivity tensor.

  • ezz (float) – zz component of the permittivity tensor.

  • exy (float = 0.0) – Off-diagonal xy (= yx) component.

  • exz (float = 0.0) – Off-diagonal xz (= zx) component.

  • eyz (float = 0.0) – Off-diagonal yz (= zy) component.

Example

>>> eps = AnisotropicPermittivity.from_components(exx=20.0, eyy=15.0, ezz=10.0, exy=2.0)
>>> eps.xx
10.0