modelSingleSpeed_TimedReverseCycleDefrost

Validation model for single speed heating DX coil with defrost operation

Extends from Modelica.Icons.Example (Icon for runnable examples), Buildings.Fluid.DXSystems.Heating.AirSource.Validation.BaseClasses.SingleSpeedHeating (Baseclass for validation models for single speed DX heating coil).

Information

This model validates the model Buildings.Fluid.DXSystems.Heating.AirSource.SingleSpeed with the defrost time fraction calculation datDef.defTri set to DefrostTimeMethods.timed and the defrost operation type datDef.defOpe set to DefrostOperation.reverseCycle.

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 22.2. The results were then used to set-up the boundary conditions for the model as well as the input signals. 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. Also, the temperatures in Modelica are in Kelvin whereas they are in Celsius in EnergyPlus. Hence, the EnergyPlus values are corrected by using the appropriate conversion blocks.

The plots compare the outlet temperature and humidity ratio between Modelica and EnergyPlus. They also compare the power consumption by the coil compressor as well as the heat transfer from the airloop.

Parameters

TypeNameDefaultDescription
Buildings.Fluid.DXSystems.Heating.AirSource.Validation.Data.SingleSpeedHeatingdatCoi (from SingleSpeedHeating)Heating coil data record

Components

TypeNameDefaultDescription
Buildings.Fluid.Sources.Boundary_pTsin (from SingleSpeedHeating)Sink
Buildings.Fluid.DXSystems.Heating.AirSource.SingleSpeedsinSpeDX (from SingleSpeedHeating)Single speed DX heating coil
Buildings.Utilities.IO.BCVTB.From_degCTEvaIn_K (from SingleSpeedHeating)Converts degC to K
Buildings.Utilities.IO.BCVTB.From_degCTConIn_K (from SingleSpeedHeating)Converts degC to K
Modelica.Blocks.Math.MeanTOutMea (from SingleSpeedHeating)Mean of measured outlet air temperature
Buildings.Utilities.IO.BCVTB.To_degCTOutDegC (from SingleSpeedHeating)Convert measured outlet air temperature to deg C
Modelica.Blocks.Sources.RealExpressionTOut (from SingleSpeedHeating)Measured temperature of outlet air
Modelica.Blocks.Math.MeanXConOutMea (from SingleSpeedHeating)Mean of measured outlet air humidity ratio per kg total air
Modelica.Blocks.Sources.RealExpressionXConOut (from SingleSpeedHeating)Measured humidity ratio of outlet air
Modelica.Blocks.Math.MeanQ_flowMea (from SingleSpeedHeating)Mean of cooling rate
Modelica.Blocks.Math.MeanPMea (from SingleSpeedHeating)Mean of power
Buildings.Controls.OBC.CDL.Discrete.UnitDelayPEPlu (from SingleSpeedHeating)Total power consumption from EnergyPlus
Buildings.Controls.OBC.CDL.Discrete.UnitDelayQ_flowEPlu (from SingleSpeedHeating)Heat transfer to airloop from EnergyPlus
Buildings.Controls.OBC.CDL.Discrete.UnitDelayTOutEPlu (from SingleSpeedHeating)Outlet temperature from EnergyPlus
Buildings.Controls.OBC.CDL.Discrete.UnitDelayXConOutEPlu (from SingleSpeedHeating)Outlet air humidity ratio from EnergyPlus
Buildings.Utilities.Psychrometrics.ToTotalAirtoTotAirOut (from SingleSpeedHeating)Convert humidity ratio per kg dry air to humidity ratio per kg total air for outdoor air
Buildings.Utilities.Psychrometrics.ToTotalAirtoTotAirEPlu (from SingleSpeedHeating)Convert humidity ratio per kg dry air from EnergyPlus to humidity ratio per kg total air
Buildings.Controls.OBC.CDL.Discrete.UnitDelayPDefEPlu (from SingleSpeedHeating)Defrost power from EnergyPlus
Buildings.Controls.OBC.CDL.Discrete.UnitDelayPCraEPlu (from SingleSpeedHeating)Cranckcase heater power from EnergyPlus
Modelica.Blocks.Sources.CombiTimeTabledatRea (from SingleSpeedHeating)Reader for EnergyPlus example results
Buildings.Fluid.Sources.MassFlowSource_Tboundary (from SingleSpeedHeating)Mass flow source for coil inlet air
Buildings.Utilities.Psychrometrics.ToTotalAirtoTotAirIn (from SingleSpeedHeating)Convert humidity ratio per kg dry air to humidity ratio per kg total air for coil inlet air
Buildings.Utilities.Psychrometrics.Phi_pTXphi (from SingleSpeedHeating)Conversion to relative humidity
Modelica.Blocks.Sources.ConstantpAtm (from SingleSpeedHeating)Atmospheric pressure
Controls.OBC.CDL.Logical.VariablePulseplrToPul (from SingleSpeedHeating)Convert part load ratio to pulse signal

Revisions

  • July 9, 2024, by Michael Wetter:
    Replaced instance plrToPul with model from CDL package as the earlier implementation caused problems in cross-tool validation.
    This is for #3939.
  • April 2, 2023, by Karthik Devaprasad and Xing Lu:
    First implementation.