We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b1aaf05 commit 29a2ba7Copy full SHA for 29a2ba7
tidy3d/components/tcad/source/heat.py
@@ -8,6 +8,7 @@
8
9
from tidy3d.components.tcad.source.abstract import StructureBasedHeatChargeSource
10
from tidy3d.constants import VOLUMETRIC_HEAT_RATE
11
+from tidy3d.components.data.data_array import SpatialDataArray
12
from tidy3d.log import log
13
14
@@ -20,7 +21,7 @@ class HeatSource(StructureBasedHeatChargeSource):
20
21
>>> heat_source = HeatSource(rate=1, structures=["box"])
22
"""
23
- rate: Union[float] = pd.Field(
24
+ rate: Union[float, SpatialDataArray] = pd.Field(
25
title="Volumetric Heat Rate",
26
description="Volumetric rate of heating or cooling (if negative) in units of "
27
f"{VOLUMETRIC_HEAT_RATE}.",
0 commit comments