Buildings.HeatTransfer.Conduction.BaseClasses
Package with base classes for Buildings.HeatTransfer.Conduction
Information
This package contains base classes that are used to construct the models in Buildings.HeatTransfer.Conduction.
Extends from Modelica.Icons.BasesPackage (Icon for packages containing base classes).
Package Content
Name | Description |
---|---|
PartialConductor | Partial model for heat conductor |
PartialConstruction | Partial model for multi-layer constructions |
der_temperature_u | Computes the derivative of the temperature of a phase change material with respect to specific internal energy |
temperature_u | Computes the temperature of a phase change material for a given specific internal energy |
Examples | Collection of models that illustrate model use and test models |
Buildings.HeatTransfer.Conduction.BaseClasses.PartialConductor
Partial model for heat conductor
Information
Partial model for single layer and multi layer heat conductors. The heat conductor can be steady-state or transient.Extends from Buildings.BaseClasses.BaseIcon (Base icon).
Parameters
Type | Name | Default | Description |
---|---|---|---|
Area | A | Heat transfer area [m2] | |
ThermalResistance | R | Thermal resistance of construction [K/W] |
Connectors
Type | Name | Description |
---|---|---|
HeatPort_a | port_a | Heat port at surface a |
HeatPort_b | port_b | Heat port at surface b |
Modelica definition
Buildings.HeatTransfer.Conduction.BaseClasses.PartialConstruction
Partial model for multi-layer constructions
Information
Partial model for constructions and multi-layer heat conductors.Extends from Buildings.BaseClasses.BaseIcon (Base icon).
Parameters
Type | Name | Default | Description |
---|---|---|---|
Generic | layers | redeclare parameter Building... | Construction definition from Data.OpaqueConstructions |
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] |
Modelica definition
Buildings.HeatTransfer.Conduction.BaseClasses.der_temperature_u
Computes the derivative of the temperature of a phase change material with respect to specific internal energy
Information
This function computes at the support points Td the derivatives dT/du of the cubic hermite spline approximation to the temperature vs. specific internal energy relation. These derivatives are then used by the function Buildings.HeatTransfer.Conduction.BaseClasses.temperature_u to compute for a given specific internal energy the temperature.
Inputs
Type | Name | Default | Description |
---|---|---|---|
SpecificHeatCapacity | c | Specific heat capacity [J/(kg.K)] | |
Temperature | TSol | Solidus temperature, used only for PCM. [K] | |
Temperature | TLiq | Liquidus temperature, used only for PCM [K] | |
SpecificInternalEnergy | LHea | Latent heat of phase change [J/kg] | |
Boolean | ensureMonotonicity | false | Set to true to force derivatives dT/du to be monotone |
Outputs
Type | Name | Description |
---|---|---|
SpecificInternalEnergy | ud[Buildings.HeatTransfer.Conduction.nSupPCM] | Support points for derivatives [J/kg] |
Temperature | Td[Buildings.HeatTransfer.Conduction.nSupPCM] | Support points for derivatives [K] |
Real | dT_du[Buildings.HeatTransfer.Conduction.nSupPCM] | Derivatives dT/du at the support points [kg.K2/J] |
Modelica definition
Buildings.HeatTransfer.Conduction.BaseClasses.temperature_u
Computes the temperature of a phase change material for a given specific internal energy
Information
This function computes for a given specific internal energy u the temperature T(u), using a cubic hermite spline approximation to the temperature vs. specific internal energy relation. Input to the function are the derivatives dT/du at the support points. These derivatives can be computed using Buildings.HeatTransfer.Conduction.BaseClasses.der_temperature_u.
Implementation
The derivatives dT/du are an input to this function because they typically only need to be computed once, whereas T(u) must be evaluated at each time step.
Inputs
Type | Name | Default | Description |
---|---|---|---|
SpecificInternalEnergy | ud[Buildings.HeatTransfer.Conduction.nSupPCM] | Support points for derivatives [J/kg] | |
Temperature | Td[Buildings.HeatTransfer.Conduction.nSupPCM] | Support points for derivatives [K] | |
Real | dT_du[:] | dT_du(each fixed=false, each... | Derivatives dT/du at the support points [kg.K2/J] |
SpecificInternalEnergy | u | Specific internal energy [J/kg] |
Outputs
Type | Name | Description |
---|---|---|
Temperature | T | Resulting temperature [K] |