tidy3d.HeatSimulation#
- class HeatSimulation[source]#
Bases:
HeatChargeSimulationContains all information about heat simulation.
- Parameters:
center (tuple[Union[float, autograd.tracer.Box], Union[float, autograd.tracer.Box], Union[float, autograd.tracer.Box]] = (0.0, 0.0, 0.0)) – [units = um]. Center of object in x, y, and z.
size (tuple[Union[NonNegativeFloat, autograd.tracer.Box], Union[NonNegativeFloat, autograd.tracer.Box], Union[NonNegativeFloat, autograd.tracer.Box]]) – [units = um]. Size in x, y, and z directions.
medium (Union[
MultiPhysicsMedium,Medium,AnisotropicMedium,PECMedium,PMCMedium,PoleResidue,Sellmeier,Lorentz,Debye,Drude,FullyAnisotropicMedium,CustomMedium,CustomPoleResidue,CustomSellmeier,CustomLorentz,CustomDebye,CustomDrude,CustomAnisotropicMedium,PerturbationMedium,PerturbationPoleResidue,LossyMetalMedium,Medium2D,AnisotropicMediumFromMedium2D,FluidSpec,SolidSpec,SolidMedium,FluidMedium,ChargeConductorMedium,ChargeInsulatorMedium,SemiconductorMedium] = Medium()) – Background medium of simulation, defaults to a standard dispersion-lessMediumif not specified.structures (tuple[
Structure, …] = ()) – Tuple of structures present in simulation. Note: Structures defined later in this list override the simulation material properties in regions of spatial overlap.symmetry (tuple[Literal[0, 1], Literal[0, 1], Literal[0, 1]] = (0, 0, 0)) – Tuple of integers defining reflection symmetry across a plane bisecting the simulation domain normal to the x-, y-, and z-axis at the simulation center of each axis, respectively. Each element can be
0(symmetry off) or1(symmetry on).sources (tuple[Union[
HeatSource,HeatFromElectricSource,UniformHeatSource], …] = ()) – List of heat and/or charge sources.boundary_spec (tuple[Union[
HeatChargeBoundarySpec,HeatBoundarySpec], …] = ()) – List of boundary condition specifications.monitors (tuple[Union[
TemperatureMonitor,SteadyPotentialMonitor,SteadyFreeCarrierMonitor,SteadyEnergyBandMonitor,SteadyElectricFieldMonitor,SteadyCapacitanceMonitor,SteadyCurrentDensityMonitor], …] = ()) – Monitors in the simulation.grid_spec (Union[
UniformUnstructuredGrid,DistanceUnstructuredGrid]) – Grid specification for heat-charge simulation.version (str = 2.12.0.dev0) – String specifying the front end version number.
plot_length_units (Optional[Literal['nm', 'μm', 'um', 'mm', 'cm', 'm', 'mil', 'in']] = μm) – When set to a supported
LengthUnit, plots will be produced with proper scaling of axes and include the desired unit specifier in labels.structure_priority_mode (Literal['equal', 'conductor'] = equal) – This field only affects structures of priority=None. If equal, the priority of those structures is set to 0; if conductor, the priority of structures made of
LossyMetalMediumis set to 90,PECMediumto 100, and others to 0.analysis_spec (Optional[Union[
SteadyChargeDCAnalysis,IsothermalSteadyChargeDCAnalysis,SSACAnalysis,IsothermalSSACAnalysis,UnsteadyHeatAnalysis]] = None) – The analysis_spec is used to specify the type of simulation. Currently, it is used to specify Charge simulations or transient Heat simulations.use_accelerated_solver (Optional[bool] = None) – Controls whether the accelerated charge solver is used. When
None(default), the solver is selected automatically: the accelerated solver is used for steady-state charge simulations (DC and SSAC, isothermal or non-isothermal, with or without Fermi-Dirac statistics), falling back to the legacy CPU-only solver for unsupported configurations (impact ionization). Set toTrueto force the accelerated solver (if supported) orFalseto force the legacy CPU-only solver. Some models, such asMasettiMobility, are only available with the accelerated solver.
Example
>>> import tidy3d as td >>> heat_sim = td.HeatSimulation( ... size=(3.0, 3.0, 3.0), ... structures=[ ... td.Structure( ... geometry=td.Box(size=(1, 1, 1), center=(0, 0, 0)), ... medium=td.Medium( ... permittivity=2.0, heat_spec=td.SolidSpec( ... conductivity=1, ... capacity=1, ... ) ... ), ... name="box", ... ), ... ], ... medium=td.Medium(permittivity=3.0, heat_spec=td.FluidSpec()), ... grid_spec=td.UniformUnstructuredGrid( ... dl=0.1, min_edges_per_circumference=15, min_edges_per_side=2 ... ), ... sources=[td.HeatSource(rate=1, structures=["box"])], ... boundary_spec=[ ... td.HeatChargeBoundarySpec( ... placement=td.StructureBoundary(structure="box"), ... condition=td.TemperatureBC(temperature=500), ... ) ... ], ... monitors=[td.TemperatureMonitor(size=(1, 2, 3), name="sample", unstructured=True)], ... )
Attributes
mediumBackground medium of simulation, defaults to a standard dispersion-less
Mediumif not specified.sourcesmonitorsboundary_specgrid_specsymmetryanalysis_specuse_accelerated_solverstructuresTuple of structures present in simulation.
versionplot_length_unitsstructure_priority_modeValidating setup
sizecenterMethods
issue_warning_deprecated(data)Issue warning for 'HeatSimulations'.