Buildings.ThermalZones.ReducedOrder.EquivalentAirTemperature.BaseClasses
Package with base classes for the equivalent air temperature
Information
This package contains base classes for equivalent air temperature models.
Extends from Modelica.Icons.BasesPackage (Icon for packages containing base classes).
Package Content
Name | Description |
---|---|
PartialVDI6007 | Partial model for equivalent air temperature as defined in VDI 6007 Part 1 |
SourceSelector | Block that selects as its output either a parameter value or its input |
Buildings.ThermalZones.ReducedOrder.EquivalentAirTemperature.BaseClasses.PartialVDI6007
Partial model for equivalent air temperature as defined in VDI 6007 Part 1
Information
PartialVDI6007
is a partial model for EquivalentAirTemperature
models.
Parameters
Type | Name | Default | Description |
---|---|---|---|
Emissivity | aExt | Coefficient of absorption of exterior walls (outdoor) [1] | |
Integer | n | Number of orientations (without ground) | |
Real | wfWall[n] | Weight factors of the walls [1] | |
Real | wfWin[n] | Weight factors of the windows [1] | |
Real | wfGro | Weight factor of the ground (0 if not considered) [1] | |
Temperature | TGro | Constant temperature of the ground in contact with floor plate [K] | |
CoefficientOfHeatTransfer | hConWallOut | Exterior walls convective coefficient of heat transfer (outdoor) [W/(m2.K)] | |
CoefficientOfHeatTransfer | hRad | Coefficient of heat transfer for linearized radiation [W/(m2.K)] | |
Boolean | withLongwave | true | Set to true to include longwave radiation exchange |
Boolean | TGroundFromInput | false | Set to true to use TGro_in input connector instead of TGro constant |
Connectors
Type | Name | Description |
---|---|---|
input RealInput | HSol[n] | Solar radiation per unit area [W/m2] |
input RealInput | TBlaSky | Black-body sky temperature [K] |
input RealInput | TDryBul | Dry bulb temperature [K] |
output RealOutput | TEqAir | Equivalent air temperature [K] |
input RealInput | sunblind[n] | Opening factor of sunblinds for each direction (0 - open to 1 - closed) [1] |
input RealInput | TGro_in | Temperature of the ground in contact with floor plate [K] |
Modelica definition
partial model PartialVDI6007
"Partial model for equivalent air temperature as defined in VDI 6007 Part 1"
parameter Modelica.Units.SI.Emissivity aExt
"Coefficient of absorption of exterior walls (outdoor)";
parameter Integer n "Number of orientations (without ground)";
parameter Real wfWall[n](each final unit="1") "Weight factors of the walls";
parameter Real wfWin[n](each final unit="1") "Weight factors of the windows";
parameter Real wfGro(unit="1")
"Weight factor of the ground (0 if not considered)";
parameter Modelica.Units.SI.Temperature TGro
"Constant temperature of the ground in contact with floor plate";
parameter Modelica.Units.SI.CoefficientOfHeatTransfer hConWallOut
"Exterior walls convective coefficient of heat transfer (outdoor)";
parameter Modelica.Units.SI.CoefficientOfHeatTransfer hRad
"Coefficient of heat transfer for linearized radiation";
parameter Boolean withLongwave=true
"Set to true to include longwave radiation exchange";
parameter Boolean TGroundFromInput=false
"Set to true to use TGro_in input connector instead of TGro constant";
Modelica.Units.SI.Temperature TEqWall[n] "Equivalent wall temperature";
Modelica.Units.SI.Temperature TEqWin[n] "Equivalent window temperature";
Modelica.Units.SI.TemperatureDifference delTEqLW
"Equivalent long wave temperature";
Modelica.Units.SI.TemperatureDifference delTEqLWWin
"Equivalent long wave temperature for windows";
Modelica.Units.SI.TemperatureDifference delTEqSW[n]
"Equivalent short wave temperature";
Modelica.Blocks.Interfaces.RealInput HSol[n](
each final quantity="RadiantEnergyFluenceRate",
each final unit="W/m2") "Solar radiation per unit area";
Modelica.Blocks.Interfaces.RealInput TBlaSky(
final quantity="ThermodynamicTemperature",
displayUnit="degC",
final unit="K") "Black-body sky temperature";
Modelica.Blocks.Interfaces.RealInput TDryBul(
final quantity="ThermodynamicTemperature",
final unit="K",
displayUnit="degC") "Dry bulb temperature";
Modelica.Blocks.Interfaces.RealOutput TEqAir(
final quantity="ThermodynamicTemperature",
final unit="K",
displayUnit="degC") "Equivalent air temperature";
Modelica.Blocks.Interfaces.RealInput sunblind[n](
each min=0,
each max=1,
each final unit="1")
"Opening factor of sunblinds for each direction (0 - open to 1 - closed)";
Modelica.Blocks.Interfaces.RealInput TGro_in(
final quantity="ThermodynamicTemperature",
final unit="K",
displayUnit="degC") if TGroundFromInput
"Temperature of the ground in contact with floor plate";
protected
SourceSelector TGroSouSel(final useInput=TGroundFromInput, p=TGro)
"Input selector for ground temperature";
initial equation
assert(noEvent(abs(sum(wfWall) + sum(wfWin) + wfGro) > 0.1),
"The sum of the weighting factors (walls,windows and ground) in the
equivalent air temperature calculation is close to 0.
If there are no walls, windows and ground at all, this might be
irrelevant.", level=AssertionLevel.warning);
equation
delTEqLW=(TBlaSky - TDryBul)*hRad/(hRad + hConWallOut);
delTEqSW=HSol*aExt/(hRad + hConWallOut);
if withLongwave then
TEqWin=TDryBul.+delTEqLWWin*(ones(n)-sunblind);
TEqWall=TDryBul.+delTEqLW.+delTEqSW;
else
TEqWin=TDryBul*ones(n);
TEqWall=TDryBul.+delTEqSW;
end if;
connect(TGro_in, TGroSouSel.uCon);
end PartialVDI6007;
Buildings.ThermalZones.ReducedOrder.EquivalentAirTemperature.BaseClasses.SourceSelector
Block that selects as its output either a parameter value or its input
Information
Block that produces at its output the input value uCon
or the parameter value p
depending on the parameter value
useInput
.
Extends from Modelica.Blocks.Interfaces.SO (Single Output continuous control block).
Parameters
Type | Name | Default | Description |
---|---|---|---|
Boolean | useInput | Use input (if true) or parameter value (if false) | |
Real | p | Parameter value |
Connectors
Type | Name | Description |
---|---|---|
output RealOutput | y | Connector of Real output signal |
input RealInput | uCon | Input signal from input connector |
Modelica definition
block SourceSelector
"Block that selects as its output either a parameter value or its input"
extends Modelica.Blocks.Interfaces.SO;
parameter Boolean useInput "Use input (if true) or parameter value (if false)";
parameter Real p "Parameter value";
Modelica.Blocks.Interfaces.RealInput uCon if useInput
"Input signal from input connector";
equation
if not useInput then
y = p;
end if;
connect(uCon, y);
end SourceSelector;