tespy icon indicating copy to clipboard operation
tespy copied to clipboard

Implement guesses based on Temperature or Quality

Open fwitte opened this issue 9 months ago • 2 comments

Users should be able to specify a temperature or a quality guess, and based on this together with the pressure guess at the same point, the starting value of enthalpy can be calculated.

fwitte avatar Mar 11 '25 13:03 fwitte

I think #575 maybe be a duplicate of this one (or vice versa)

TristanM-TD avatar Mar 11 '25 14:03 TristanM-TD

To provide further context:

It is already possible to provide guess values to give the tespy solver a starting point. However, the guesses are only used for the variable in question, for example, h0 is a guess for the enthalpy and x0 is a guess for the vapour quality, but they are currently only used for the enthalpy and vapour quality respectively.

However, these guesses could also be combined with other variables or variable guesses. For example, if x and T0 or x0 and T0 have been defined it is possible to also calculate p0 and h0.

Currently, this has to be done externally, e.g. using CoolProp to calculate the enthalpy and pressure and then provide these as guesses to the solver.

TristanM-TD avatar Mar 11 '25 14:03 TristanM-TD