Collection of models that validate the window base class models
Information
This package contains models that validate the window base class models.
The examples plot various outputs, which have been verified against
analytical solutions. These model outputs are stored as reference data to
allow continuous validation whenever models in the library change.
Extends from Modelica.Icons.ExamplesPackage (Icon for packages containing runnable examples).
Package Content
Name |
Description |
HeatCapacityConstantShade
|
Validation model for heat capacity with constant shade signal |
HeatCapacityVariableShade
|
Validation model for heat capacity with variable shade signal |
HeatCapacityVariableShadeDT
|
Validation model for heat capacity with variable shade signal and different room temperature |
Validation model for heat capacity with constant shade signal
Information
This model validates the heat capacitor model for the window glass,
with and without a shade. For the case with shade, different
constant shade control signals are used to test
the correct energy storage of the system.
All temperatures need to decay at the same rates because
the area of heat transfer, and the heat capacity to which the
glass is connected, are scaled proportionally to the control signal.
Extends from Modelica.Icons.Example (Icon for runnable examples).
Parameters
Type | Name | Default | Description |
Area | AGla | 2 | Glass area [m2] |
Glass | datGla | | Thermal properties for glass |
Modelica definition
model HeatCapacityConstantShade
extends Modelica.Icons.Example;
parameter Modelica.SIunits.Area AGla = 2 ;
parameter Data.Solids.Glass datGla(x=0.005)
;
HeatCapacity heaCapGla(
haveShade=true,
TUns(fixed=true),
TSha(fixed=true),
C=AGla*datGla.x*datGla.d*datGla.c)
;
Modelica.Thermal.HeatTransfer.Components.HeatCapacitor heaCapSha1(
C=0.5*1000,
T(start=283.15, fixed=true))
;
Modelica.Thermal.HeatTransfer.Components.HeatCapacitor heaCapUns1(
C=0.5*1000,
T(start=283.15, fixed=true))
;
Modelica.Blocks.Sources.Constant y05(k=0.5) ;
Modelica.Thermal.HeatTransfer.Components.ThermalConductor theConUns1(
G=0.5*AGla*10)
;
Modelica.Thermal.HeatTransfer.Components.ThermalConductor theConSha1(
G=0.5*AGla*10)
;
HeatCapacity heaCapGla01(
haveShade=true,
TUns(fixed=true),
TSha(fixed=true),
C=AGla*datGla.x*datGla.d*datGla.c)
;
Modelica.Thermal.HeatTransfer.Components.HeatCapacitor heaCapSha2(
C=0.1*1000,
T(start=283.15, fixed=true))
;
Modelica.Thermal.HeatTransfer.Components.HeatCapacitor heaCapUns2(
C=0.9*1000,
T(start=283.15, fixed=true))
;
Modelica.Blocks.Sources.Constant y1(k=0.1) ;
Modelica.Thermal.HeatTransfer.Components.ThermalConductor theConUns2(
G=0.9*AGla*10)
;
Modelica.Thermal.HeatTransfer.Components.ThermalConductor theConSha2(
G=0.1*AGla*10)
;
Modelica.Blocks.Sources.Constant y2(k=0.9) ;
HeatCapacity heaCapGlaNoSha(
TUns(fixed=true),
haveShade=false,
C=AGla*datGla.x*datGla.d*datGla.c) ;
Modelica.Thermal.HeatTransfer.Components.ThermalConductor theConUns3(G=AGla*10)
;
Modelica.Thermal.HeatTransfer.Components.HeatCapacitor heaCapUns3(C=1000, T(
start=283.15, fixed=true))
;
equation
connect(y05.y, heaCapGla.ySha);
connect(y05.y, heaCapGla.yCom);
connect(heaCapUns1.port, theConUns1.port_b);
connect(theConUns1.port_a, heaCapGla.portUns);
connect(heaCapGla.portSha, theConSha1.port_a);
connect(theConSha1.port_b, heaCapSha1.port);
connect(y1.y, heaCapGla01.ySha);
connect(heaCapUns2.port,theConUns2. port_b);
connect(theConUns2.port_a, heaCapGla01.portUns);
connect(heaCapGla01.portSha, theConSha2.port_a);
connect(theConSha2.port_b,heaCapSha2. port);
connect(y2.y, heaCapGla01.yCom);
connect(theConUns3.port_b,heaCapUns3. port);
connect(heaCapGlaNoSha.portUns, theConUns3.port_a);
end HeatCapacityConstantShade;
Validation model for heat capacity with variable shade signal
Information
This model validates the heat capacitor model for the window glass,
with varying control signal and heat conduction to a thermal capacity
that is a surrogate for the room model.
As the thermal capacity is at the same temperature, no heat is exchanged.
Extends from Modelica.Icons.Example (Icon for runnable examples).
Parameters
Type | Name | Default | Description |
Area | AGla | 2 | Glass area [m2] |
Glass | datGla | | Thermal properties for glass |
Modelica definition
model HeatCapacityVariableShade
extends Modelica.Icons.Example;
parameter Modelica.SIunits.Area AGla = 2 ;
parameter Buildings.HeatTransfer.Data.Solids.Glass datGla(x=0.005)
;
HeatCapacity heaCapGla(
haveShade=true,
TUns(fixed=true),
TSha(fixed=true),
C=AGla*datGla.x*datGla.d*datGla.c)
;
Modelica.Thermal.HeatTransfer.Components.HeatCapacitor heaCapSha(
C=1000,
T(start=293.15, fixed=true))
;
Modelica.Blocks.Sources.Ramp yRamp(
height=0.5,
offset=0.25,
duration=300,
startTime=150) ;
Modelica.Thermal.HeatTransfer.Components.Convection theConSha
;
Modelica.Thermal.HeatTransfer.Components.Convection theConUns
;
Modelica.Blocks.Sources.RealExpression yCom(y=1 - yRamp.y)
;
Modelica.Blocks.Math.Gain hASha(k=AGla*10)
;
Modelica.Blocks.Math.Gain hAUns(k=AGla*10)
;
equation
connect(yRamp.y, heaCapGla.ySha);
connect(heaCapGla.portSha, theConSha.solid);
connect(theConSha.fluid, heaCapSha.port);
connect(theConUns.fluid, heaCapSha.port);
connect(heaCapGla.portUns, theConUns.solid);
connect(yCom.y, heaCapGla.yCom);
connect(yRamp.y, hASha.u);
connect(hASha.y, theConSha.Gc);
connect(hAUns.y, theConUns.Gc);
connect(yCom.y, hAUns.u);
end HeatCapacityVariableShade;
Validation model for heat capacity with variable shade signal and different room temperature
Information
This model validates the heat capacitor model for the window glass,
with varying control signal and heat conduction to a thermal capacity
that is a surrogate for the room model.
As the thermal capacity is at a different temperature, heat is exchanged.
The window area with the small control signal is smaller, and hence
a smaller amount of heat is exchanged.
Extends from HeatCapacityVariableShade (Validation model for heat capacity with variable shade signal).
Parameters
Type | Name | Default | Description |
Area | AGla | 2 | Glass area [m2] |
Glass | datGla | | Thermal properties for glass |
Modelica definition
model HeatCapacityVariableShadeDT
extends HeatCapacityVariableShade(heaCapSha(T(start=298.15)));
end HeatCapacityVariableShadeDT;