Buildings.Fluid.HeatPumps.BaseClasses
Package with base classes for Buildings.Fluid.HeatPumps
Information
This package contains base classes that are used to construct the models in Buildings.Fluid.HeatPumps.
Extends from Modelica.Icons.BasesPackage (Icon for packages containing base classes).
Package Content
Name | Description |
---|---|
EquationFitReversible | Equation fit method to compute the performance of the reversable heat pump |
PartialWaterToWater | Partial model for water to water heat pumps and chillers |
Validation | Collection of validation models |
Buildings.Fluid.HeatPumps.BaseClasses.EquationFitReversible
Equation fit method to compute the performance of the reversable heat pump
Information
Block that implements the equation fit method for the reverse heat pump model Buildings.Fluid.HeatPumps.EquationFitReversible.
Extends from Modelica.Blocks.Icons.Block (Basic graphical layout of input/output block).
Parameters
Type | Name | Default | Description |
---|---|---|---|
Generic | per | Performance data | |
Real | scaling_factor | Scaling factor for heat pump capacity |
Connectors
Type | Name | Description |
---|---|---|
input IntegerInput | uMod | Control input signal, cooling mode= -1, off=0, heating mode=+1 |
input RealInput | TLoaEnt | Load entering fluid temperature [K] |
input RealInput | TSouEnt | Source entering fluid temperature [K] |
input RealInput | mLoa_flow | Mass flow rate at load side [kg/s] |
input RealInput | mSou_flow | Mass flow rate at source side [kg/s] |
input RealInput | Q_flow_set | Required heat to meet set point [W] |
output RealOutput | QLoa_flow | Load heat flow rate [W] |
output RealOutput | QSou_flow | Source heat flow rate [W] |
output RealOutput | P | Compressor power [W] |
output RealOutput | COP | Coefficient of performance, assuming useful heat is at the load side (at Medium 1) [1] |
Modelica definition
Buildings.Fluid.HeatPumps.BaseClasses.PartialWaterToWater
Partial model for water to water heat pumps and chillers
Information
Partial model for a water to water heat pump, as detailed in Jin (2002). The model for the compressor is a partial model and needs to be replaced by one of the compressor models in Buildings.Fluid.HeatPumps.Compressors.
References
H. Jin. Parameter estimation based models of water source heat pumps. PhD Thesis. Oklahoma State University. Stillwater, Oklahoma, USA. 2002.
Extends from Buildings.Fluid.Interfaces.PartialFourPortInterface (Partial model with four ports and declaration of quantities that are used by many models), Buildings.Fluid.Interfaces.FourPortFlowResistanceParameters (Parameters for flow resistance for models with four ports).
Parameters
Type | Name | Default | Description |
---|---|---|---|
replaceable package Medium1 | PartialMedium | Medium 1 in the component | |
replaceable package Medium2 | PartialMedium | Medium 2 in the component | |
replaceable package ref | Buildings.Media.Refrigerants... | Refrigerant in the component | |
Boolean | enable_variable_speed | true | Set to true to allow modulating of compressor speed |
Real | scaling_factor | 1.0 | Scaling factor for heat pump capacity |
ThermalConductance | UACon | Thermal conductance of condenser [W/K] | |
ThermalConductance | UAEva | Thermal conductance of evaporator [W/K] | |
PartialCompressor | com | redeclare Buildings.Fluid.He... | Compressor |
Nominal condition | |||
MassFlowRate | m1_flow_nominal | Nominal mass flow rate [kg/s] | |
MassFlowRate | m2_flow_nominal | Nominal mass flow rate [kg/s] | |
PressureDifference | dp1_nominal | Pressure difference [Pa] | |
PressureDifference | dp2_nominal | Pressure difference [Pa] | |
Temperature protection | |||
Boolean | enable_temperature_protection | true | Enable temperature protection |
Temperature | TConMax | ref.TCri - 5 | Upper bound for condenser temperature [K] |
Temperature | TEvaMin | 275.15 | Lower bound for evaporator temperature [K] |
Real | dTHys | 5 | Hysteresis interval width [K] |
Assumptions | |||
Boolean | allowFlowReversal1 | true | = false to simplify equations, assuming, but not enforcing, no flow reversal for medium 1 |
Boolean | allowFlowReversal2 | true | = false to simplify equations, assuming, but not enforcing, no flow reversal for medium 2 |
Advanced | |||
MassFlowRate | m1_flow_small | 1E-4*abs(m1_flow_nominal) | Small mass flow rate for regularization of zero flow [kg/s] |
MassFlowRate | m2_flow_small | 1E-4*abs(m2_flow_nominal) | Small mass flow rate for regularization of zero flow [kg/s] |
Diagnostics | |||
Boolean | show_T | false | = true, if actual temperature at port is computed |
Flow resistance | |||
Medium 1 | |||
Boolean | computeFlowResistance1 | dp1_nominal > 0 | =true, compute flow resistance. Set to false to assume no friction |
Boolean | from_dp1 | false | = true, use m_flow = f(dp) else dp = f(m_flow) |
Boolean | linearizeFlowResistance1 | false | = true, use linear relation between m_flow and dp for any flow rate |
Real | deltaM1 | 0.1 | Fraction of nominal flow rate where flow transitions to laminar |
Medium 2 | |||
Boolean | computeFlowResistance2 | dp2_nominal > 0 | =true, compute flow resistance. Set to false to assume no friction |
Boolean | from_dp2 | false | = true, use m_flow = f(dp) else dp = f(m_flow) |
Boolean | linearizeFlowResistance2 | false | = true, use linear relation between m_flow and dp for any flow rate |
Real | deltaM2 | 0.1 | Fraction of nominal flow rate where flow transitions to laminar |
Dynamics | |||
Condenser | |||
Time | tau1 | 60 | Time constant at nominal flow rate (used if energyDynamics1 <> Modelica.Fluid.Types.Dynamics.SteadyState) [s] |
Temperature | T1_start | Medium1.T_default | Initial or guess value of set point [K] |
Evaporator | |||
Time | tau2 | 60 | Time constant at nominal flow rate (used if energyDynamics2 <> Modelica.Fluid.Types.Dynamics.SteadyState) [s] |
Temperature | T2_start | Medium2.T_default | Initial or guess value of set point [K] |
Evaporator and condenser | |||
Dynamics | energyDynamics | Modelica.Fluid.Types.Dynamic... | Type of energy balance: dynamic (3 initialization options) or steady state |
Connectors
Type | Name | Description |
---|---|---|
FluidPort_a | port_a1 | Fluid connector a1 (positive design flow direction is from port_a1 to port_b1) |
FluidPort_b | port_b1 | Fluid connector b1 (positive design flow direction is from port_a1 to port_b1) |
FluidPort_a | port_a2 | Fluid connector a2 (positive design flow direction is from port_a2 to port_b2) |
FluidPort_b | port_b2 | Fluid connector b2 (positive design flow direction is from port_a2 to port_b2) |
replaceable package ref | Refrigerant in the component | |
output BooleanOutput | errLowPre | if true, compressor disabled since evaporator temperature is above upper bound |
output BooleanOutput | errHigPre | if true, compressor disabled since condenser temperature is below lower bound |
output BooleanOutput | errNegTemDif | if true, compressor disabled since condenser temperature is below evaporator temperature |
input RealInput | y | Modulating signal for compressor frequency, equal to 1 at full load condition [1] |
input IntegerInput | stage | Current stage of the heat pump, equal to 1 at full load condition |
output RealOutput | QCon_flow | Actual heating heat flow rate added to fluid 1 [W] |
output RealOutput | P | Electric power consumed by compressor [W] |
output RealOutput | QEva_flow | Actual cooling heat flow rate removed from fluid 2 [W] |