Skip to content
Discussion options

You must be logged in to vote

Hi @fwitte,
thanks for the quick reply! Actually, $\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.
Thank you for your help.
Best regards, Jan

from tespy.tools.fluid_properties import isentropic


def calculate_eta_s(vol_flow, pr):
    # 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
    pr = c2.p.val_SI / c1.p.val_SI
    eta_s = calculate_eta_s(vol_flow, pr)
    return (
        (c2.h.val_SI - c1.h.val_SI) * eta_s - (
            isentropic(
…

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@fwitte
Comment options

@JanKochanski
Comment options

Answer selected by fwitte
@fwitte
Comment options

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