PythonModel.compressors.ReciprocatingCompressor(parameters)¶Bases: object
Object for reciprocating compressor model based on Jin (2002): H. Jin. Parameter estimation based models of water source heat pumps. PhD Thesis. Oklahoma State University. Stillwater, Oklahoma, USA. 2012.
| Parameters: |
|
|---|
get_DischargePressure(pCon)¶Evaluate the discharge pressure (Pa).
| Parameters: | pCon – Condensing pressure (Pa). |
|---|---|
| Returns: | Discharge pressure (Pa). |
>>> com = ReciprocatingCompressor([0.00162, 0.069, 0.696, 100.0, 99.29e3, 9.82])
>>> '%.1f' % com.get_DischargePressure(1.879e6)
'1978290.0'
get_Power(vSuc, ref, pDis, pSuc, TSuc, **kargs)¶Evaluate the power input to the compressor.
| Parameters: |
|
|---|---|
| Returns: | Power input to the compressor (W). |
>>> import refrigerants
>>> ref = refrigerants.R410A()
>>> com = ReciprocatingCompressor([0.00162, 0.069, 0.696, 100.0, 99.29e3, 9.82])
>>> '%.2f' % com.get_Power(0.0288, ref, 1978290.0, 983710.0, 292.97)
'1765.63'
get_RefrigerantMassFlowRate(vSuc, ref, pDis, pSuc, TSuc, **kargs)¶Evaluate the refrigerant mass flow rate.
| Parameters: |
|
|---|---|
| Returns: | Refrigerant mass flow rate (kg/s). |
>>> import refrigerants
>>> ref = refrigerants.R410A()
>>> com = ReciprocatingCompressor([0.00162, 0.069, 0.696, 100.0, 99.29e3, 9.82])
>>> '%.8f' % com.get_RefrigerantMassFlowRate(0.0288, ref, 1978290.0, 983710.0, 292.97)
'0.05358166'
get_SuctionPressure(pEva)¶Evaluate the suction pressure.
| Parameters: | pEva – Evaporating pressure (Pa). |
|---|---|
| Returns: | Suction pressure (Pa). |
>>> com = ReciprocatingCompressor([0.00162, 0.069, 0.696, 100.0, 99.29e3, 9.82])
>>> '%.1f' % com.get_SuctionPressure(1.083e6)
'983710.0'
get_SuctionTemperature(TEva)¶Evaluate the suction temperature.
| Parameters: | TEva – Evaporating temperature (K). |
|---|---|
| Returns: | Suction temperature (K). |
>>> com = ReciprocatingCompressor([0.00162, 0.069, 0.696, 100.0, 99.29e3, 9.82])
>>> '%.2f' % com.get_SuctionTemperature(283.15)
'292.97'
initialGuessParameters(Q_nominal, P_nominal, TSou_nominal, TLoa_nominal, ref, CoolingMode)¶Initialize guess parameters for calibration of the heat pump model.
| Parameters: |
|
|---|---|
| Returns: | A list of parameters to the compressor model, a list of tuples of the bounds of the parameters (min, max) for the calibration routine. |
modelicaModelPath()¶| Returns: | Full path to the compressor model in the IBPSA library. |
|---|
>>> com = ReciprocatingCompressor([0.00162, 0.069, 0.696, 100.0, 99.29e3, 9.82])
>>> com.modelicaModelPath()
'IBPSA.Fluid.HeatPumps.Compressors.ReciprocatingCompressor'
printParameters()¶Prints the value of the model parameters.
reinitializeParameters(parameters)¶Reinitializes the compressor using new parameters.
| Parameters: |
|
|---|
PythonModel.compressors.ScrollCompressor(parameters)¶Bases: object
Object for scroll compressor model based on Jin (2002): H. Jin. Parameter estimation based models of water source heat pumps. PhD Thesis. Oklahoma State University. Stillwater, Oklahoma, USA. 2012.
| Parameters: |
|
|---|
get_DischargePressure(pCon)¶Evaluate the discharge pressure (Pa).
| Parameters: | pCon – Condensing pressure (Pa). |
|---|---|
| Returns: | Discharge pressure (Pa). |
>>> com = ScrollCompressor([2.362, 0.00287, 0.0041, 0.922, 398.7, 6.49])
>>> '%.1f' % com.get_DischargePressure(1.879e6)
'1879000.0'
get_Power(vSuc, ref, pDis, pSuc, TSuc)¶Evaluate the power input to the compressor.
| Parameters: |
|
|---|---|
| Returns: | Power input to the compressor (W). |
>>> import refrigerants
>>> ref = refrigerants.R410A()
>>> com = ScrollCompressor([2.362, 0.00287, 0.0041, 0.922, 398.7, 6.49])
>>> '%.2f' % com.get_Power(0.025, ref, 1.879e6, 1.083e6, 289.64)
'2940.26'
get_RefrigerantMassFlowRate(vSuc, pDis, pSuc, **kargs)¶Evaluate the refrigerant mass flow rate.
| Parameters: |
|
|---|---|
| Returns: | Refrigerant mass flow rate (kg/s). |
>>> com = ScrollCompressor([2.362, 0.00287, 0.0041, 0.922, 398.7, 6.49])
>>> '%.6f' % com.get_RefrigerantMassFlowRate(0.025, 1.879e6, 1.083e6)
'0.107687'
get_SuctionPressure(pEva)¶Evaluate the suction pressure.
| Parameters: | pEva – Evaporating pressure (Pa). |
|---|---|
| Returns: | Suction pressure (Pa). |
>>> com = ScrollCompressor([2.362, 0.00287, 0.0041, 0.922, 398.7, 6.49])
>>> '%.1f' % com.get_SuctionPressure(1.083e6)
'1083000.0'
get_SuctionTemperature(TEva)¶Evaluate the suction temperature.
| Parameters: | TEva – Evaporating temperature (K). |
|---|---|
| Returns: | Suction temperature (K). |
>>> com = ScrollCompressor([2.362, 0.00287, 0.0041, 0.922, 398.7, 6.49])
>>> '%.2f' % com.get_SuctionTemperature(283.15)
'289.64'
initialGuessParameters(Q_nominal, P_nominal, TSou_nominal, TLoa_nominal, ref, CoolingMode)¶Initialize guess parameters for calibration of the heat pump model.
| Parameters: |
|
|---|---|
| Returns: | A list of parameters to the compressor model, a list of tuples of the bounds of the parameters (min, max) for the calibration routine. |
modelicaModelPath()¶| Returns: | Full path to the compressor model in the IBPSA library. |
|---|
>>> com = ScrollCompressor([2.362, 0.00287, 0.0041, 0.922, 398.7, 6.49])
>>> com.modelicaModelPath()
'IBPSA.Fluid.HeatPumps.Compressors.ScrollCompressor'
printParameters()¶Prints the value of the model parameters.
reinitializeParameters(parameters)¶Reinitializes the compressor using new parameters.
| Parameters: |
|
|---|
set_ModelicaParameters(simulator, suffix='')¶Set parameter values for simulation in dymola.
| Parameters: |
|
|---|---|
| Returns: | Simulator object (BuildingsPy) |