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
| Type | Name | Default | Description |
|---|---|---|---|
| SI.Temperature | T_final_K | Projected final temperature |
Components
| Type | Name | Default | Description |
|---|---|---|---|
| HeatTransfer.Components.HeatCapacitor | mass1 | ||
| HeatTransfer.Components.HeatCapacitor | mass2 | ||
| HeatTransfer.Components.ThermalConductor | conduction | ||
| HeatTransfer.Celsius.TemperatureSensor | Tsensor1 | ||
| HeatTransfer.Celsius.TemperatureSensor | Tsensor2 |