Buildings.Fluid.DXSystems.Heating.AirSource.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.DXSystems.Heating.AirSource.

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

Package Content

Name Description
Buildings.Fluid.DXSystems.Heating.AirSource.Examples.SingleSpeed SingleSpeed Test model for single speed DX heating coil
Buildings.Fluid.DXSystems.Heating.AirSource.Examples.PerformanceCurves PerformanceCurves Package with several performance curves

Buildings.Fluid.DXSystems.Heating.AirSource.Examples.SingleSpeed Buildings.Fluid.DXSystems.Heating.AirSource.Examples.SingleSpeed

Test model for single speed DX heating coil

Buildings.Fluid.DXSystems.Heating.AirSource.Examples.SingleSpeed

Information

This is an example model for Buildings.Fluid.DXSystems.Heating.AirSource.SingleSpeed. The model has time-varying control signals and input conditions.

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

Parameters

TypeNameDefaultDescription
MassFlowRatem_flow_nominaldatCoi.sta[datCoi.nSta].nomV...Nominal mass flow rate [kg/s]
PressureDifferencedp_nominal1000Pressure drop at m_flow_nominal [Pa]
DXCoildatCoidatCoi(nSta=1, minSpeRat=0.2...DX heating coil data record

Modelica definition

model SingleSpeed "Test model for single speed DX heating coil" extends Modelica.Icons.Example; package Medium = Buildings.Media.Air "Fluid medium for the model"; parameter Modelica.Units.SI.MassFlowRate m_flow_nominal=datCoi.sta[datCoi.nSta].nomVal.m_flow_nominal "Nominal mass flow rate"; parameter Modelica.Units.SI.PressureDifference dp_nominal=1000 "Pressure drop at m_flow_nominal"; parameter Buildings.Fluid.DXSystems.Heating.AirSource.Data.Generic.DXCoil datCoi( nSta=1, minSpeRat=0.2, sta={ Buildings.Fluid.DXSystems.Heating.AirSource.Data.Generic.BaseClasses.Stage( spe=1800/60, nomVal= Buildings.Fluid.DXSystems.Heating.AirSource.Data.Generic.BaseClasses.NominalValues( Q_flow_nominal=16381.47714, COP_nominal=3.90494, m_flow_nominal=2, TEvaIn_nominal=273.15 - 5, TConIn_nominal=273.15 + 21), perCur= Buildings.Fluid.DXSystems.Heating.AirSource.Examples.PerformanceCurves.Curve_I())}, final defOpe=Buildings.Fluid.DXSystems.Heating.BaseClasses.Types.DefrostOperation.resistive, final defTri=Buildings.Fluid.DXSystems.Heating.BaseClasses.Types.DefrostTimeMethods.timed, final tDefRun=1/6, final TDefLim=273.65, final QDefResCap=10500, final QCraCap=200) "DX heating coil data record"; Buildings.Fluid.DXSystems.Heating.AirSource.SingleSpeed sinSpeDX( final datCoi=datCoi, redeclare package Medium = Medium, final dp_nominal=dp_nominal, final T_start=datCoi.sta[1].nomVal.TConIn_nominal, final show_T=true, final from_dp=true, final energyDynamics=Modelica.Fluid.Types.Dynamics.FixedInitial, final dTHys=1e-6) "Single speed DX coil"; Buildings.Fluid.Sources.Boundary_pT sin( redeclare package Medium = Medium, final p(displayUnit="Pa") = 101325, final T=303.15, final nPorts=1) "Sink"; Buildings.Fluid.Sources.Boundary_pT sou( redeclare package Medium = Medium, final use_T_in=true, final use_p_in=true, final nPorts=1) "Source"; Modelica.Blocks.Sources.BooleanStep onOff( final startTime=600) "Compressor on-off signal"; Modelica.Blocks.Sources.Ramp TConIn( final duration=600, final startTime=2400, final height=-3, final offset=273.15 + 23) "Temperature"; Modelica.Blocks.Sources.Ramp p( final duration=600, final startTime=600, final height=dp_nominal, final offset=101325) "Pressure"; Modelica.Blocks.Sources.Constant TEvaIn( final k=273.15 + 0) "Evaporator inlet temperature"; Modelica.Blocks.Sources.Constant phi(final k=0.1) "Outside air relative humidity"; equation connect(TConIn.y, sou.T_in); connect(onOff.y, sinSpeDX.on); connect(p.y, sou.p_in); connect(sinSpeDX.port_a, sou.ports[1]); connect(TEvaIn.y, sinSpeDX.TOut); connect(sinSpeDX.port_b, sin.ports[1]); connect(sinSpeDX.phi, phi.y); end SingleSpeed;