Buildings.ThermalZones.Detailed.Constructions.BaseClasses
Package with base classes for Buildings.ThermalZones.Detailed.Constructions
Information
This package contains base classes that are used to construct the models in Buildings.ThermalZones.Detailed.Constructions.
Extends from Modelica.Icons.BasesPackage (Icon for packages containing base classes).
Package Content
Name | Description |
---|---|
PartialConstruction | Partial model for exterior construction that has no window |
Buildings.ThermalZones.Detailed.Constructions.BaseClasses.PartialConstruction
Partial model for exterior construction that has no window
Information
This is the base class that is used to model opaque constructions in the room model.
The surface azimuth is defined in Buildings.Types.Azimuth and the surface tilt is defined in Buildings.Types.Tilt
Parameters
Type | Name | Default | Description |
---|---|---|---|
Area | A | Heat transfer area [m2] | |
Angle | til | Surface tilt [rad] | |
Opaque construction | |||
Area | AOpa | Heat transfer area of opaque construction [m2] | |
Generic | layers | Material properties of opaque construction | |
Initialization | |||
Boolean | steadyStateInitial | false | =true initializes dT(0)/dt=0, false initializes T(0) at fixed temperature using T_a_start and T_b_start |
Temperature | T_a_start | 293.15 | Initial temperature at port_a, used if steadyStateInitial = false [K] |
Temperature | T_b_start | 293.15 | Initial temperature at port_b, used if steadyStateInitial = false [K] |
Dynamics | |||
Boolean | stateAtSurface_a | true | =true, a state will be at the surface a |
Boolean | stateAtSurface_b | true | =true, a state will be at the surface b |
Connectors
Type | Name | Description |
---|---|---|
HeatPort_a | opa_a | Heat port at surface a of opaque construction |
HeatPort_b | opa_b | Heat port at surface b of opaque construction |
Modelica definition
partial model PartialConstruction
"Partial model for exterior construction that has no window"
parameter Modelica.Units.SI.Area A "Heat transfer area";
parameter Modelica.Units.SI.Area AOpa
"Heat transfer area of opaque construction";
parameter Buildings.HeatTransfer.Data.OpaqueConstructions.Generic
layers "Material properties of opaque construction";
parameter Modelica.Units.SI.Angle til "Surface tilt";
final parameter Boolean is_floor=til > 2.74889125 and til < 3.53428875
"Flag, true if construction is a floor";
final parameter Boolean is_ceiling=til > -0.392699 and til < 0.392699
"Flag, true if construction is a floor";
Modelica.Thermal.HeatTransfer.Interfaces.HeatPort_a opa_a
"Heat port at surface a of opaque construction";
Modelica.Thermal.HeatTransfer.Interfaces.HeatPort_b opa_b
"Heat port at surface b of opaque construction";
final parameter Integer nLay(min=1, fixed=true) = size(layers.material, 1)
"Number of layers";
final parameter Integer nSta[nLay](each min=1)=
{layers.material[i].nSta for i in 1:nLay} "Number of states";
parameter Boolean steadyStateInitial=false
"=true initializes dT(0)/dt=0, false initializes T(0) at fixed temperature using T_a_start and T_b_start";
parameter Modelica.Units.SI.Temperature T_a_start=293.15
"Initial temperature at port_a, used if steadyStateInitial = false";
parameter Modelica.Units.SI.Temperature T_b_start=293.15
"Initial temperature at port_b, used if steadyStateInitial = false";
parameter Boolean stateAtSurface_a=true
"=true, a state will be at the surface a";
parameter Boolean stateAtSurface_b=true
"=true, a state will be at the surface b";
HeatTransfer.Conduction.MultiLayer opa(
final A=AOpa,
final layers=layers,
final steadyStateInitial=steadyStateInitial,
final stateAtSurface_a = stateAtSurface_a,
final stateAtSurface_b = stateAtSurface_b,
final T_a_start=T_a_start,
final T_b_start=T_b_start)
"Model for heat transfer through opaque construction";
equation
connect(opa.port_a, opa_a);
connect(opa.port_b, opa_b);
end PartialConstruction;