Buildings.Fluid.Chillers.ModularReversible.Validation

Package for model validation

Information

This package contains models that validate the modular reversible chiller models using comparative validation against the Carnot model: Buildings.Fluid.Chillers.Examples.Carnot_y

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

Package Content

Name Description
Buildings.Fluid.Chillers.ModularReversible.Validation.Carnot_y Carnot_y Example using the Carnot model approach
Buildings.Fluid.Chillers.ModularReversible.Validation.ConstantCarnotEffectiveness ConstantCarnotEffectiveness Validation case for modular Carnot approach
Buildings.Fluid.Chillers.ModularReversible.Validation.TableData2D TableData2D Validation case for table data approach
Buildings.Fluid.Chillers.ModularReversible.Validation.BaseClasses BaseClasses Package with partial validation models

Buildings.Fluid.Chillers.ModularReversible.Validation.Carnot_y Buildings.Fluid.Chillers.ModularReversible.Validation.Carnot_y

Example using the Carnot model approach

Buildings.Fluid.Chillers.ModularReversible.Validation.Carnot_y

Information

Validation case for Buildings.Fluid.Chillers.Carnot_y, duplicate of the example Buildings.Fluid.Chillers.Examples.Carnot_y.

Extends from Buildings.Fluid.HeatPumps.ModularReversible.Validation.Comparative.BaseClasses.PartialComparison (Partial model to allow heat pump and chiller model comparison), Modelica.Icons.Example (Icon for runnable examples).

Parameters

TypeNameDefaultDescription
HeatFlowRateQUse_flow_nominal30E3Nominal capacity [W]
TemperatureDifferencedTEva_nominal10Temperature difference evaporator outlet-inlet [K]
TemperatureDifferencedTCon_nominal10Temperature difference condenser outlet-inlet [K]
Pressuredp1_nominal6000Pressure difference over condenser [Pa]
Pressuredp2_nominal6000Pressure difference over evaporator [Pa]
RealetaCarnot_nominal0.3Carnot effectiveness (=COP/COP_Carnot) used during simulation if use_eta_Carnot_nominal = true
Timetau160Time constant at nominal flow rate (used if energyDynamics1 <> Modelica.Fluid.Types.Dynamics.SteadyState) [s]
TemperatureT1_start303.15Initial or guess value of set point [K]
Timetau260Time constant at nominal flow rate (used if energyDynamics2 <> Modelica.Fluid.Types.Dynamics.SteadyState) [s]
TemperatureT2_start278.15Initial or guess value of set point [K]
TemperatureTConIn_nominal303.15Nominal condenser inlet temperature [K]
TemperatureTEvaIn_nominal288.15Nominal condenser inlet temperature [K]
TemperatureTCon_nominalTConIn_nominal + dTCon_nominalNominal condenser temperature [K]
TemperatureTEva_nominalTEvaIn_nominal - dTEva_nominalNominal evaporator temperature [K]
MassFlowRatem2_flow_nominalchi.m2_flow_nominalNominal mass flow rate at chilled water side [kg/s]
MassFlowRatem1_flow_nominalchi.m1_flow_nominalNominal mass flow rate at condenser water wide [kg/s]

Modelica definition

model Carnot_y "Example using the Carnot model approach" extends Buildings.Fluid.HeatPumps.ModularReversible.Validation.Comparative.BaseClasses.PartialComparison( m1_flow_nominal=chi.m1_flow_nominal, m2_flow_nominal=chi.m2_flow_nominal, sin2(nPorts=1), sou2(nPorts=1), sin1(nPorts=1), sou1(nPorts=1)); extends Modelica.Icons.Example; Buildings.Fluid.Chillers.Carnot_y chi( redeclare package Medium1 = Medium1, redeclare package Medium2 = Medium2, etaCarnot_nominal=etaCarnot_nominal, TCon_nominal=TCon_nominal, TEva_nominal=TEva_nominal, tau1=tau1, tau2=tau2, P_nominal=QUse_flow_nominal/chi.COP_nominal, dTEva_nominal=-dTEva_nominal, dTCon_nominal=dTCon_nominal, use_eta_Carnot_nominal=false, dp1_nominal=dp1_nominal, dp2_nominal=dp2_nominal, energyDynamics=Modelica.Fluid.Types.Dynamics.FixedInitial, show_T=true, T1_start=T1_start, T2_start=T2_start) "Chiller model"; equation connect(sin2.ports[1], chi.port_b2); connect(chi.port_a2, sou2.ports[1]); connect(chi.port_b1, sin1.ports[1]); connect(chi.port_a1, sou1.ports[1]); connect(chi.y, uCom.y); end Carnot_y;

Buildings.Fluid.Chillers.ModularReversible.Validation.ConstantCarnotEffectiveness Buildings.Fluid.Chillers.ModularReversible.Validation.ConstantCarnotEffectiveness

Validation case for modular Carnot approach

Buildings.Fluid.Chillers.ModularReversible.Validation.ConstantCarnotEffectiveness

Information

Validation case for Buildings.Fluid.Chillers.ModularReversible.RefrigerantCycle.ConstantCarnotEffectiveness.

Extends from BaseClasses.PartialModularComparison (Partial model for comparison to the Carnot model), Modelica.Icons.Example (Icon for runnable examples).

Parameters

TypeNameDefaultDescription
HeatFlowRateQUse_flow_nominal30E3Nominal capacity [W]
TemperatureDifferencedTEva_nominal10Temperature difference evaporator outlet-inlet [K]
TemperatureDifferencedTCon_nominal10Temperature difference condenser outlet-inlet [K]
Pressuredp1_nominal6000Pressure difference over condenser [Pa]
Pressuredp2_nominal6000Pressure difference over evaporator [Pa]
RealetaCarnot_nominal0.3Carnot effectiveness (=COP/COP_Carnot) used during simulation if use_eta_Carnot_nominal = true
Timetau160Time constant at nominal flow rate (used if energyDynamics1 <> Modelica.Fluid.Types.Dynamics.SteadyState) [s]
TemperatureT1_start303.15Initial or guess value of set point [K]
Timetau260Time constant at nominal flow rate (used if energyDynamics2 <> Modelica.Fluid.Types.Dynamics.SteadyState) [s]
TemperatureT2_start278.15Initial or guess value of set point [K]
TemperatureTConIn_nominal303.15Nominal condenser inlet temperature [K]
TemperatureTEvaIn_nominal288.15Nominal condenser inlet temperature [K]
TemperatureTCon_nominalTConIn_nominal + dTCon_nominalNominal condenser temperature [K]
TemperatureTEva_nominalTEvaIn_nominal - dTEva_nominalNominal evaporator temperature [K]
MassFlowRatem2_flow_nominalchi.mEva_flow_nominalNominal mass flow rate at chilled water side [kg/s]
MassFlowRatem1_flow_nominalchi.mCon_flow_nominalNominal mass flow rate at condenser water wide [kg/s]

Modelica definition

model ConstantCarnotEffectiveness "Validation case for modular Carnot approach" extends BaseClasses.PartialModularComparison(chi(redeclare model RefrigerantCycleChillerCooling = Buildings.Fluid.Chillers.ModularReversible.RefrigerantCycle.ConstantCarnotEffectiveness (etaCarnot_nominal=etaCarnot_nominal))); extends Modelica.Icons.Example; end ConstantCarnotEffectiveness;

Buildings.Fluid.Chillers.ModularReversible.Validation.TableData2D Buildings.Fluid.Chillers.ModularReversible.Validation.TableData2D

Validation case for table data approach

Buildings.Fluid.Chillers.ModularReversible.Validation.TableData2D

Information

Validation case for Buildings.Fluid.Chillers.ModularReversible.RefrigerantCycle.TableData2D.

Extends from BaseClasses.PartialModularComparison (Partial model for comparison to the Carnot model), Modelica.Icons.Example (Icon for runnable examples).

Parameters

TypeNameDefaultDescription
HeatFlowRateQUse_flow_nominal30E3Nominal capacity [W]
TemperatureDifferencedTEva_nominal10Temperature difference evaporator outlet-inlet [K]
TemperatureDifferencedTCon_nominal10Temperature difference condenser outlet-inlet [K]
Pressuredp1_nominal6000Pressure difference over condenser [Pa]
Pressuredp2_nominal6000Pressure difference over evaporator [Pa]
RealetaCarnot_nominal0.3Carnot effectiveness (=COP/COP_Carnot) used during simulation if use_eta_Carnot_nominal = true
Timetau160Time constant at nominal flow rate (used if energyDynamics1 <> Modelica.Fluid.Types.Dynamics.SteadyState) [s]
TemperatureT1_start303.15Initial or guess value of set point [K]
Timetau260Time constant at nominal flow rate (used if energyDynamics2 <> Modelica.Fluid.Types.Dynamics.SteadyState) [s]
TemperatureT2_start278.15Initial or guess value of set point [K]
TemperatureTConIn_nominal303.15Nominal condenser inlet temperature [K]
TemperatureTEvaIn_nominal288.15Nominal condenser inlet temperature [K]
TemperatureTCon_nominalTConIn_nominalNominal condenser temperature [K]
TemperatureTEva_nominalTEvaIn_nominalNominal evaporator temperature [K]
MassFlowRatem2_flow_nominalchi.mEva_flow_nominalNominal mass flow rate at chilled water side [kg/s]
MassFlowRatem1_flow_nominalchi.mCon_flow_nominalNominal mass flow rate at condenser water wide [kg/s]

Modelica definition

model TableData2D "Validation case for table data approach" extends BaseClasses.PartialModularComparison( TEva_nominal=TEvaIn_nominal, TCon_nominal=TConIn_nominal, chi(redeclare model RefrigerantCycleChillerCooling = Buildings.Fluid.Chillers.ModularReversible.RefrigerantCycle.TableData2D ( datTab( tabPEle=[0,293.15,303.15; 288.15,14122.8,14122.8; 298.15,14122.8,14122.8], mCon_flow_nominal=m1_flow_nominal, mEva_flow_nominal=m2_flow_nominal, dpCon_nominal=0, dpEva_nominal=0, devIde="CarnotTableData", use_TEvaOutForTab=false, use_TConOutForTab=false, tabQEva_flow=[0,293.15,303.15; 288.15,-35499.7,-30000; 298.15,0,-36220.8], tabLowBou=[273.15,273.15; 273.15,273.15], use_TEvaOutForOpeEnv=false, use_TConOutForOpeEnv=false)))); extends Modelica.Icons.Example; end TableData2D;