tidy3d.AnisotropicPermittivity#
- class AnisotropicPermittivity[source]#
Bases:
AbstractPrincipalAxesTensorAnisotropic (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. WhenNonethe principal axes coincide with the global axes (diagonal tensor).
Notes
Specified by the principal permittivities
xx,yy,zzalong local axes, plus an optionalrotationthat 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 bythetafrom +x towards +y, which gives a positivexycomponent whenxx > 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. Reflectionsymmetryalong 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
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 arotationorienting the principal axes. The principal values come out sorted ascending, soxxis the smallest eigenvalue rather thanexx.- Parameters:
exx (float) –
xxcomponent of the permittivity tensor.eyy (float) –
yycomponent of the permittivity tensor.ezz (float) –
zzcomponent 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