flex_rf.tidy3d.Scene
Type: class │ Base(s): Tidy3dBaseModel
Description
Section titled “Description”Contains generic information about the geometry and medium properties common to all types of simulations.
Example(s)
Section titled “Example(s)”sim = Scene( structures=[ Structure( geometry=Box(size=(1, 1, 1), center=(0, 0, 0)), medium=Medium(permittivity=2.0), ), ], medium=Medium(permittivity=3.0),)Parameters
Section titled “Parameters”medium [MultiPhysicsMediumType3D] = factory: Medium |
|
Background medium of scene, defaults to vacuum if not specified. |
structures [tuple[Structure, ...] | None] = () |
|
Tuple of structures present in scene. Note: In regions of spatial overlap between structures, material properties are dictated by structure of higher priority. The priority for structure of |
structure_priority_mode [PriorityMode] = 'equal' |
|
This field only affects structures of |
plot_length_units [LengthUnit | None] = 'μm' |
|
When set to a supported |
Methods
Section titled “Methods”all_structures() |
|
List of all structures in the simulation including the background. |
background_structure() |
|
Returns structure representing the background of the |
bounds() |
|
Automatically defined scene’s bounds based on present structures. Infinite dimensions are ignored. If the scene contains no structures, the bounds are set to (-1, -1, -1), (1, 1, 1). Similarly, if along a given axis all structures extend infinitely, the bounds along that axis are set from -1 to 1. |
box() |
|
Automatically defined scene’s |
center() |
|
Automatically defined scene’s center. |
doping_absolute_minimum() |
|
Get the absolute minimum values of the doping concentrations. |
doping_bounds() |
|
Get the maximum and minimum of the doping |
eps_bounds(freq: float | None = None, eps_component: str | None = None) |
|
Compute range of (real) permittivity present in the scene at frequency “freq”. |
heat_charge_property_bounds(property: str) |
|
Compute range of the heat-charge simulation property present in the scene. |
heat_conductivity_bounds() |
|
Compute range of thermal conductivities present in the scene. |
intersecting_media(test_object: Box, structures: tuple[Structure, ...]) |
|
From a given list of structures, returns a set of |
intersecting_structures(test_object: Box, structures: tuple[Structure, ...]) |
|
From a given list of structures, returns a list of |
medium_map() |
|
Returns dict mapping medium to index in material. |
mediums() |
|
Returns set of distinct |
perturbed_mediums_copy(temperature: CustomSpatialDataType | None = None, electron_density: CustomSpatialDataType | None = None, hole_density: CustomSpatialDataType | None = None, interp_method: InterpMethod = 'linear') |
|
Return a copy of the scene with heat and/or charge data applied to all mediums that have perturbation models specified. That is, such mediums will be replaced with spatially dependent custom mediums that reflect perturbation effects. Any of temperature, electron_density, and hole_density can be |
plot(x: float | None = None, y: float | None = None, z: float | None = None, ax: Ax = None, hlim: tuple[float, float] | None = None, vlim: tuple[float, float] | None = None, fill_structures: bool = True, **patch_kwargs: Any) |
|
Plot each of scene’s components on a plane defined by one nonzero x,y,z coordinate. |
plot_3d(width: int = 800, height: int = 800) |
|
Render 3D plot of |
plot_eps(x: float | None = None, y: float | None = None, z: float | None = None, freq: float | None = None, alpha: float | None = None, ax: Ax = None, hlim: tuple[float, float] | None = None, vlim: tuple[float, float] | None = None, eps_lim: tuple[float | None, float | None] = (None, None), scale: PlotScale = 'lin') |
|
Plot each of scene’s components on a plane defined by one nonzero x,y,z coordinate. The permittivity is plotted in grayscale based on its value at the specified frequency. |
plot_heat_charge_property(x: float | None = None, y: float | None = None, z: float | None = None, alpha: float | None = None, cbar: bool = True, property: str = 'heat_conductivity', ax: Ax = None, hlim: tuple[float, float] | None = None, vlim: tuple[float, float] | None = None) |
|
Plot each of scebe’s components on a plane defined by one nonzero x,y,z coordinate. The thermal conductivity is plotted in grayscale based on its value. |
plot_heat_conductivity(x: float | None = None, y: float | None = None, z: float | None = None, alpha: float | None = None, cbar: bool = True, ax: Ax = None, hlim: tuple[float, float] | None = None, vlim: tuple[float, float] | None = None) |
|
Plot each of scebe’s components on a plane defined by one nonzero x,y,z coordinate. The thermal conductivity is plotted in grayscale based on its value. |
plot_structures(x: float | None = None, y: float | None = None, z: float | None = None, ax: Ax = None, hlim: tuple[float, float] | None = None, vlim: tuple[float, float] | None = None, fill: bool = True) |
|
Plot each of scene’s structures on a plane defined by one nonzero x,y,z coordinate. |
plot_structures_eps(x: float | None = None, y: float | None = None, z: float | None = None, freq: float | None = None, alpha: float | None = None, cbar: bool = True, reverse: bool = False, eps_lim: tuple[float | None, float | None] = (None, None), scale: PlotScale = 'lin', ax: Ax = None, hlim: tuple[float, float] | None = None, vlim: tuple[float, float] | None = None, grid: Grid = None, eps_component: PermittivityComponent | None = None) |
|
Plot each of scene’s structures on a plane defined by one nonzero x,y,z coordinate. The permittivity is plotted in grayscale based on its value at the specified frequency. |
plot_structures_heat_charge_property(x: float | None = None, y: float | None = None, z: float | None = None, alpha: float | None = None, cbar: bool = True, property: str = 'heat_conductivity', reverse: bool = False, ax: Ax = None, hlim: tuple[float, float] | None = None, vlim: tuple[float, float] | None = None) |
|
Plot each of scene’s structures on a plane defined by one nonzero x,y,z coordinate. The thermal conductivity is plotted in grayscale based on its value. |
plot_structures_heat_conductivity(x: float | None = None, y: float | None = None, z: float | None = None, alpha: float | None = None, cbar: bool = True, reverse: bool = False, ax: Ax = None, hlim: tuple[float, float] | None = None, vlim: tuple[float, float] | None = None) |
|
Plot each of scene’s structures on a plane defined by one nonzero x,y,z coordinate. The thermal conductivity is plotted in grayscale based on its value. |
plot_structures_property(x: float | None = None, y: float | None = None, z: float | None = None, freq: float | None = None, alpha: float | None = None, cbar: bool = True, reverse: bool = False, limits: tuple[float | None, float | None] = (None, None), scale: PlotScale = 'lin', ax: Ax = None, hlim: tuple[float, float] | None = None, vlim: tuple[float, float] | None = None, grid: Grid = None, property: Literal['eps', 'doping', 'N_a', 'N_d'] = 'eps', eps_component: PermittivityComponent | None = None) |
|
Plot each of scene’s structures on a plane defined by one nonzero x,y,z coordinate. The permittivity is plotted in grayscale based on its value at the specified frequency. |
size() |
|
Automatically defined scene’s size. |
sorted_structures() |
|
Returns a list of sorted structures based on their priority.In the sorted list, latter added structures take higher priority. |