2. A single-tank liquid-level system is shown in Figure 7.49, where water flows into the tank at a volume flow rate
qiand out of the tank through two valves at points 1 and 2. The linear resistances of the two valves are R1and
R2, respectively. Assuming h>h1, derive the differential equation relating the liquid height hand the volume
flow rate qiat the inlet. The cross-sectional area of the tank Ais constant. The dHQVLW\ȡRIWKHOLTXLGLVFRQVWDQW
Figure 7.49 Problem 2.
Solution
Applying the law of conservation of mass to the tank gives
mi mo
dm qq
dt
, where
ȡȡ
dm d dh
Ah A
dt dt dt
3. A watermelon is taken out of the refrigerator at a uniform temperature of 5°C and is exposed to 27°C air.
Assume that the watermelon can be approximated as a sphere and the temperature of the watermelon is uniform.
The esWLPDWHGSDUDPHWHUVDUHGHQVLW\RIZDWHUPHORQȡ NJP3, diameter of the watermelon D= 40 cm,
specific heat capacity c= 4200 J/(kg·°C), and heat transfer coefficient h= 15 W/(m2·°C).
a. Derive the differential equation relating the watermelon’s temperature T(t) and the air temperature.
b. Using the differential equation obtained in Part (a), construct a Simulink block diagram and find the
temperature of the watermelon.
c. Build a Simscape model of the system.
d. Based on the simulation results obtained in Parts (b) and (c), how long will it take before the watermelon is
warmed up to 20°C?
Solution
a. Applying the law of conservation of energy to the watermelon gives
hi ho
dU qq
, where