Buildings.ThermalZones.ReducedOrder.RC.BaseClasses
Package with base classes for ROM
Information
This packages contains base clases for ROM models.
Extends from Modelica.Icons.BasesPackage (Icon for packages containing base classes).
Package Content
Name | Description |
---|---|
ExteriorWall | Exterior wall consisting of variable number of RC elements |
InteriorWall | Interior wall consisting of variable number of RC elements |
ThermSplitter | A simple model which weights a given set of thermal inputs to calculate an average temperature and aggregated heat flow per output |
splitFacVal | Share of vector entries at sum of vector for multiple vectors |
Buildings.ThermalZones.ReducedOrder.RC.BaseClasses.ExteriorWall
Exterior wall consisting of variable number of RC elements
Information
ExteriorWall
represents heat conduction and heat storage
within walls. It links a variable number n
of thermal resistances
and capacities to a series connection. n
thus defines the spatial
discretization of thermal effects within the wall. All effects are considered
as one-dimensional normal to the wall's surface. This model is thought
for exterior wall elements that contribute to heat transfer to the outdoor.
The RC-chain is defined via a vector of capacities CExt[n]
and a
vector of resistances RExt[n]
. Resistances and capacities are
connected alternately, starting with the first resistance RExt[1]
,
from heat port_a
to heat port_b
. RExtRem
is the resistance between the last capacity CExt[end]
and the
heat port_b
.
Parameters
Type | Name | Default | Description |
---|---|---|---|
Integer | n | n(min=1) | Number of RC-elements |
Thermal mass | |||
ThermalResistance | RExt[n] | RExt(each min=Modelica.Const... | Vector of resistors, from port_a to port_b [K/W] |
ThermalResistance | RExtRem | RExtRem(min=Modelica.Constan... | Resistance of remaining resistor RExtRem between capacitor n and port_b [K/W] |
HeatCapacity | CExt[n] | CExt(each min=Modelica.Const... | Vector of heat capacities, from port_a to port_b [J/K] |
Temperature | T_start | Initial temperature of capacities [K] |
Connectors
Type | Name | Description |
---|---|---|
HeatPort_a | port_a | interior port |
HeatPort_b | port_b | exterior port |
Modelica definition
Buildings.ThermalZones.ReducedOrder.RC.BaseClasses.InteriorWall
Interior wall consisting of variable number of RC elements
Information
InteriorWall
represents heat storage within walls. It links a
variable number n
of thermal resistances and capacities to a
series connection. n
thus defines the spatial discretization of
thermal effects within the wall. All effects are considered as one-dimensional
normal to the wall's surface. This model is thought for interior wall
elements that only serve as heat storage elements. The RC-chain is defined via
a vector of capacities CInt[n]
and a vector of resistances
RInt[n]
.
Resistances and capacities are connected alternately, starting with the first
resistance RInt[1]
, from heat port_a
into the wall.
Parameters
Type | Name | Default | Description |
---|---|---|---|
Integer | n | n(min=1) | Number of RC-elements |
Thermal mass | |||
ThermalResistance | RInt[n] | RInt(each min=Modelica.Const... | Vector of resistors, from port to capacitor [K/W] |
HeatCapacity | CInt[n] | CInt(each min=Modelica.Const... | Vector of heat capacitors, from port to center [J/K] |
Temperature | T_start | Initial temperature of capacities [K] |
Connectors
Type | Name | Description |
---|---|---|
HeatPort_a | port_a | interior port |
Modelica definition
Buildings.ThermalZones.ReducedOrder.RC.BaseClasses.ThermSplitter
A simple model which weights a given set of thermal inputs
to calculate an average temperature and aggregated heat flow per output
Information
This model is used to weight thermal ports (inputs) according to given split factors per output port.
The model needs the dimensions of the splitted therm ports (for input and output ports resp.) and the split factors, which are between 0 and 1. Each row of the split factor matrix gives the split factors for one output port. The number of columns need to align with the number of input ports.
Parameters
Type | Name | Default | Description |
---|---|---|---|
Integer | nOut | Number of splitter outputs | |
Integer | nIn | Number of splitter inputs | |
Real | splitFactor[nOut, nIn] | fill(1/nOut, nOut, nIn) | Matrix of split factor for outputs (between 0 and 1 for each row) |
Connectors
Type | Name | Description |
---|---|---|
HeatPort_a | portIn[nIn] | Single thermal input |
HeatPort_a | portOut[nOut] | Set of thermal outputs |
Modelica definition
Buildings.ThermalZones.ReducedOrder.RC.BaseClasses.splitFacVal
Share of vector entries at sum of vector for multiple vectors
Information
Calculates the ratio of the surface areas of a wall to the total wall area,
unless the area is zero. It subtracts the wall area AExt
for first entry in AArray
and AWin
for
second entry in AArray unless AArray[1]
and/or
AArray[2]
are not zero. This is done separately for each
orientation. Consequently, the function gives an nRow x nCol
array back as output. Each row stands for one area in
AArray
and each column for one orientation in
AExt
and AWin
. The function is used to
calculate the split factors for
Buildings.ThermalZones.ReducedOrder.RC.BaseClasses.ThermSplitter.
SplitFaci = AArray[i] /ATot
wherebyATot
is the sum of AArray
. To
perform this,
AExt
and AWin
can just be set to vectors of
zeros with length 1.
For solar radiation through windows, the window and wall area with the same
orientation as the incoming radiation should be subtracted as these areas
cannot be hit by the radiation. This needs to be done separately for each
orientation and for exterior walls and windows only, according to:
SplitFaci,k = (AArray[i] - AExt[k]) /(ATot - AExt[k] -AWin[k])
andSplitFaci,k = (AArray[i] - AWin[k]) /(ATot - AExt[k] - AWin[k])
respectively. For all other walls, the equation is:SplitFaci,k = AArray[i] /(ATot - AExt[k] - AWin[k])
Extends from Modelica.Icons.Function (Icon for functions).
Inputs
Type | Name | Default | Description |
---|---|---|---|
Integer | nRow | Number of rows | |
Integer | nCol | Number of columns | |
Area | AArray[:] | Vector of areas [m2] | |
Area | AExt[nCol] | Vector of exterior wall areas [m2] | |
Area | AWin[nCol] | Vector of window areas [m2] |
Outputs
Type | Name | Description |
---|---|---|
Real | splitFacValues[nRow, nCol] | Split factor values for ThermSplitter |