---
url: /dyad/dev/stdlib/MediaComponents/components/Hello.md
description: Dyad Hello docs.  A simple lumped thermal model
---

# `Hello` {#Hello}

A simple lumped thermal model

## Usage {#Usage}

`MediaComponents.Hello(T_inf=300, T0=320, h=0.7, A=1.0, m=0.1, c_p=1.2)`

## Parameters: {#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 {#Variables}

| Name | Description | Units |
| ----:| -----------:| -----:|
|  `T` |             |     K |

## Behavior {#Behavior}

$$ \begin{align}
\frac{\mathrm{d}T\left( t \right)}{\mathrm{d}t} ~ \mathtt{c_p} ~ m &= A ~ \left(  - T\left( t \right) + \mathtt{T_inf} \right) ~ h
\end{align}
$$

## Source {#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}}}}}}
end
```

```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}}}}}}
end
```

## Test Cases {#Test-Cases}

### Test Case `case1` {#Test-Case-case1}

## Related {#Related}

* Examples

* Experiments

* Analyses
