{
  "title": "AnisotropicMedium",
  "public_path": "flex_rf.tidy3d.AnisotropicMedium",
  "lookup_path": "tidy3d.AnisotropicMedium",
  "slug": "flex_rf/tidy3d/AnisotropicMedium",
  "public_url": "/rf/latest/autogenerated/flex_rf/tidy3d/anisotropicmedium/",
  "object_kind": "class",
  "introduction": "Diagonally anisotropic medium.",
  "notes": "Only diagonal anisotropy is currently supported.",
  "examples": "```python\nmedium_xx = Medium(permittivity=4.0)\nmedium_yy = Medium(permittivity=4.1)\nmedium_zz = Medium(permittivity=3.9)\nanisotropic_dielectric = AnisotropicMedium(xx=medium_xx, yy=medium_yy, zz=medium_zz)\n```",
  "references": "",
  "signature": "class AnisotropicMedium(AbstractMedium)",
  "source": {
    "path": "flex/public/tidy3d/tidy3d/components/medium.py",
    "url": "",
    "lineno": 6050,
    "endlineno": 6323
  },
  "bases": [
    "AbstractMedium"
  ],
  "parameter_rows": [
    {
      "name": "xx",
      "annotation": "IsotropicUniformMediumType",
      "default": "",
      "description": "Medium describing the xx-component of the diagonal permittivity tensor.",
      "origin": "declared"
    },
    {
      "name": "yy",
      "annotation": "IsotropicUniformMediumType",
      "default": "",
      "description": "Medium describing the yy-component of the diagonal permittivity tensor.",
      "origin": "declared"
    },
    {
      "name": "zz",
      "annotation": "IsotropicUniformMediumType",
      "default": "",
      "description": "Medium describing the zz-component of the diagonal permittivity tensor.",
      "origin": "declared"
    },
    {
      "name": "allow_gain",
      "annotation": "bool | None",
      "default": "None",
      "description": "This field is ignored. Please set `allow_gain` in each component",
      "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": "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": "components",
      "kind": "function",
      "signature": "components()",
      "description": "Dictionary of diagonal medium components."
    },
    {
      "name": "elements",
      "kind": "attribute",
      "signature": "elements: dict[str, IsotropicUniformMediumType]",
      "description": "The diagonal elements of the medium as a dictionary."
    },
    {
      "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": "is_comp_pec",
      "kind": "function",
      "signature": "is_comp_pec(comp: Axis)",
      "description": "Whether the medium is a PEC."
    },
    {
      "name": "is_comp_pmc",
      "kind": "function",
      "signature": "is_comp_pmc(comp: Axis)",
      "description": "Whether the medium is a PMC."
    },
    {
      "name": "is_pec",
      "kind": "function",
      "signature": "is_pec()",
      "description": "Whether the medium is a PEC."
    },
    {
      "name": "is_pmc",
      "kind": "function",
      "signature": "is_pmc()",
      "description": "Whether the medium is a PMC."
    },
    {
      "name": "is_time_modulated",
      "kind": "function",
      "signature": "is_time_modulated()",
      "description": "Whether any component of the medium is time modulated."
    },
    {
      "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": "plot",
      "kind": "function",
      "signature": "plot(freqs: float, ax: Ax = None)",
      "description": "Plot n, k of a `Medium` as a function of frequency."
    },
    {
      "name": "sel_inside",
      "kind": "function",
      "signature": "sel_inside(bounds: Bound)",
      "description": "Return a new medium that contains the minimal amount data necessary to cover a spatial region defined by `bounds`."
    }
  ],
  "group": "flex_rf.tidy3d"
}
