vclibpy.components package
Subpackages
- vclibpy.components.compressors package
- Submodules
- vclibpy.components.compressors.compressor module
- vclibpy.components.compressors.constant_effectivness module
- vclibpy.components.compressors.rotary module
- vclibpy.components.compressors.ten_coefficient module
- vclibpy.components.expansion_valves package
- vclibpy.components.heat_exchangers package
- Subpackages
- vclibpy.components.heat_exchangers.heat_transfer package
- Submodules
- vclibpy.components.heat_exchangers.heat_transfer.air_to_wall module
- vclibpy.components.heat_exchangers.heat_transfer.constant module
- vclibpy.components.heat_exchangers.heat_transfer.heat_transfer module
- vclibpy.components.heat_exchangers.heat_transfer.pipe_to_wall module
- vclibpy.components.heat_exchangers.heat_transfer.vdi_atlas_air_to_wall module
- vclibpy.components.heat_exchangers.heat_transfer.wall module
- vclibpy.components.heat_exchangers.heat_transfer package
- Submodules
- vclibpy.components.heat_exchangers.economizer module
VaporInjectionEconomizerNTU
VaporInjectionEconomizerNTU.calc()
VaporInjectionEconomizerNTU.calc_alpha_secondary()
VaporInjectionEconomizerNTU.calc_transport_properties_secondary_medium()
VaporInjectionEconomizerNTU.set_secondary_cp()
VaporInjectionEconomizerNTU.start_secondary_med_prop()
VaporInjectionEconomizerNTU.state_two_phase_inlet
VaporInjectionEconomizerNTU.state_two_phase_outlet
VaporInjectionEconomizerNTU.terminate_secondary_med_prop()
- vclibpy.components.heat_exchangers.heat_exchanger module
HeatExchanger
HeatExchanger.calc()
HeatExchanger.calc_Q_flow()
HeatExchanger.calc_alpha_gas()
HeatExchanger.calc_alpha_liquid()
HeatExchanger.calc_alpha_secondary()
HeatExchanger.calc_alpha_two_phase()
HeatExchanger.calc_secondary_Q_flow()
HeatExchanger.calc_secondary_cp()
HeatExchanger.calc_transport_properties_secondary_medium()
HeatExchanger.calc_wall_heat_transfer()
HeatExchanger.m_flow_secondary
HeatExchanger.m_flow_secondary_cp
HeatExchanger.start_secondary_med_prop()
HeatExchanger.terminate_secondary_med_prop()
- vclibpy.components.heat_exchangers.moving_boundary_ntu module
- vclibpy.components.heat_exchangers.ntu module
- Subpackages
Submodules
vclibpy.components.component module
- class vclibpy.components.component.BaseComponent[source]
Bases:
ABC
Abstract base class for defining interfaces of components in the vapor compression cycle.
- Methods:
- start_secondary_med_prop():
To use multiprocessing, MedProp can’t start in the main thread, as the object can’t be pickled. This function starts possible secondary MedProp classes, for instance in heat exchangers. The default component does not have to override this function.
- Properties:
- state_inlet (ThermodynamicState):
Property for accessing and setting the inlet state of the component.
- state_outlet (ThermodynamicState):
Property for accessing and setting the outlet state of the component.
- m_flow (float):
Property for accessing and setting the mass flow rate through the component.
- med_prop (MedProp):
Property for accessing and setting the property wrapper for the working fluid.
- property m_flow: float
Get or set the mass flow rate through the component.
- Returns:
float: Mass flow rate through the component.
- property med_prop: MedProp
Get or set the property wrapper for the working fluid.
- Returns:
MedProp: Property wrapper for the working fluid.
- start_secondary_med_prop()[source]
Start secondary MedProp classes for multiprocessing.
To use multiprocessing, MedProp can’t start in the main thread, as the object can’t be pickled. This function starts possible secondary MedProp classes, for instance in heat exchangers. The default component does not have to override this function.
- property state_inlet: ThermodynamicState
Get or set the inlet state of the component.
- Returns:
ThermodynamicState: Inlet state of the component.
- property state_outlet: ThermodynamicState
Get or set the outlet state of the component.
- Returns:
ThermodynamicState: Outlet state of the component.
vclibpy.components.phase_separator module
Module with a simple phase separator model.
- class vclibpy.components.phase_separator.PhaseSeparator[source]
Bases:
BaseComponent
A simple phase separator model.
- property state_inlet: ThermodynamicState
Get or set the inlet state of the component.
- Returns:
ThermodynamicState: Inlet state of the component.
- property state_outlet: ThermodynamicState
Get or set the outlet state of the component.
- Returns:
ThermodynamicState: Outlet state of the component.
- property state_outlet_liquid: ThermodynamicState
Getter for the outlet state of the liquid phase.
- Returns:
ThermodynamicState: Outlet state for the liquid phase.
- property state_outlet_vapor: ThermodynamicState
Getter for the outlet state of the vapor phase.
- Returns:
ThermodynamicState: Outlet state for the vapor phase.