Skip to content
Snippets Groups Projects
Commit 1be7b7f9 authored by Julian Heinze's avatar Julian Heinze
Browse files

convert to Kelvin instead of Celcicus + change viscosity

- for all temperature related arrays
parent eeef0360
No related branches found
No related tags found
1 merge request!105update for 2D conversion of a hydro-thermal model
...@@ -244,8 +244,10 @@ def _convert_to_SI_units(mesh: pv.UnstructuredGrid): ...@@ -244,8 +244,10 @@ def _convert_to_SI_units(mesh: pv.UnstructuredGrid):
for to_be_converted in arrays_to_be_converted for to_be_converted in arrays_to_be_converted
): ):
mesh[data] *= 1 / 86400 mesh[data] *= 1 / 86400
if "4TH" in data or "2ND" in data: elif "4TH" in data or "2ND" in data:
mesh[data] *= -1 / 86400 mesh[data] *= -1 / 86400
elif "HEAT" in data or "TEMP" in data:
mesh[data] = mesh[data] + [273.15] * len(mesh[data])
return mesh return mesh
......
...@@ -478,7 +478,7 @@ def materials_in_HT( ...@@ -478,7 +478,7 @@ def materials_in_HT(
phase_type="AqueousLiquid", phase_type="AqueousLiquid",
name="viscosity", name="viscosity",
type="Constant", type="Constant",
value=1, value=0.001124,
) )
model.media.add_property( model.media.add_property(
medium_id=material_id, medium_id=material_id,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment