Skip to content

Commit 29a2ba7

Browse files
dbochkov-flexcomputemarc-flex
authored andcommitted
wip
1 parent b1aaf05 commit 29a2ba7

File tree

1 file changed

+2
-1
lines changed
  • tidy3d/components/tcad/source

1 file changed

+2
-1
lines changed

tidy3d/components/tcad/source/heat.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88

99
from tidy3d.components.tcad.source.abstract import StructureBasedHeatChargeSource
1010
from tidy3d.constants import VOLUMETRIC_HEAT_RATE
11+
from tidy3d.components.data.data_array import SpatialDataArray
1112
from tidy3d.log import log
1213

1314

@@ -20,7 +21,7 @@ class HeatSource(StructureBasedHeatChargeSource):
2021
>>> heat_source = HeatSource(rate=1, structures=["box"])
2122
"""
2223

23-
rate: Union[float] = pd.Field(
24+
rate: Union[float, SpatialDataArray] = pd.Field(
2425
title="Volumetric Heat Rate",
2526
description="Volumetric rate of heating or cooling (if negative) in units of "
2627
f"{VOLUMETRIC_HEAT_RATE}.",

0 commit comments

Comments
 (0)