-
Hi, it is possible to set another reference state for the calculation of the enthalpy and entropy? I'm still learning how to use the library but have been struggling with the divergence of number got from the solver report and Cengel book tables i'm using as guide. I know this are relatives, I just want to see number I am familiar with. Thanks.. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
Hi, I do not have access to a notebook right now to have a more detailed look, how custom reference states could be implemented on the TESPy side. Instead I suggest you could import CoolProp's PropsSI function (for pure fluids) and iterate over the connections (nw.conns['object']) and subtract the PropsSI result at reference temperature and pressure from the SI value (c.h.val_SI) of enthalpy and entropy of every connection. This should work for a quick fix, on the TESPy side I'll put something like a network attribute reference state on my list, which will be subtracted in the results processing automatically. Have a nice weekend |
Beta Was this translation helpful? Give feedback.
Hi,
I do not have access to a notebook right now to have a more detailed look, how custom reference states could be implemented on the TESPy side.
Instead I suggest you could import CoolProp's PropsSI function (for pure fluids) and iterate over the connections (nw.conns['object']) and subtract the PropsSI result at reference temperature and pressure from the SI value (c.h.val_SI) of enthalpy and entropy of every connection. This should work for a quick fix, on the TESPy side I'll put something like a network attribute reference state on my list, which will be subtracted in the results processing automatically.
Have a nice weekend