Collection of models that validate the compressor models
Information
This package contains validation models for the classes in
Buildings.Fluid.HeatPumps.Compressors.
Note that most validation models contain simple input data
which may not be realistic, but for which the correct
output can be obtained through an analytic solution.
The examples plot various outputs, which have been verified against these
solutions. These model outputs are stored as reference data and
used for continuous validation whenever models in the library change.
Extends from Modelica.Icons.ExamplesPackage (Icon for packages containing runnable examples).
Package Content
Information
Model that demonstrates the use of the ReciprocatingCompressor model.
The compressor power, condenser heat transfer rate and evaporator heat transfer rate are calculated for given refrigerant temperatures.
Extends from Modelica.Icons.Example (Icon for runnable examples).
Modelica definition
model ReciprocatingCompressor
extends Modelica.Icons.Example;
Buildings.Fluid.HeatPumps.Compressors.ReciprocatingCompressor com(
redeclare package ref =
Buildings.Media.Refrigerants.R410A,
pisDis=0.00162,
cleFac=0.069,
etaEle=0.696,
PLos=100,
dTSup=9.82,
pDro=99290) ;
Buildings.HeatTransfer.Sources.FixedTemperature eva(T=253.15)
;
Buildings.HeatTransfer.Sources.FixedTemperature con(T=323.15)
;
Modelica.Thermal.HeatTransfer.Sensors.HeatFlowSensor heaFloEva
;
Modelica.Thermal.HeatTransfer.Sensors.HeatFlowSensor heaFloCon
;
Modelica.Blocks.Sources.Constant on(k=1) ;
equation
connect(eva.port, heaFloEva.port_a);
connect(heaFloEva.port_b, com.port_a);
connect(com.port_b, heaFloCon.port_a);
connect(heaFloCon.port_b, con.port);
connect(on.y,com.y);
end ReciprocatingCompressor;
Information
Model that demonstrates the use of the ReciprocatingCompressor model.
The compressor power, condenser heat transfer rate and evaporator heat transfer
rate are calculated for zero control input to compressor.
Extends from Modelica.Icons.Example (Icon for runnable examples).
Modelica definition
model ReciprocatingCompressor_ZeroInput
extends Modelica.Icons.Example;
Buildings.Fluid.HeatPumps.Compressors.ReciprocatingCompressor com(
redeclare package ref =
Buildings.Media.Refrigerants.R410A,
pisDis=0.00162,
cleFac=0.069,
etaEle=0.696,
PLos=100,
dTSup=9.82,
pDro=99290) ;
Buildings.HeatTransfer.Sources.FixedTemperature eva(T=253.15)
;
Buildings.HeatTransfer.Sources.FixedTemperature con(T=323.15)
;
Modelica.Thermal.HeatTransfer.Sensors.HeatFlowSensor heaFloEva
;
Modelica.Thermal.HeatTransfer.Sensors.HeatFlowSensor heaFloCon
;
Modelica.Blocks.Sources.Constant on(k=0) ;
equation
connect(eva.port, heaFloEva.port_a);
connect(heaFloEva.port_b, com.port_a);
connect(com.port_b, heaFloCon.port_a);
connect(heaFloCon.port_b, con.port);
connect(on.y,com.y);
end ReciprocatingCompressor_ZeroInput;
Information
Model that demonstrates the use of the ScrollCompressor model.
The compressor power, condenser heat transfer rate and evaporator heat transfer rate are calculated for given refrigerant temperatures.
Extends from Modelica.Icons.Example (Icon for runnable examples).
Modelica definition
model ScrollCompressor
extends Modelica.Icons.Example;
Buildings.HeatTransfer.Sources.FixedTemperature eva(T=253.15)
;
Buildings.HeatTransfer.Sources.FixedTemperature con(T=323.15)
;
Modelica.Thermal.HeatTransfer.Sensors.HeatFlowSensor heaFloEva
;
Modelica.Thermal.HeatTransfer.Sensors.HeatFlowSensor heaFloCon
;
Buildings.Fluid.HeatPumps.Compressors.ScrollCompressor com(
redeclare package ref =
Buildings.Media.Refrigerants.R410A,
V_flow_nominal=0.003,
leaCoe=0.005,
etaEle=0.85,
PLos=500,
dTSup=3,
volRat=2.1) ;
Modelica.Blocks.Sources.Constant on(k=1) ;
equation
connect(eva.port, heaFloEva.port_a);
connect(heaFloCon.port_b, con.port);
connect(com.port_b, heaFloCon.port_a);
connect(heaFloEva.port_b, com.port_a);
connect(on.y, com.y);
end ScrollCompressor;
Information
Model that demonstrates the use of the ScrollCompressor model.
The compressor power, condenser heat transfer rate and evaporator heat transfer
rate are calculated for zero control input to compressor.
Extends from Modelica.Icons.Example (Icon for runnable examples).
Modelica definition
model ScrollCompressor_ZeroInput
extends Modelica.Icons.Example;
Buildings.HeatTransfer.Sources.FixedTemperature eva(T=253.15)
;
Buildings.HeatTransfer.Sources.FixedTemperature con(T=323.15)
;
Modelica.Thermal.HeatTransfer.Sensors.HeatFlowSensor heaFloEva
;
Modelica.Thermal.HeatTransfer.Sensors.HeatFlowSensor heaFloCon
;
Buildings.Fluid.HeatPumps.Compressors.ScrollCompressor com(
redeclare package ref =
Buildings.Media.Refrigerants.R410A,
V_flow_nominal=0.003,
leaCoe=0.005,
etaEle=0.85,
PLos=500,
dTSup=3,
volRat=2.1) ;
Modelica.Blocks.Sources.Constant on(k=0) ;
equation
connect(eva.port, heaFloEva.port_a);
connect(heaFloCon.port_b, con.port);
connect(com.port_b, heaFloCon.port_a);
connect(heaFloEva.port_b, com.port_a);
connect(on.y, com.y);
end ScrollCompressor_ZeroInput;