modelTwoMasses

Simple conduction demo

Extends from Modelica.Icons.Example (Icon for runnable examples).

Information

This example demonstrates the thermal response of two masses connected by a conducting element. The two masses have the same heat capacity but different initial temperatures (T1=100 [degC], T2= 0 [degC]). The mass with the higher temperature will cool off while the mass with the lower temperature heats up. They will each asymptotically approach the calculated temperature T_final_K (T_final_degC) that results from dividing the total initial energy in the system by the sum of the heat capacities of each element.

Simulate for 5 s and plot the variables
mass1.T, mass2.T, T_final_K or
Tsensor1.T, Tsensor2.T, T_final_degC

Parameters

TypeNameDefaultDescription
SI.TemperatureT_final_KProjected final temperature

Components

TypeNameDefaultDescription
HeatTransfer.Components.HeatCapacitormass1
HeatTransfer.Components.HeatCapacitormass2
HeatTransfer.Components.ThermalConductorconduction
HeatTransfer.Celsius.TemperatureSensorTsensor1
HeatTransfer.Celsius.TemperatureSensorTsensor2