eta_s for turbocompressor as UDE(v) #935
-
|
Hi! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
|
Hi @JanKochanski, if it is only from tespy.tools.fluid_properties import isentropic
def calculate_eta_s(vol_flow):
# eta_s map lookup method
return 0.8
def eta_s_ude(ude):
c1, c2 = ude.conns
vol_flow = c1.calc_vol() * c1.m.val_SI
eta_s = calculate_eta_s(vol_flow)
return (
(c2.h.val_SI - c1.h.val_SI) * eta_s - (
isentropic(
c1.p.val_SI,
c1.h.val_SI,
c2.p.val_SI,
c1.fluid_data,
c1.mixing_rule,
) - c1.h.val_SI
)
)
def eta_s_ude_dependents(ude):
c1, c2 = ude.conns
return [c1.m, c1.p, c1.h, c2.p, c2.h] If you need frequency in there as well, you could have a look at the implementation of the efficiency map in the tespy/src/tespy/components/turbomachinery/pump.py Lines 614 to 638 in 90f3ba7 Best |
Beta Was this translation helpful? Give feedback.
Hi @fwitte,$\eta_s = f(\dot{v}, PR)$ , since I need both axis of the compressor map to locate the correct point. But I guess, since your code returns the residual of $\eta_s$ , I could just provide PR to the lookup function as well.
thanks for the quick reply! Actually,
Thank you for your help.
Best regards, Jan