Question

PYTHON Newton's (inaccurate!) law of cooling says that the temperature of an object changes at a...

PYTHON

Newton's (inaccurate!) law of cooling says that the temperature of an object changes at a rate proportional to the difference between its temperature and that of the surrounding medium (the ambient temperature). So the change in temperature of an object with respect to time can be written as:

dT/dt = -k(T - Ta)

where:
T = the temperature of the object
t = elapsed time
k = the proportionality constant (an empirical value derived from the liquid and cup properties)
Ta = the ambient temperature

Use this relationship to numerically estimate (using python) the temperature of my cup of coffee cooling over time while sitting on my desk. Use the following parameter values:

  • k = 0.1 min-1
  • Ta(ambient temperature) = 21∘∘ C
  • T(t=0)(initial temperature) = 68∘∘ C
  • dt (time step) = 1 min  (adjust this value as needed)

If coffee must be 35∘∘ C or below for me to drink it without burning my mouth, how long do I have to wait until I can safely drink it?

Plot the coffee temperature over that duration.

Homework Answers

Answer #1

The graph for Temperature vs Time is given below. From the analysis of the graph, it requires 12 iterations(12minutes), so that the Temperature of Coffee becomes less than equal to 35C. The python code used for producing the graph is also added below.

Python Code:

import matplotlib.pyplot as plt

time=[]

value=[]

ta=21

tcur=68

dt=1

k=0.1

while 1==1:
   time.append(i)
   inter=2.0*tcur-k*tcur*dt+2*k*ta*dt
   inter=(inter)/(2+k*dt)
   value.append(inter)
   tcur=inter
   i+=1
   if inter<32:
       break

plt.show(time,value)

plt.xlabel('Time')

plt.ylabel('Temperature')

plt.show()

Know the answer?
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for?
Ask your own homework help question
Similar Questions
Newton's law of cooling/heating states that the time rate of change of temperature of a cooling/heating...
Newton's law of cooling/heating states that the time rate of change of temperature of a cooling/heating object is proportional to the difference between the temperature of the object and the ambient temperature of the medium where the object resides. If we let Ta represent the ambient temperature and T represent the temperature of the object then a DE representing this situation is dT/dt=k(T−Ta) where k<0. When a coil of steel is removed from an annealing furnace its temperature is 684...
(1 point) Newton's Law of Cooling states that the rate of cooling of an object is...
(1 point) Newton's Law of Cooling states that the rate of cooling of an object is proportional to the temperature difference between the object and its surroundings. Suppose t is time, T is the temperature of the object, and Ts is the surrounding temperature. The following differential equation describes Newton's Law dT/dt=k(T−Ts), where k is a constant. Suppose that we consider a 95∘C cup of coffee in a 25∘C room. Suppose it is known that the coffee cools at a...
Newton's Law of Cooling tells us that the rate of change of the temperature of an...
Newton's Law of Cooling tells us that the rate of change of the temperature of an object is proportional to the temperature difference between the object and its surroundings. This can be modeled by the differential equation dTdt=k(T−A)dTdt=k(T-A), where TT is the temperature of the object after tt units of time have passed, AA is the ambient temperature of the object's surroundings, and kk is a constant of proportionality. Suppose that a cup of coffee begins at 179179 degrees and,...
Newton's law of cooling states that the temperature of an object changes at a rate proportional...
Newton's law of cooling states that the temperature of an object changes at a rate proportional to the different between its temperature and that of its surroundings. Suppose that the temperature of a cup of coffee obeys Newton's law of cooling. If the coffee has a temperature of 200 degrees F when freshly poured, and 1 min later has cooled to 190 degrees F in a room at 70 degrees F, determine when the coffee reaches a temperature of 150...
Newton's law of cooling is: du/dt = -k (u-T) where u(t) is temperature of an object,...
Newton's law of cooling is: du/dt = -k (u-T) where u(t) is temperature of an object, t is in hours, T is a constant ambient temperature, and k is a positive constant. Suppose a building loses heat in accordance with Newton's law of cooling. Suppose that the rate constant k has the value 0.15 hr^-1 . Assume that the interior temperature is Ti = 77F, when the heating system fails. If the external temperature is T = 5F, how long...
In 1701, Issac Newton proved his Law of Cooling: T(t) =Aekt +Ta, which is an exponential...
In 1701, Issac Newton proved his Law of Cooling: T(t) =Aekt +Ta, which is an exponential model that relates the temperature of an object T as a function of time t (we will use minutes) that is placed in an environment with ambient temperature Ta. Suppose a cup of hot coffee is served at 160◦F and placed in a room with an ambient temperature 75◦. After 5 minutes, the cup of coffee has a temperature of 131◦F. a) Create a...
Newton’s Law of Cooling and the Ornstein-Uhlenbeck Process The Law of Cooling says the temperature difference...
Newton’s Law of Cooling and the Ornstein-Uhlenbeck Process The Law of Cooling says the temperature difference between an object (say a hot cup of coffee) and the ambient temperature (the temperature in the room) declines exponentially: If T(t) is the temperature of the object at time t, we have the ODE: d/dt(T(t) – Troom) = b (T(t) – Troom)    b < 0, Troom is a constant. Equivalently,   dT/dt = b (T – Troom) T(0) is the starting temperature of the...
This question is about Newton’s law of cooling, which states that the temperature of a hot...
This question is about Newton’s law of cooling, which states that the temperature of a hot object decreases proportionally to the difference between its temperature and the temperature of the surroundings. This can be written as dT dt = −k(T − Ts), where T is the temperature, t is time, k is a constant and Ts is the temperature of the surroundings. For this question we will assume that the surroundings are at a constant 20◦ and A that the...
Question B: Newton's law of cooling states dθ/dt = −k (θ−T) where ? is the temperature...
Question B: Newton's law of cooling states dθ/dt = −k (θ−T) where ? is the temperature at time t, T is the constant surrounding temperature and k is a constant. If a mass with initial temperature, θ0, of 319.5 K is placed in a surroundings of 330.5 K, and k is 0.011 s-1 , what is its temperature after 4.7 minutes? Give your answer to 4 significant figures and remember to use units. ____________
Newton’s law of cooling states that the rate of change of the temperature T of an...
Newton’s law of cooling states that the rate of change of the temperature T of an object is proportional to the temperature difference between the temperature S of the surroundings and the temperature T. dT dt = k(S − T) A cup of tea is prepared from boiling water at 100 degrees and cools to 60 degrees in 2 minutes. The temperature in the room is 20 degrees. 1. What will the temperature be after 15 minutes?