Skip to content

Commit d66306e

Browse files
remove the now obsolete heat solver warning
1 parent 2d869d4 commit d66306e

File tree

1 file changed

+0
-32
lines changed

1 file changed

+0
-32
lines changed

tidy3d/components/heat/simulation.py

Lines changed: 0 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@
2323
from ..geometry.primitives import Sphere, Cylinder
2424
from ..geometry.polyslab import PolySlab
2525
from ..scene import Scene
26-
from ..heat_spec import SolidSpec
2726

2827
from ..bc_placement import StructureBoundary, StructureStructureInterface
2928
from ..bc_placement import StructureSimulationBoundary, SimulationBoundary
@@ -206,37 +205,6 @@ def names_exist_sources(cls, val, values):
206205
)
207206
return val
208207

209-
""" Post-init validators """
210-
211-
def _post_init_validators(self) -> None:
212-
"""Call validators taking z`self` that get run after init."""
213-
self._warn_multiple_zones()
214-
215-
def _warn_multiple_zones(self):
216-
"""Warn about current restriction on number of adjacent zones."""
217-
218-
struc_src_map = {}
219-
for source in self.sources:
220-
for name in source.structures:
221-
struc_src_map[name] = source
222-
223-
unique_solid_zones = {
224-
(struc.medium.heat_spec, struc_src_map.get(struc.name, None))
225-
for struc in self.structures
226-
if isinstance(struc.medium.heat_spec, SolidSpec)
227-
}
228-
229-
if isinstance(self.medium.heat_spec, SolidSpec):
230-
unique_solid_zones.add((self.medium.heat_spec, None))
231-
232-
if len(unique_solid_zones) > 2:
233-
log.warning(
234-
"More than 2 different solid zones (zone = medium + source) are detected in the heat "
235-
"simulation. Make sure no more than 2 solid zones are adjacent to each other anywhere "
236-
"in the simulation domain. The simulation results may be inaccurate otherwise. "
237-
"This restriction will be removed in the upcoming Tidy3D versions."
238-
)
239-
240208
@equal_aspect
241209
@add_ax_if_none
242210
def plot_heat_conductivity(

0 commit comments

Comments
 (0)