play phryzby with physics

A Body Cools in a Room

solved NewtonsLawOfCooling

Q. A body cools from 80 °CTb(cf₀)=80°C to 50 °CTb(cf₁)=50°C in 5 minΔtcf=5min. The temperature of the surroundings is 20 °CTr=20°C. How long does it take to cool from 60 °CTb(cl₀)=60°C to 30 °CTb(cl₁)=30°C, in minutes?

tTroom 20 °C80 °C50 °CΔt = 300 s60 °C30 °CΔt = ?k
Inputs
Tb
80 °C
Tb
50 °C
Δtcf
5 min
Tr
20 °C
Tb
60 °C
Tb
30 °C
Outputs
timeΔtcl?

How it's solved

Solved with NewtonsLawOfCooling

Given

  • Tb(cf₀)=80°C
  • Tb(cf₁)=50°C
  • Δtcf=5min
  • Tr=20°C
  • Tb(cl₀)=60°C
  • Tb(cl₁)=30°C

Find Δtcl.

Working
  1. Tb(cf₀)=80°C=353.15K
  2. Tb(cf₁)=50°C=323.15K
  3. Δtcf=5min=300s
  4. Tr=20°C=293.15K
  5. Tb(cl₀)=60°C=333.15K
  6. Tb(cl₁)=30°C=303.15K
  7. cooling goes as the excess over the surroundings(cooling first)Tb(cf₁)-Tb(cf₀)Δtcf=−kc,b⋅(Tb(cf₀)+Tb(cf₁)2-Tr)
  8. 323.15-353.15300=−kc,b⋅(353.15+323.152-293.15)
  9. kc,b=0.00222222222s⁻¹
  10. cooling goes as the excess over the surroundings(cooling later)Tb(cl₁)-Tb(cl₀)Δtcl=−kc,b⋅(Tb(cl₀)+Tb(cl₁)2-Tr)
  11. 303.15-333.15Δtcl=−0.00222222222⋅(333.15+303.152-293.15)
  12. Δtcl=9min
  13. Δtcl=540s=9min
  14. Δtcl≈9minto 1 significant figure
Conclusion

The body loses heat at a rate set by how much hotter than its surroundings it is; the same drop nearer room temperature comes more slowly and takes longer.

The web of concepts

given read from the words equation asked

The Ruby that solves it

The question and its solution are small Ruby files. The engine runs them.

question.rb
1require_relative "../physics"23question :a_body_cools_in_a_room do4  kind :numerical5  describes "A body cools from %{first_from} to %{first_to} in %{first_time}. The temperature of the surroundings " \6            "is %{room}. %{time} to cool from %{then_from} to %{then_to}, in minutes?"7  given first_from: "80 °C"8  given first_to: "50 °C"9  given first_time: "5 min"10  given room: "20 °C"11  given then_from: "60 °C"12  given then_to: "30 °C"13  asks time: "How long does it take"14end
solution.rb
1require_relative "../questions/a_body_cools_in_a_room"2require_relative "../science/thermal_properties_of_matter/newtons_law_of_cooling"34solve :a_body_cools_in_a_room, using: NewtonsLawOfCooling do5  objects :body, :room6  body.goes(:cooling_first, in: room)7  body.goes(:cooling_later, in: room)89  take first_from: body.temperature(at: cooling_first.start)10  take first_to: body.temperature(at: cooling_first.end)11  take first_time: cooling_first.time_taken12  take room: room.temperature13  take then_from: body.temperature(at: cooling_later.start)14  take then_to: body.temperature(at: cooling_later.end)1516  time = cooling_later.time_taken17  answer time:, in: "min", figures: 11819  conclusion "The body loses heat at a rate set by how much hotter than its surroundings it is; the same " \20             "drop nearer room temperature comes more slowly and takes longer."21end
playground.rb
1require_relative "../solutions/a_body_cools_in_a_room"23play_with :a_body_cools_in_a_room do4  title "A Body Cools in a Room"5end
The laws it drew on
quantitywrittenunitswithinfrom
positionxm—Velocity
displacementΔxm—Velocity
path lengthdm—Velocity
time takenΔts0 … 1e+05Velocity
average velocityvavm/s—Velocity
average speedcavm/s—Velocity
starting positionx0m—Velocity
final positionxm—Velocity
temperatureTK0 … ∞NewtonsLawOfCooling
cooling constantkcs⁻¹—NewtonsLawOfCooling
starting temperatureT0K0 … ∞NewtonsLawOfCooling
final temperatureTfK0 … ∞NewtonsLawOfCooling
displacement of body during cooling firstΔxb(cf)m—
position of body at end of cooling firstxb(cf₁)m—
position of body at start of cooling firstxb(cf₀)m—
displacement of body during cooling laterΔxb(cl)m—
position of body at end of cooling laterxb(cl₁)m—
position of body at start of cooling laterxb(cl₀)m—
average velocity of body during cooling firstvav,b(cf)m/s—
time taken of cooling firstΔtcfs0 … 1e+05
average velocity of body during cooling latervav,b(cl)m/s—
time taken of cooling laterΔtcls0 … 1e+05
average speed of body during cooling firstcav,b(cf)m/s—
path length of body during cooling firstdb(cf)m—
average speed of body during cooling latercav,b(cl)m/s—
path length of body during cooling laterdb(cl)m—
temperature of body at start of cooling firstTb(cf₀)K0 … ∞
temperature of body at end of cooling firstTb(cf₁)K0 … ∞
cooling constant of bodykc,bs⁻¹—
temperature of roomTrK0 … ∞
temperature of body at start of cooling laterTb(cl₀)K0 … ∞
temperature of body at end of cooling laterTb(cl₁)K0 … ∞
cooling constant of roomkc,rs⁻¹—
x0≡xi(start of motion)
starting position
x≡xi(end of motion)
final position
T0≡Ti(start of motion)
starting temperature
Tf≡Ti(end of motion)
final temperature
di(whole)=di(part 1)+di(part 2)
path in parts
Δtw=Δtp+Δtp
time in parts
Ti(end of cooling)-Ti(start of cooling)Δtc=−kc,i⋅(Ti(start of cooling)+Ti(end of cooling)2-Ts)
cooling goes as the excess over the surroundings
Δxb(cf)=xb(cf₁)-xb(cf₀)
change of position(cooling first)
Δxb(cl)=xb(cl₁)-xb(cl₀)
change of position(cooling later)
vav,b(cf)=Δxb(cf)Δtcf
displacement a time(cooling first)
vav,b(cl)=Δxb(cl)Δtcl
displacement a time(cooling later)
cav,b(cf)=db(cf)Δtcf
path a time(cooling first)
cav,b(cl)=db(cl)Δtcl
path a time(cooling later)
Tb(cf₁)-Tb(cf₀)Δtcf=−kc,b⋅(Tb(cf₀)+Tb(cf₁)2-Tr)
cooling goes as the excess over the surroundings(cooling first)
Tb(cl₁)-Tb(cl₀)Δtcl=−kc,b⋅(Tb(cl₀)+Tb(cl₁)2-Tr)
cooling goes as the excess over the surroundings(cooling later)