{
  "title": "FullyAnisotropicMedium",
  "public_path": "flex_rf.tidy3d.FullyAnisotropicMedium",
  "lookup_path": "tidy3d.FullyAnisotropicMedium",
  "slug": "flex_rf/tidy3d/FullyAnisotropicMedium",
  "public_url": "/rf/latest/autogenerated/flex_rf/tidy3d/fullyanisotropicmedium/",
  "object_kind": "class",
  "introduction": "Fully anisotropic medium including all 9 components of the permittivity and conductivity\ntensors.",
  "notes": "Provided permittivity tensor and the symmetric part of the conductivity tensor must\nhave coinciding main directions. A non-symmetric conductivity tensor can be used to model\nmagneto-optic effects. Note that dispersive properties and subpixel averaging are currently not\nsupported for fully anisotropic materials.\n\nSimulations involving fully anisotropic materials are computationally more intensive, thus,\nthey take longer time to complete. This increase strongly depends on the filling fraction of\nthe simulation domain by fully anisotropic materials, varying approximately in the range from\n1.5 to 5. The cost of running a simulation is adjusted correspondingly.",
  "examples": "```python\nperm = [[2, 0, 0], [0, 1, 0], [0, 0, 3]]\ncond = [[0.1, 0, 0], [0, 0, 0], [0, 0, 0]]\nanisotropic_dielectric = FullyAnisotropicMedium(permittivity=perm, conductivity=cond)\n```",
  "references": "",
  "signature": "class FullyAnisotropicMedium(AbstractMedium)",
  "source": {
    "path": "flex/public/tidy3d/tidy3d/components/medium.py",
    "url": "",
    "lineno": 6332,
    "endlineno": 6631
  },
  "bases": [
    "AbstractMedium"
  ],
  "parameter_rows": [
    {
      "name": "permittivity",
      "annotation": "TensorReal",
      "default": "[[1, 0, 0], [0, 1, 0], [0, 0, 1]]",
      "description": "Relative permittivity tensor.",
      "origin": "declared"
    },
    {
      "name": "conductivity",
      "annotation": "TensorReal",
      "default": "[[0, 0, 0], [0, 0, 0], [0, 0, 0]]",
      "description": "Electric conductivity tensor. Defined such that the imaginary part of the complex permittivity at angular frequency omega is given by conductivity/omega.",
      "origin": "declared"
    },
    {
      "name": "attrs",
      "annotation": "dict",
      "default": "factory: dict",
      "description": "Dictionary storing arbitrary metadata for a Tidy3D object. This dictionary can be freely used by the user for storing data without affecting the operation of Tidy3D as it is not used internally. Note that, unlike regular Tidy3D fields, `attrs` are mutable. For example, the following is allowed for setting an `attr` `obj.attrs['foo'] = bar`. Also note that Tidy3D will raise a `TypeError` if `attrs` contain objects that can not be serialized. One can check if `attrs` are serializable by calling `obj.model_dump_json()`.",
      "origin": "inherited"
    },
    {
      "name": "name",
      "annotation": "str | None",
      "default": "None",
      "description": "Optional unique name for medium.",
      "origin": "inherited"
    },
    {
      "name": "frequency_range",
      "annotation": "FreqBound | None",
      "default": "None",
      "description": "Optional range of validity for the medium.",
      "origin": "inherited"
    },
    {
      "name": "allow_gain",
      "annotation": "bool",
      "default": "False",
      "description": "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.",
      "origin": "inherited"
    },
    {
      "name": "nonlinear_spec",
      "annotation": "NonlinearSpec | NonlinearSusceptibility | None",
      "default": "None",
      "description": "Nonlinear spec applied on top of the base medium properties.",
      "origin": "inherited"
    },
    {
      "name": "modulation_spec",
      "annotation": "ModulationSpec | None",
      "default": "None",
      "description": "Modulation spec applied on top of the base medium properties.",
      "origin": "inherited"
    },
    {
      "name": "viz_spec",
      "annotation": "VisualizationSpec | None",
      "default": "None",
      "description": "Plotting specification for visualizing medium.",
      "origin": "inherited"
    },
    {
      "name": "heat_spec",
      "annotation": "ThermalSpecType | None",
      "default": "None",
      "description": "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`.",
      "origin": "inherited"
    }
  ],
  "members": [
    {
      "name": "eps_comp",
      "kind": "function",
      "signature": "eps_comp(row: Axis, col: Axis, frequency: float)",
      "description": "Single component the complex-valued permittivity tensor as a function of frequency."
    },
    {
      "name": "eps_diagonal",
      "kind": "function",
      "signature": "eps_diagonal(frequency: float)",
      "description": "Main diagonal of the complex-valued permittivity tensor as a function of frequency."
    },
    {
      "name": "eps_model",
      "kind": "function",
      "signature": "eps_model(frequency: float)",
      "description": "Complex-valued permittivity as a function of frequency."
    },
    {
      "name": "eps_sigma_diag",
      "kind": "function",
      "signature": "eps_sigma_diag()",
      "description": "Main components of permittivity and conductivity tensors and their directions."
    },
    {
      "name": "from_diagonal",
      "kind": "function",
      "signature": "from_diagonal(xx: Medium, yy: Medium, zz: Medium, rotation: RotationType)",
      "description": "Construct a fully anisotropic medium by rotating a diagonally anisotropic medium."
    },
    {
      "name": "n_cfl",
      "kind": "function",
      "signature": "n_cfl()",
      "description": "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`."
    },
    {
      "name": "permittivity_spd_and_ge_one",
      "kind": "function",
      "signature": "permittivity_spd_and_ge_one(val: TracedFloat)",
      "description": "Check that provided permittivity tensor is symmetric positive definite with eigenvalues >= 1."
    },
    {
      "name": "plot",
      "kind": "function",
      "signature": "plot(freqs: float, ax: Ax = None)",
      "description": "Plot n, k of a `FullyAnisotropicMedium` as a function of frequency."
    }
  ],
  "group": "flex_rf.tidy3d"
}
