LIBRARY
Hello ​
A simple lumped thermal model
Usage ​
MediaComponents.Hello(T_inf=300, T0=320, h=0.7, A=1.0, m=0.1, c_p=1.2)
Parameters: ​
| Name | Description | Units | Default value |
|---|---|---|---|
T_inf | Ambient temperature | K | 300 |
T0 | Initial temperature | K | 320 |
h | Convective heat transfer coefficient | W/(m2.K) | 0.7 |
A | Surface area | m2 | 1.0 |
m | Mass of thermal capacitance | kg | 0.1 |
c_p | Specific Heat | J/(kg.K) | 1.2 |
Variables ​
| Name | Description | Units |
|---|---|---|
T | K |
Behavior ​
Source ​
dyad
"A simple lumped thermal model"
component Hello
"Ambient temperature"
parameter T_inf::Temperature = 300
"Initial temperature"
parameter T0::Temperature = 320
"Convective heat transfer coefficient"
parameter h::CoefficientOfHeatTransfer = 0.7
"Surface area"
parameter A::Area = 1.0
"Mass of thermal capacitance"
parameter m::Mass = 0.1
"Specific Heat"
parameter c_p::SpecificHeatCapacity = 1.2
variable T::Temperature
relations
"Specify initial conditions"
initial T = T0
"Newton's law of cooling/heating"
m * c_p * der(T) = h * A * (T_inf - T)
metadata {"Dyad": {"tests": {"case1": {"stop": 10, "expect": {"initial": {"T": 320}}}}}}
endFlattened Source
dyad
"A simple lumped thermal model"
component Hello
"Ambient temperature"
parameter T_inf::Temperature = 300
"Initial temperature"
parameter T0::Temperature = 320
"Convective heat transfer coefficient"
parameter h::CoefficientOfHeatTransfer = 0.7
"Surface area"
parameter A::Area = 1.0
"Mass of thermal capacitance"
parameter m::Mass = 0.1
"Specific Heat"
parameter c_p::SpecificHeatCapacity = 1.2
variable T::Temperature
relations
"Specify initial conditions"
initial T = T0
"Newton's law of cooling/heating"
m * c_p * der(T) = h * A * (T_inf - T)
metadata {"Dyad": {"tests": {"case1": {"stop": 10, "expect": {"initial": {"T": 320}}}}}}
endTest Cases ​
Test Case case1 ​
Related ​
Examples
Experiments
Analyses