Skip to content

flex_rf.tidy3d.FullyAnisotropicMedium

Type: class Base(s): AbstractMedium

Fully anisotropic medium including all 9 components of the permittivity and conductivity tensors.

Provided permittivity tensor and the symmetric part of the conductivity tensor must have coinciding main directions. A non-symmetric conductivity tensor can be used to model magneto-optic effects. Note that dispersive properties and subpixel averaging are currently not supported for fully anisotropic materials.

Simulations involving fully anisotropic materials are computationally more intensive, thus, they take longer time to complete. This increase strongly depends on the filling fraction of the simulation domain by fully anisotropic materials, varying approximately in the range from 1.5 to 5. The cost of running a simulation is adjusted correspondingly.

perm = [[2, 0, 0], [0, 1, 0], [0, 0, 3]]
cond = [[0.1, 0, 0], [0, 0, 0], [0, 0, 0]]
anisotropic_dielectric = FullyAnisotropicMedium(permittivity=perm, conductivity=cond)
name [str | None] = None

Optional unique name for medium.

frequency_range [FreqBound | None] = None

Optional range of validity for the medium.

allow_gain [bool] = 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 [NonlinearSpec | NonlinearSusceptibility | None] = None

Nonlinear spec applied on top of the base medium properties.

modulation_spec [ModulationSpec | None] = None

Modulation spec applied on top of the base medium properties.

viz_spec [VisualizationSpec | None] = None

Plotting specification for visualizing medium.

heat_spec [ThermalSpecType | None] = None

DEPRECATED: Use 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 using HeatSimulation object, Simulation.perturbed_mediums_copy() can be used to convert mediums with perturbation models defined into spatially dependent custom mediums. Otherwise, the heat_spec does not directly affect the running of an optical Simulation.

permittivity [TensorReal] = [[1, 0, 0], [0, 1, 0], [0, 0, 1]]

Relative permittivity tensor.

conductivity [TensorReal] = [[0, 0, 0], [0, 0, 0], [0, 0, 0]]

Electric conductivity tensor. Defined such that the imaginary part of the complex permittivity at angular frequency omega is given by conductivity/omega.

eps_comp(row: Axis, col: Axis, frequency: float)

Single component the complex-valued permittivity tensor as a function of frequency.

eps_diagonal(frequency: float)

Main diagonal of the complex-valued permittivity tensor as a function of frequency.

eps_model(frequency: float)

Complex-valued permittivity as a function of frequency.

eps_sigma_diag()

Main components of permittivity and conductivity tensors and their directions.

from_diagonal(xx: Medium, yy: Medium, zz: Medium, rotation: RotationType)

Construct a fully anisotropic medium by rotating a diagonally anisotropic medium.

n_cfl()

This property computes the index of refraction related to CFL condition, so that the FDTD with this medium is stable when the time step size that doesn’t take material factor into account is multiplied by n_cfl.

permittivity_spd_and_ge_one(val: TracedFloat)

Check that provided permittivity tensor is symmetric positive definite with eigenvalues >= 1.

plot(freqs: float, ax: Ax = None)

Plot n, k of a FullyAnisotropicMedium as a function of frequency.