modelCFDAirHeatMassBalance

Heat and mass balance of the air based on computational fluid dynamics

Extends from Buildings.ThermalZones.Detailed.BaseClasses.PartialAirHeatMassBalance (Partial model for heat and mass balance of the air).

Information

This model computes the heat and mass balance of the air using Computational Fluid Dynamics program.

For a documentation of the exchange parameters and variables, see Buildings.ThermalZones.Detailed.UsersGuide.CFD.

Parameters

TypeNameDefaultDescription
IntegerNConExt (from ConstructionNumbers)max(1, nConExt)Number of elements for exterior constructions
IntegerNConExtWin (from ConstructionNumbers)max(1, nConExtWin)Number of elements for exterior constructions with windows
IntegerNConPar (from ConstructionNumbers)max(1, nConPar)Number of elements for partition constructions
IntegerNConBou (from ConstructionNumbers)max(1, nConBou)Number of elements for constructions that have their outside surface exposed to the boundary of this room
IntegerNSurBou (from ConstructionNumbers)max(1, nSurBou)Number of elements for surface heat transfer models that connect to constructions that are modeled outside of this room
BooleanhaveConExt (from ConstructionNumbers)nConExt > 0Flag to conditionally remove components
BooleanhaveConExtWin (from ConstructionNumbers)nConExtWin > 0Flag to conditionally remove components
BooleanhaveConPar (from ConstructionNumbers)nConPar > 0Flag to conditionally remove components
BooleanhaveConBou (from ConstructionNumbers)nConBou > 0Flag to conditionally remove components
BooleanhaveSurBou (from ConstructionNumbers)nSurBou > 0Flag to conditionally remove components
ParameterConstruction[NConExt]datConExt (from ConstructionRecords)Data for exterior construction
Buildings.ThermalZones.Detailed.BaseClasses.ParameterConstructionWithWindow[NConExtWin]datConExtWin (from ConstructionRecords)Data for exterior construction with window
Buildings.ThermalZones.Detailed.BaseClasses.ParameterConstruction[NConPar]datConPar (from ConstructionRecords)Data for partition construction
Buildings.ThermalZones.Detailed.BaseClasses.ParameterConstruction[NConBou]datConBou (from ConstructionRecords)Data for construction boundary
Buildings.ThermalZones.Detailed.BaseClasses.OpaqueSurface[NSurBou]surBou (from ConstructionRecords)Record for data of surfaces whose heat conduction is modeled outside of this room
HeatTransfer.Data.OpaqueConstructions.Brick120dummyCon (from ConstructionRecords)Dummy construction to assign a parameter to the instance
Buildings.HeatTransfer.Data.GlazingSystems.SingleClear3dummyGlaSys (from ConstructionRecords)Dummy construction to assign a parameter to the instance
BooleanhaveShade (from PartialAirHeatMassBalance)Set to true if at least one window has an interior or exterior shade
Modelica.Units.SI.VolumeV (from PartialAirHeatMassBalance)Volume
StringcfdFilNamCFD input file name
BooleanuseCFDtrueSet to false to deactivate the CFD interface and use instead yFixed as output
BooleanhaveSensorFlag, true if the model has at least one sensor
IntegernSenNumber of sensors that are connected to CFD output
String[nSen]sensorNameNames of sensors as declared in the CFD input file
String[nPorts]portNameNames of fluid ports as declared in the CFD input file
Real[nConExtWin]uSha_fixedConstant control signal for the shading device (0: unshaded; 1: fully shaded)
Exterior constructions
IntegernConExt (from ConstructionNumbers)Number of exterior constructions
IntegernConExtWin (from ConstructionNumbers)Number of window constructions
Partition constructions
IntegernConPar (from ConstructionNumbers)Number of partition constructions
Boundary constructions
IntegernConBou (from ConstructionNumbers)Number of constructions that have their outside surface exposed to the boundary of this room
IntegernSurBou (from ConstructionNumbers)Number of surface heat transfer models that connect to constructions that are modeled outside of this room
General › Ports
IntegernPorts (from PartialAirHeatMassBalance)0Number of ports
Dynamics › Conservation equations
Modelica.Fluid.Types.DynamicsmassDynamicsFormulation of mass balance
Initialization
Medium.AbsolutePressurep_startStart value of pressure
Sampling
Modelica.Units.SI.TimesamplePeriodSample period of component

Connectors

TypeNameDefaultDescription
Modelica.Blocks.Interfaces.RealInput[NConExtWin]uSha (from PartialAirHeatMassBalance)Input connector, used to scale the surface area to take into account an operable shading device, 0: unshaded; 1: fully shaded
Modelica.Blocks.Interfaces.RealInput[NConExtWin]QRadAbs_flow (from PartialAirHeatMassBalance)Total net radiation that is absorbed by the shade (positive if absorbed)
Modelica.Blocks.Interfaces.RealInputQCon_flow (from PartialAirHeatMassBalance)Convective sensible heat gains of the room
Modelica.Blocks.Interfaces.RealInputQLat_flow (from PartialAirHeatMassBalance)Latent heat gains for the room
Modelica.Blocks.Interfaces.RealOutput[NConExtWin]TSha (from PartialAirHeatMassBalance)Shade temperature
Modelica.Fluid.Vessels.BaseClasses.VesselFluidPorts_b[nPorts]ports (from PartialAirHeatMassBalance)Fluid inlets and outlets
Modelica.Thermal.HeatTransfer.Interfaces.HeatPort_aheaPorAir (from PartialAirHeatMassBalance)Heat port to air volume
Modelica.Thermal.HeatTransfer.Interfaces.HeatPort_a[NConExt]conExt (from PartialAirHeatMassBalance)Heat port that connects to room-side surface of exterior constructions
Modelica.Thermal.HeatTransfer.Interfaces.HeatPort_a[NConExtWin]conExtWin (from PartialAirHeatMassBalance)Heat port that connects to room-side surface of exterior constructions that contain a window
Modelica.Thermal.HeatTransfer.Interfaces.HeatPort_a[NConExtWin]glaUns (from PartialAirHeatMassBalance)Heat port that connects to room-side surface of unshaded glass
Modelica.Thermal.HeatTransfer.Interfaces.HeatPort_a[NConExtWin]glaSha (from PartialAirHeatMassBalance)Heat port that connects to room-side surface of shaded glass
Modelica.Thermal.HeatTransfer.Interfaces.HeatPort_a[NConExtWin]conExtWinFra (from PartialAirHeatMassBalance)Heat port that connects to room-side surface of window frame
Modelica.Thermal.HeatTransfer.Interfaces.HeatPort_a[NConPar]conPar_a (from PartialAirHeatMassBalance)Heat port that connects to room-side surface a of partition constructions
Modelica.Thermal.HeatTransfer.Interfaces.HeatPort_a[NConPar]conPar_b (from PartialAirHeatMassBalance)Heat port that connects to room-side surface b of partition constructions
Modelica.Thermal.HeatTransfer.Interfaces.HeatPort_a[NConBou]conBou (from PartialAirHeatMassBalance)Heat port that connects to room-side surface of constructions that expose their other surface to the outside
Modelica.Thermal.HeatTransfer.Interfaces.HeatPort_a[NSurBou]conSurBou (from PartialAirHeatMassBalance)Heat port to surfaces of models that compute the heat conduction outside of this room
Modelica.Blocks.Interfaces.RealOutput[nSen]yCFDSensor for output from CFD

Components

TypeNameDefaultDescription
CFDExchangecfdBlock that exchanges data with the CFD simulation
Modelica.Blocks.Math.AddQTotCon_flowTotal sensible convective heat flow rate added to the room
Modelica.Thermal.HeatTransfer.Sensors.HeatFlowSensorsenHeaFloSensor for heat flow added through the port heaPorAir
to_WQTotCon_flow_W

Contents

NameDescription
MediumMedium in the component
assignSurfaceIdentifierprotected

Revisions

  • November 17, 2016, by Michael Wetter:
    Removed protected parameter uStart, which is not needed.
    This is for issue 579.
  • December 31, 2013, by Wangda Zuo:
    • Corrected the connections. cfd.u should always be connected to Q_flow_out and cfd.y to T_in.
    • Added unit [W] for total convective sensible heat before it is input into component cfd.
    • Enabled transfer of C and X information.
    • Added initial value of shade.
  • July 17, 2013, by Michael Wetter:
    First implementation.