vclibpy.components.expansion_valves package

Submodules

vclibpy.components.expansion_valves.bernoulli module

Module with simple bernoulli expansion valve

class vclibpy.components.expansion_valves.bernoulli.Bernoulli(A)[source]

Bases: ExpansionValve

Simple Bernoulli model.

Args:

A (float): Cross-sectional area of the expansion valve.

calc_m_flow_at_opening(opening)[source]

Calculate the mass flow rate for the given opening.

Args:

opening (float): Opening of valve between 0 and 1

Returns:

float: Mass flow rate in kg/s

calc_opening_at_m_flow(m_flow, **kwargs)[source]

Calculate the opening for the given mass flow rate

Args:

m_flow (float): Mass flow rate in kg/s **kwargs: Possible keyword arguments for child classes

Returns:

float: Opening

vclibpy.components.expansion_valves.expansion_valve module

Module with classes for EV models. They are not used for the calculation. They may be used to see if the output is correct.

class vclibpy.components.expansion_valves.expansion_valve.ExpansionValve(A)[source]

Bases: BaseComponent, ABC

Base class for an expansion valve.

Args:

A (float): Cross-sectional area of the expansion valve.

abstract calc_m_flow_at_opening(opening) float[source]

Calculate the mass flow rate for the given opening.

Args:

opening (float): Opening of valve between 0 and 1

Returns:

float: Mass flow rate in kg/s

abstract calc_opening_at_m_flow(m_flow, **kwargs) float[source]

Calculate the opening for the given mass flow rate

Args:

m_flow (float): Mass flow rate in kg/s **kwargs: Possible keyword arguments for child classes

Returns:

float: Opening

calc_outlet(p_outlet: float)[source]

Calculate isenthalpic expansion valve.

Args:

p_outlet (float): Outlet pressure level