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
| Type | Name | Default | Description |
|---|---|---|---|
| Integer | NConExt (from ConstructionNumbers) | max(1, nConExt) | Number of elements for exterior constructions |
| Integer | NConExtWin (from ConstructionNumbers) | max(1, nConExtWin) | Number of elements for exterior constructions with windows |
| Integer | NConPar (from ConstructionNumbers) | max(1, nConPar) | Number of elements for partition constructions |
| Integer | NConBou (from ConstructionNumbers) | max(1, nConBou) | Number of elements for constructions that have their outside surface exposed to the boundary of this room |
| Integer | NSurBou (from ConstructionNumbers) | max(1, nSurBou) | Number of elements for surface heat transfer models that connect to constructions that are modeled outside of this room |
| Boolean | haveConExt (from ConstructionNumbers) | nConExt > 0 | Flag to conditionally remove components |
| Boolean | haveConExtWin (from ConstructionNumbers) | nConExtWin > 0 | Flag to conditionally remove components |
| Boolean | haveConPar (from ConstructionNumbers) | nConPar > 0 | Flag to conditionally remove components |
| Boolean | haveConBou (from ConstructionNumbers) | nConBou > 0 | Flag to conditionally remove components |
| Boolean | haveSurBou (from ConstructionNumbers) | nSurBou > 0 | Flag 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.Brick120 | dummyCon (from ConstructionRecords) | Dummy construction to assign a parameter to the instance | |
| Buildings.HeatTransfer.Data.GlazingSystems.SingleClear3 | dummyGlaSys (from ConstructionRecords) | Dummy construction to assign a parameter to the instance | |
| Boolean | haveShade (from PartialAirHeatMassBalance) | Set to true if at least one window has an interior or exterior shade | |
| Modelica.Units.SI.Volume | V (from PartialAirHeatMassBalance) | Volume | |
| String | cfdFilNam | CFD input file name | |
| Boolean | useCFD | true | Set to false to deactivate the CFD interface and use instead yFixed as output |
| Boolean | haveSensor | Flag, true if the model has at least one sensor | |
| Integer | nSen | Number of sensors that are connected to CFD output | |
| String[nSen] | sensorName | Names of sensors as declared in the CFD input file | |
| String[nPorts] | portName | Names of fluid ports as declared in the CFD input file | |
| Real[nConExtWin] | uSha_fixed | Constant control signal for the shading device (0: unshaded; 1: fully shaded) | |
| Exterior constructions | |||
| Integer | nConExt (from ConstructionNumbers) | Number of exterior constructions | |
| Integer | nConExtWin (from ConstructionNumbers) | Number of window constructions | |
| Partition constructions | |||
| Integer | nConPar (from ConstructionNumbers) | Number of partition constructions | |
| Boundary constructions | |||
| Integer | nConBou (from ConstructionNumbers) | Number of constructions that have their outside surface exposed to the boundary of this room | |
| Integer | nSurBou (from ConstructionNumbers) | Number of surface heat transfer models that connect to constructions that are modeled outside of this room | |
| General › Ports | |||
| Integer | nPorts (from PartialAirHeatMassBalance) | 0 | Number of ports |
| Dynamics › Conservation equations | |||
| Modelica.Fluid.Types.Dynamics | massDynamics | Formulation of mass balance | |
| Initialization | |||
| Medium.AbsolutePressure | p_start | Start value of pressure | |
| Sampling | |||
| Modelica.Units.SI.Time | samplePeriod | Sample period of component | |
Connectors
| Type | Name | Default | Description |
|---|---|---|---|
| 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.RealInput | QCon_flow (from PartialAirHeatMassBalance) | Convective sensible heat gains of the room | |
| Modelica.Blocks.Interfaces.RealInput | QLat_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_a | heaPorAir (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] | yCFD | Sensor for output from CFD |
Components
| Type | Name | Default | Description |
|---|---|---|---|
| CFDExchange | cfd | Block that exchanges data with the CFD simulation | |
| Modelica.Blocks.Math.Add | QTotCon_flow | Total sensible convective heat flow rate added to the room | |
| Modelica.Thermal.HeatTransfer.Sensors.HeatFlowSensor | senHeaFlo | Sensor for heat flow added through the port heaPorAir | |
| to_W | QTotCon_flow_W |
Contents
| Name | Description |
|---|---|
| Medium in the component | |
| assignSurfaceIdentifierprotected |
Revisions
-
November 17, 2016, by Michael Wetter:
Removed protected parameteruStart, 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.