|
23 | 23 | from ..geometry.primitives import Sphere, Cylinder
|
24 | 24 | from ..geometry.polyslab import PolySlab
|
25 | 25 | from ..scene import Scene
|
26 |
| -from ..heat_spec import SolidSpec |
27 | 26 |
|
28 | 27 | from ..bc_placement import StructureBoundary, StructureStructureInterface
|
29 | 28 | from ..bc_placement import StructureSimulationBoundary, SimulationBoundary
|
@@ -206,37 +205,6 @@ def names_exist_sources(cls, val, values):
|
206 | 205 | )
|
207 | 206 | return val
|
208 | 207 |
|
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 |
| - |
240 | 208 | @equal_aspect
|
241 | 209 | @add_ax_if_none
|
242 | 210 | def plot_heat_conductivity(
|
|
0 commit comments