play phryzby with physics

Hot Water Cooling From Sixty

solved NewtonsLawOfCooling

Q. Hot water cools from 60 °CTw(cf₀)=60°C to 50 °CTw(cf₁)=50°C in the first 10 minΔtcf=10min and to 42 °CTw(cn₁)=42°C in the nextTw(cn₀)=Tw(cf₁) 10 minΔtcn=10min. Then the temperature of the surroundings is, in °C?

tTair T = ?60 °C50 °CΔt = 600 s42 °CΔt = 600 sk
Inputs
Tw
60 °C
Tw
50 °C
Δtcf
10 min
Tw
42 °C
Δtcn
10 min
Outputs
surroundingsTa?

How it's solved

Solved with NewtonsLawOfCooling

Given

  • Tw(cf₀)=60°C
  • Tw(cf₁)=50°C
  • Δtcf=10min
  • Tw(cn₁)=42°C
  • Δtcn=10min
  • Tw(cn₀)=Tw(cf₁) from “in the next”

Find Ta.

Working
  1. Tw(cf₀)=60°C=333.15K
  2. Tw(cf₁)=50°C=323.15K
  3. Δtcf=10min=600s
  4. Tw(cn₁)=42°C=315.15K
  5. Δtcn=10min=600s
  6. in the nextTw(cn₀)=Tw(cf₁)
  7. Tw(cn₀)=323.15
  8. Tw(cn₀)=323.15K
  9. cooling goes as the excess over the surroundings(cooling first)Tw(cf₁)-Tw(cf₀)Δtcf=−kc,w⋅(Tw(cf₀)+Tw(cf₁)2-Ta)
  10. cooling goes as the excess over the surroundings(cooling next)Tw(cn₁)-Tw(cn₀)Δtcn=−kc,w⋅(Tw(cn₀)+Tw(cn₁)2-Ta)
  11. Ta=10°C
  12. Ta=283.15K=10°C
Conclusion

The water cools faster the hotter it is than its surroundings; the second drop of 8 degrees against the first of 10 puts the surroundings near 10 °C.

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 :hot_water_cooling_from_sixty do4  kind :numerical5  describes "Hot water cools from %{first_from} to %{first_to} in the first %{first_time} and to %{then_to} in the " \6            "next %{then_time}. Then %{surroundings}, in °C?"7  given first_from: "60 °C"8  given first_to: "50 °C"9  given first_time: "10 min"10  given then_to: "42 °C"11  given then_time: "10 min"12  asks surroundings: "the temperature of the surroundings is"13end
solution.rb
1require_relative "../questions/hot_water_cooling_from_sixty"2require_relative "../science/thermal_properties_of_matter/newtons_law_of_cooling"34solve :hot_water_cooling_from_sixty, using: NewtonsLawOfCooling do5  objects :water, :air6  water.goes(:cooling_first, in: air)7  water.goes(:cooling_next, in: air)89  take first_from: water.temperature(at: cooling_first.start)10  take first_to: water.temperature(at: cooling_first.end)11  take first_time: cooling_first.time_taken12  take then_to: water.temperature(at: cooling_next.end)13  take then_time: cooling_next.time_taken14  deduce_from "in the next", water.temperature(at: cooling_next.start) => water.temperature(at: cooling_first.end)1516  surroundings = air.temperature17  answer surroundings:, in: "°C"1819  conclusion "The water cools faster the hotter it is than its surroundings; the second drop of 8 degrees against " \20             "the first of 10 puts the surroundings near 10 °C."21end
playground.rb
1require_relative "../solutions/hot_water_cooling_from_sixty"23play_with :hot_water_cooling_from_sixty do4  title "Hot Water Cooling From Sixty"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 water during cooling firstΔxw(cf)m—
position of water at end of cooling firstxw(cf₁)m—
position of water at start of cooling firstxw(cf₀)m—
displacement of water during cooling nextΔxw(cn)m—
position of water at end of cooling nextxw(cn₁)m—
position of water at start of cooling nextxw(cn₀)m—
average velocity of water during cooling firstvav,w(cf)m/s—
time taken of cooling firstΔtcfs0 … 1e+05
average velocity of water during cooling nextvav,w(cn)m/s—
time taken of cooling nextΔtcns0 … 1e+05
average speed of water during cooling firstcav,w(cf)m/s—
path length of water during cooling firstdw(cf)m—
average speed of water during cooling nextcav,w(cn)m/s—
path length of water during cooling nextdw(cn)m—
temperature of water at start of cooling firstTw(cf₀)K0 … ∞
temperature of water at end of cooling firstTw(cf₁)K0 … ∞
cooling constant of waterkc,ws⁻¹—
temperature of airTaK0 … ∞
temperature of water at start of cooling nextTw(cn₀)K0 … ∞
temperature of water at end of cooling nextTw(cn₁)K0 … ∞
cooling constant of airkc,as⁻¹—
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
Δxw(cf)=xw(cf₁)-xw(cf₀)
change of position(cooling first)
Δxw(cn)=xw(cn₁)-xw(cn₀)
change of position(cooling next)
vav,w(cf)=Δxw(cf)Δtcf
displacement a time(cooling first)
vav,w(cn)=Δxw(cn)Δtcn
displacement a time(cooling next)
cav,w(cf)=dw(cf)Δtcf
path a time(cooling first)
cav,w(cn)=dw(cn)Δtcn
path a time(cooling next)
Tw(cf₁)-Tw(cf₀)Δtcf=−kc,w⋅(Tw(cf₀)+Tw(cf₁)2-Ta)
cooling goes as the excess over the surroundings(cooling first)
Tw(cn₁)-Tw(cn₀)Δtcn=−kc,w⋅(Tw(cn₀)+Tw(cn₁)2-Ta)
cooling goes as the excess over the surroundings(cooling next)
Tw(cn₀)=Tw(cf₁)
in the next