Hi everybody,
I'm trying to configure a turbine based on vendor documents. So usually vendor provides several curves from which a characteristic curve eta_s=f(m) can be derived. However, even after reading the documentation thoroughly, I still cannot figure out the way to pass properly my custom eta_s_char.
Documentation says that for turbine component :
eta_s_char: isentropic efficiency vs. isentropic enthalpy difference/pressure ratio/volumetric flow/mass flow.
but doesn't tell how (at least I didn't find it).
So I think documentation could benefit from a clear reference on how do I tell TESPY:
- which curve I intend to select (eta_s vs mass flow for instance)
- how to calibrate the curve. I supposed that the design calculation is setting eta_s_design=f(m_design) and that offdesign figure would then be eta_s_offdesign=eta_s_design*interpolation(m_offdesign/m_design,x,y) where x are the reduced mass flow coordinates and y the associated efficiency degradation.
However, by running the following code taken from the documentation examples, it doesn't appear clearly to me.
from tespy.components import sink, source, turbine
from tespy.connections import connection
from tespy.networks import network
from tespy.tools.characteristics import char_line
fluid_list = ['water']
nw = network(fluids=fluid_list, p_unit='bar', T_unit='C', h_unit='kJ / kg', iterinfo=False)
si = sink('sink')
so = source('source')
t = turbine('turbine')
inc = connection(so, 'out1', t, 'in1')
outg = connection(t, 'out1', si, 'in1')
nw.add_conns(inc, outg)
t.set_attr(eta_s=0.9, design=['eta_s'], offdesign=['eta_s_char','cone'])
# Characteristics x as m/m_design and y as eta_s(m)/eta_s_design
t.set_attr(eta_s_char=char_line(x=[0.1, 0.3, 0.5, 0.7, 0.9, 1.1], y=[0.6, 0.65, 0.75, 0.82, 0.85, 0.79],extrapolate=False))
inc.set_attr(fluid={'water': 1}, m=10, T=550, p=110, design=['p'])
outg.set_attr(p=0.5)
nw.solve('design')
nw.print_results()
nw.save('tmp')
inc.set_attr(m=3)
nw.solve('offdesign', design_path='tmp')
nw.print_results()
Has anyone a clue ? Thanks in advance.
Hi everybody,
I'm trying to configure a turbine based on vendor documents. So usually vendor provides several curves from which a characteristic curve eta_s=f(m) can be derived. However, even after reading the documentation thoroughly, I still cannot figure out the way to pass properly my custom
eta_s_char.Documentation says that for turbine component :
but doesn't tell how (at least I didn't find it).
So I think documentation could benefit from a clear reference on how do I tell TESPY:
However, by running the following code taken from the documentation examples, it doesn't appear clearly to me.
Has anyone a clue ? Thanks in advance.