Beruflich Dokumente
Kultur Dokumente
1. Write a script that prompts the user for the required inputs. Simulate
water level control for the following inputs:
Tank dimensions:
D=5 feet
H=10 feet
Water level:
y
i
=7 ft
y
sp
=5 ft
Controller:
DT=2 seconds
BAND=1 ft
k
I
=.007
Inlet Valve:
V
imax
=100 gallons per minute
Out flow:
V
out
=40 gallons per minute
2. Plot the water level as a function of time. Plot horizontal lines for the
setpoint, upper, and low band limits. Label and legend the plot appropriately: