LBL logo

Buildings.Fluid.Chillers.Examples

Collection of models that illustrate model use and test models

Information

This package contains examples for the use of models that can be found in Buildings.Fluid.Chillers.

Extends from Modelica.Icons.ExamplesPackage (Icon for packages containing runnable examples).

Package Content

Name Description
Buildings.Fluid.Chillers.Examples.Carnot Carnot Test model for chiller based on Carnot efficiency
Buildings.Fluid.Chillers.Examples.ElectricEIR ElectricEIR Test model for chiller electric EIR
Buildings.Fluid.Chillers.Examples.ElectricReformulatedEIR ElectricReformulatedEIR Test model for chiller electric reformulated EIR
Buildings.Fluid.Chillers.Examples.BaseClasses BaseClasses Package with base classes for Buildings.Fluid.Chillers.Examples

Buildings.Fluid.Chillers.Examples.Carnot Buildings.Fluid.Chillers.Examples.Carnot

Test model for chiller based on Carnot efficiency

Buildings.Fluid.Chillers.Examples.Carnot

Information

Example that simulates a chiller whose efficiency is scaled based on the Carnot cycle.

Extends from Modelica.Icons.Example (Icon for runnable examples).

Parameters

TypeNameDefaultDescription
PowerP_nominal10E3Nominal compressor power (at y=1) [W]
TemperatureDifferencedTEva_nominal10Temperature difference evaporator inlet-outlet [K]
TemperatureDifferencedTCon_nominal10Temperature difference condenser outlet-inlet [K]
RealCOPc_nominal3Chiller COP
MassFlowRatem2_flow_nominalP_nominal*COPc_nominal/dTEva...Nominal mass flow rate at chilled water side [kg/s]
MassFlowRatem1_flow_nominalm2_flow_nominal*(COPc_nomina...Nominal mass flow rate at condenser water wide [kg/s]

Modelica definition

model Carnot "Test model for chiller based on Carnot efficiency" extends Modelica.Icons.Example; package Medium1 = Buildings.Media.Water "Medium model"; package Medium2 = Buildings.Media.Water "Medium model"; parameter Modelica.SIunits.Power P_nominal=10E3 "Nominal compressor power (at y=1)"; parameter Modelica.SIunits.TemperatureDifference dTEva_nominal=10 "Temperature difference evaporator inlet-outlet"; parameter Modelica.SIunits.TemperatureDifference dTCon_nominal=10 "Temperature difference condenser outlet-inlet"; parameter Real COPc_nominal = 3 "Chiller COP"; parameter Modelica.SIunits.MassFlowRate m2_flow_nominal= P_nominal*COPc_nominal/dTEva_nominal/4200 "Nominal mass flow rate at chilled water side"; parameter Modelica.SIunits.MassFlowRate m1_flow_nominal= m2_flow_nominal*(COPc_nominal+1)/COPc_nominal "Nominal mass flow rate at condenser water wide"; Buildings.Fluid.Chillers.Carnot chi( redeclare package Medium1 = Medium1, redeclare package Medium2 = Medium2, P_nominal=P_nominal, dTEva_nominal=dTEva_nominal, dTCon_nominal=dTCon_nominal, use_eta_Carnot=true, etaCar=0.3, dp1_nominal=6000, dp2_nominal=6000, m1_flow_nominal=m1_flow_nominal, m2_flow_nominal=m2_flow_nominal, energyDynamics=Modelica.Fluid.Types.Dynamics.FixedInitial, show_T=true) "Chiller model"; Buildings.Fluid.Sources.MassFlowSource_T sou1(nPorts=1, redeclare package Medium = Medium1, use_T_in=true, m_flow=m1_flow_nominal, T=298.15); Buildings.Fluid.Sources.MassFlowSource_T sou2(nPorts=1, redeclare package Medium = Medium2, use_T_in=true, m_flow=m2_flow_nominal, T=291.15); Buildings.Fluid.Sources.FixedBoundary sin1(nPorts=1, redeclare package Medium = Medium1); Buildings.Fluid.Sources.FixedBoundary sin2(nPorts=1, redeclare package Medium = Medium2); Modelica.Blocks.Sources.Ramp uCom( height=-1, duration=60, offset=1, startTime=1800) "Compressor control signal"; Modelica.Blocks.Sources.Ramp TCon_in( height=10, duration=60, offset=273.15 + 20, startTime=60) "Condenser inlet temperature"; Modelica.Blocks.Sources.Ramp TEva_in( height=10, duration=60, startTime=900, offset=273.15 + 15) "Evaporator inlet temperature"; equation connect(sou1.ports[1], chi.port_a1); connect(sou2.ports[1], chi.port_a2); connect(chi.port_b1, sin1.ports[1]); connect(sin2.ports[1], chi.port_b2); connect(TCon_in.y, sou1.T_in); connect(TEva_in.y, sou2.T_in); connect(uCom.y, chi.y); end Carnot;

Buildings.Fluid.Chillers.Examples.ElectricEIR Buildings.Fluid.Chillers.Examples.ElectricEIR

Test model for chiller electric EIR

Buildings.Fluid.Chillers.Examples.ElectricEIR

Information

Example that simulates a chiller whose efficiency is computed based on the condenser entering and evaporator leaving fluid temperature. A bicubic polynomial is used to compute the chiller part load performance.

Extends from Modelica.Icons.Example (Icon for runnable examples), Buildings.Fluid.Chillers.Examples.BaseClasses.PartialElectric (Base class for test model of chiller electric EIR).

Parameters

TypeNameDefaultDescription
PowerP_nominal-per.QEva_flow_nominal/per.C...Nominal compressor power (at y=1) [W]
TemperatureDifferencedTEva_nominal10Temperature difference evaporator inlet-outlet [K]
TemperatureDifferencedTCon_nominal10Temperature difference condenser outlet-inlet [K]
RealCOPc_nominal3Chiller COP
MassFlowRatemEva_flow_nominalper.mEva_flow_nominalNominal mass flow rate at evaporator [kg/s]
MassFlowRatemCon_flow_nominalper.mCon_flow_nominalNominal mass flow rate at condenser [kg/s]
ElectricEIRChiller_McQuay_WSC_471kW_5_89COP_Vanesper Chiller performance data

Modelica definition

model ElectricEIR "Test model for chiller electric EIR" extends Modelica.Icons.Example; extends Buildings.Fluid.Chillers.Examples.BaseClasses.PartialElectric( P_nominal=-per.QEva_flow_nominal/per.COP_nominal, mEva_flow_nominal=per.mEva_flow_nominal, mCon_flow_nominal=per.mCon_flow_nominal, sou1(nPorts=1), sou2(nPorts=1)); parameter Data.ElectricEIR.ElectricEIRChiller_McQuay_WSC_471kW_5_89COP_Vanes per "Chiller performance data"; Buildings.Fluid.Chillers.ElectricEIR chi( redeclare package Medium1 = Medium1, redeclare package Medium2 = Medium2, per=per, energyDynamics=Modelica.Fluid.Types.Dynamics.FixedInitial, dp1_nominal=6000, dp2_nominal=6000) "Chiller model"; equation connect(sou1.ports[1], chi.port_a1); connect(chi.port_b1, res1.port_a); connect(sou2.ports[1], chi.port_a2); connect(chi.port_b2, res2.port_a); connect(chi.on, greaterThreshold.y); connect(chi.TSet, TSet.y); end ElectricEIR;

Buildings.Fluid.Chillers.Examples.ElectricReformulatedEIR Buildings.Fluid.Chillers.Examples.ElectricReformulatedEIR

Test model for chiller electric reformulated EIR

Buildings.Fluid.Chillers.Examples.ElectricReformulatedEIR

Information

Example that simulates a chiller whose efficiency is computed based on the condenser leaving and evaporator leaving fluid temperature. A bicubic polynomial is used to compute the chiller part load performance.

Extends from Modelica.Icons.Example (Icon for runnable examples), Buildings.Fluid.Chillers.Examples.BaseClasses.PartialElectric (Base class for test model of chiller electric EIR).

Parameters

TypeNameDefaultDescription
PowerP_nominal-per.QEva_flow_nominal/per.C...Nominal compressor power (at y=1) [W]
TemperatureDifferencedTEva_nominal10Temperature difference evaporator inlet-outlet [K]
TemperatureDifferencedTCon_nominal10Temperature difference condenser outlet-inlet [K]
RealCOPc_nominal3Chiller COP
MassFlowRatemEva_flow_nominalper.mEva_flow_nominalNominal mass flow rate at evaporator [kg/s]
MassFlowRatemCon_flow_nominalper.mCon_flow_nominalNominal mass flow rate at condenser [kg/s]
ReformEIRChiller_McQuay_WSC_471kW_5_89COP_Vanesper Chiller performance data

Modelica definition

model ElectricReformulatedEIR "Test model for chiller electric reformulated EIR" extends Modelica.Icons.Example; extends Buildings.Fluid.Chillers.Examples.BaseClasses.PartialElectric( P_nominal=-per.QEva_flow_nominal/per.COP_nominal, mEva_flow_nominal=per.mEva_flow_nominal, mCon_flow_nominal=per.mCon_flow_nominal, sou1(nPorts=1), sou2(nPorts=1)); parameter Data.ElectricReformulatedEIR.ReformEIRChiller_McQuay_WSC_471kW_5_89COP_Vanes per "Chiller performance data"; Buildings.Fluid.Chillers.ElectricReformulatedEIR chi( redeclare package Medium1 = Medium1, redeclare package Medium2 = Medium2, per=per, energyDynamics=Modelica.Fluid.Types.Dynamics.FixedInitial, dp1_nominal=6000, dp2_nominal=6000) "Chiller model"; equation connect(sou1.ports[1], chi.port_a1); connect(chi.port_b1, res1.port_a); connect(sou2.ports[1], chi.port_a2); connect(chi.port_b2, res2.port_a); connect(chi.on, greaterThreshold.y); connect(TSet.y, chi.TSet); end ElectricReformulatedEIR;

Automatically generated Mon May 4 10:20:31 2015.