Skip to content

Commit

Permalink
Allow for higher temperatures in mixtures of gases
Browse files Browse the repository at this point in the history
  • Loading branch information
fwitte committed Apr 16, 2024
1 parent 05fc9bc commit 51f5e3c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/tespy/tools/fluid_properties/helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,9 @@ def inverse_temperature_mixture(p=None, target_value=None, fluid_data=None, T0=N
valmin, valmax = get_mixture_temperature_range(fluid_data)
if T0 is None or T0 == 0 or np.isnan(T0):
T0 = (valmin + valmax) / 2.0
T0 = max(valmin,min(valmax,T0))
T0 = max(valmin, min(valmax, T0))

valmax *= 2

function_kwargs.update({
"p": p, "fluid_data": fluid_data, "T": T0,
Expand Down

0 comments on commit 51f5e3c

Please sign in to comment.