thermal_conductivity.nbt 463 B

123456789101112
  1. # https://en.wikipedia.org/wiki/Thermal_conductivity
  2. fn heat_transfer(λ: ThermalConductivity,
  3. wall_area: Area,
  4. thickness: Length,
  5. temp_hot: Temperature,
  6. temp_cold: Temperature) -> Power =
  7. λ × wall_area × (temp_hot - temp_cold) / thickness
  8. let λ_concrete: ThermalConductivity = 0.92 W / (m · K)
  9. print(heat_transfer(λ_concrete, 3 m × 2 m, 20 cm, from_celsius(20), from_celsius(0)))