modelSingleSpeedPLR

Validation model for single speed DX coil with PLR=1

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

Information

This model validates the model Buildings.Fluid.DXSystems.Cooling.AirSource.SingleSpeed.

The difference in results of TOut and XOut at the beginning and end of the simulation is because the mass flow rate is zero. For zero mass flow rate, EnergyPlus assumes steady state condition, whereas the Modelica model is a dynamic model and hence the properties at the outlet are equal to the state variables of the model.

The EnergyPlus results were generated using the example file DXCoilSystemAuto.idf from EnergyPlus 7.1.

The EnergyPlus results were generated using the example file DXCoilSystemAuto.idf from EnergyPlus 7.1. On the summer design day, the PLR is below 1. A similar effect has been achieved in this example by turning on the coil only for the period during which it run in EnergyPlus. This results in on-off cycle and fluctuating results. To compare the results, the Modelica outputs are averaged over 3600 seconds, and the EnergyPlus outputs are used with a zero order delay to avoid the time shift in results.

Note that EnergyPlus mass fractions (X) are in mass of water vapor per mass of dry air, whereas Modelica uses the total mass as a reference. Hence, the EnergyPlus values are corrected by dividing them by 1+X.

Parameters

TypeNameDefaultDescription
Modelica.Units.SI.PowerQ_flow_nominaldatCoi.sta[1].nomVal.Q_flow_nominalNominal power
Modelica.Units.SI.MassFlowRatem_flow_nominaldatCoi.sta[1].nomVal.m_flow_nominalNominal mass flow rate
Modelica.Units.SI.PressureDifferencedp_nominal1141Pressure drop at m_flow_nominal
Buildings.Fluid.DXSystems.Cooling.AirSource.Data.Generic.DXCoildatCoiCoil data

Components

TypeNameDefaultDescription
Buildings.Fluid.Sources.Boundary_pTsinSink
Buildings.Fluid.Sources.Boundary_pTsouSource
Buildings.Fluid.DXSystems.Cooling.AirSource.SingleSpeedsinSpeDXSingle speed DX coil
Modelica.Blocks.Routing.Multiplex2muxConverts in an array
Buildings.Utilities.IO.BCVTB.From_degCTCIn_KConverts degC to K
Buildings.Utilities.IO.BCVTB.From_degCTEvaIn_KConverts degC to K
Modelica.Blocks.Math.MeanTOutMeaAverage out value over one hour
Buildings.Utilities.IO.BCVTB.To_degCTOutDegCConvert to degree Celsius
Modelica.Blocks.Sources.RealExpressionTOutMeasured outlet air temperature
Modelica.Blocks.Math.MeanXEvaOutMeaAverage out value over one hour
Modelica.Blocks.Sources.RealExpressionXEvaOutMeasured outlet air humidity ratio (total air)
Modelica.Blocks.Math.MeanQ_flowMeaMean of cooling rate
Modelica.Blocks.Math.MeanQ_flowSenMeaMean of sensible cooling rate
Modelica.Blocks.Math.MeanPMeaMean of power
Modelica.Blocks.Math.AddaddConvert humidity ratio (dry air) to humidity ratio (total air)
Modelica.Blocks.Sources.ConstantXEvaInMoiAirMoist air fraction = 1
Modelica.Blocks.Math.DivisionshrEPluEnergyPlus result: SHR
Modelica.Blocks.Sources.PulsepPressure
Modelica.Blocks.Sources.RealExpressionXEvaInModModified XEvaIn
Modelica.Blocks.Sources.RealExpressionXEvaOutEPluModModified XEvaOut of energyPlus to comapre with the model results
Modelica.Blocks.Sources.BooleanTableonOffEnergyPlus PLR converted into on-off signal for this model
Modelica.Blocks.Sources.TimeTableTCInCondenser inlet temperature
Modelica.Blocks.Sources.TimeTableTEvaInCoil inlet temperature
Modelica.Blocks.Sources.TimeTableXEvaInWater fraction of moist air
Modelica.Blocks.Sources.TimeTableTOutEPlu_oriEnergyPlus result: outlet temperature
Modelica.Blocks.Sources.TimeTablePEPlu_oriEnergyPlus result: electric power
Modelica.Blocks.Sources.TimeTableXEvaOutEPlu_oriEnergyPlus result: outlet water mass fraction
Modelica.Blocks.Sources.TimeTableQ_flowSenEPlu_oriEnergyPlus result: sensible heat flow
Modelica.Blocks.Sources.TimeTableQ_flowEPlu_oriEnergyPlus result: heat flow
Modelica.Blocks.Math.AddQCoo_flowTotal cooling heat flow rate
UnitDelayPEPluDelay input signal by one hour to match timestep with Modelica simulation
UnitDelayQ_flowSenEPluDelay input signal by one hour to match timestep with Modelica simulation
UnitDelayQ_flowEPluDelay input signal by one hour to match timestep with Modelica simulation
UnitDelayTOutEPluDelay input signal by one hour to match timestep with Modelica simulation
UnitDelayXEvaOutEPluDelay input signal by one hour to match timestep with Modelica simulation
Modelica.Blocks.Math.MultiSummultiSumAdd small value to measured value to avoid division by zero
Modelica.Blocks.Sources.ConstantsmallSmall value to avoid division by zero

Contents

NameDescription
MediumMedium model
UnitDelayprotected

Revisions

  • April 5, 2023, by Karthik Devaprasad and Xing Lu:
    Updated class name to differentiate from validation models for heating coils.
    Updated connect statements to reflect change in input instance on sinSpeDX from TConIn to TOut.
    Updated comments and formatting for readability.
  • January 22, 2016, by Michael Wetter:
    Corrected type declaration of pressure difference. This is for #404.
  • September 24, 2015 by Michael Wetter:
    Implemented UnitDelay to avoid a translation warning because UnitDelay.firstTrigger does not set the fixed attribute in MSL 3.2.1.
  • June 9, 2015, by Michael Wetter:
    Corrected wrong link to run script.
  • December 22, 2014 by Michael Wetter:
    Removed Modelica.Fluid.System to address issue #311.
  • September 4, 2012 by Michael Wetter:
    Modified example to avoid having to access protected data.
  • August 20, 2012 by Kaustubh Phalak:
    First implementation.