Skip to content

Commit

Permalink
write conductivity
Browse files Browse the repository at this point in the history
  • Loading branch information
adamchengtkc committed Jul 5, 2024
1 parent 15371c4 commit 2095ab7
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions warmth/resqpy_helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -638,17 +638,14 @@ def write_hexa_grid_with_timeseries(filename, nodes_series, cells, modelTitle =
indexable_element = 'cells',
uom = 'kg/m3')
if cond_per_cell is not None:
#
# we write thermal conductivity as its inverse, the thermal insulance
#
_ = rqp.Property.from_array(model,
np.reciprocal(cond_per_cell).astype(np.float32),
cond_per_cell.astype(np.float32),
source_info = 'SubsHeat',
keyword = 'insulance_thermal',
keyword = 'thermal_conductivity',
support_uuid = hexa.uuid,
property_kind = 'thermal insulance',
property_kind = 'thermal conductivity',
indexable_element = 'cells',
uom = 'deltaK.m2/W')
uom = 'W/(m.deltaK)')
if rhp_per_cell is not None:
_ = rqp.Property.from_array(model,
rhp_per_cell.astype(np.float32),
Expand Down

0 comments on commit 2095ab7

Please sign in to comment.