Skip to content

Reference State #435

Answered by fwitte
WillamysC asked this question in Q&A
Sep 1, 2023 · 1 comments · 2 replies
Discussion options

You must be logged in to vote

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

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@WillamysC
Comment options

@fwitte
Comment options

Answer selected by WillamysC
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants