Professional Documents
Culture Documents
Hydraulic resistance
Hydraulic resistance occurs whenever there is a pressure difference,
such as liquid flowing from a pipe of one diameter to, to one of a
different diameter. If the pressures at either side of a hydraulic
resistance are 𝑝1 and 𝑝2 , then the hydraulic resistance R is defined as
𝑝1 − 𝑝2 = 𝑅𝑞
Hydraulic capacitance
Hydraulic capacitance is a measure of the energy storage in a hydraulic
system. An example of hydraulic capacitance is a tank which stores
energy in the form of potential energy. Consider the tank shown in
Figure 2.21(b). If q1 and q2 are the inflow and outflow, respectively, and
V is the volume of the fluid inside the tank, we can write
𝑑𝑉 𝑑ℎ
𝑝1 − 𝑝2 = =𝐴 … 2.87
𝑑𝑡 𝑑𝑡
Now, the pressure difference is given by
𝑝1 − 𝑝2 = ℎ𝜌𝑔 = 𝑝
or
𝑝
ℎ = … 2.88
𝜌𝑔
Substituting in (2.87), we obtain
𝐴 𝑑𝑝
𝑝1 − 𝑝2 = . . … 2.89
𝜌𝑔 𝑑𝑡
Writing (2.89) as
𝑑𝑝
𝑝1 − 𝑝2 = 𝐶 … 2.90
𝑑𝑡
we then arrive at the definition of hydraulic capacitance:
𝐴
𝐶 = … 2.91
𝜌𝑔
Note that (2.90) is similar to the expression for a capacitor and can be
written as
1
𝑝 = ∫(𝑝1 − 𝑝2 )𝑑𝑡 … . 2.92
𝐶
Hydraulic inertance
Hydraulic inertance is similar to the inductance in electrical systems
and is derived from the inertia force required to accelerate fluid in a
pipe.
Let 𝑝1 − 𝑝2 be the pressure drop that we want to accelerate in a cross-
sectional area of A,
where m is the fluid mass and v is the fluid velocity. Applying Newton’s
second law, we can
write
𝑑𝑣
𝑚 = 𝐴(𝑝1 − 𝑝2) . . . (2.93)
𝑑𝑡
If the pipe length is L, then the mass is given by
𝑚 = 𝐿𝜌 𝐴.
We can now write (2.93) as
𝑑𝑣
𝐿𝜌 𝐴 = 𝐴(𝑝1 − 𝑝2)
𝑑𝑡
or
𝑑𝑣
𝑝1 − 𝑝2 = 𝐿𝜌 … (2.94)
𝑑𝑡
but the rate of flow is given by q = Av, so (2.94) can be written as
𝐿𝜌 𝑑𝑞
𝑝1 − 𝑝2 = . . . (2.95)
𝐴 𝑑𝑡
The inertance I is then defined as
𝐿𝜌
𝐼 =
𝐴
,
and thus the relationship between the pressure difference and the flow
rate is similar to the
relationship between the potential difference and the current flow in an
inductor, i.e.
𝑑𝑞
𝑝1 − 𝑝2 = 𝐼 . . . (2.96)
𝑑𝑡
Models of some hydraulic systems are given below.
For the liquid level system shown in the figure below, obtain the
mathematical model and hence transfer function of the system.
A liquid system
𝑞𝑖 = 𝑞𝑜
d(∆H)
RC + ∆h = R(∆𝑞𝑖 )
dt
This equation gives the mathematical model of the above figure
This equation gives the transfer function of the system shown in the
above figure.
Liquid sensors
There are many different types of liquid sensors. These sensors are used
to:
Detect the presence of liquid;
Measure the level of liquid;
Measure the flow rate of liquid, for example through a pipe.
The presence of a liquid can be detected by using optical, ultrasonic,
change of resistance, change of capacitance or similar techniques. For
example, optical technique is based on using an LED and a photo-
transistor, both housed within a plastic dome and at the head of the
device. When no liquid is present, light from the LED is internally
reflected from the dome to the photo-transistor and the output is
designed to be off. When liquid is present the dome is covered with
liquid and the refractive index at the dome–liquid boundary changes,
allowing some light to escape from the LED. As a result of this, the
amount of light received by the photo-transistor is reduced and the
output is designed to switch on, indicating the presence of liquid.
The level of liquid in a tank can be measured using immersed sensor
techniques, or non-touching ultrasonic techniques. The simplest
technique is to immerse a rod in the liquid with a potentiometer placed
inside the rod. The potentiometer arm is designed to move as the level
of the liquid is changed. The change in the resistance can be measured
and hence the level of the liquid is obtained.
Pressure sensors are also used to measure the level of liquid in a tank.
Typically, the pressure sensor is mounted at the bottom of the tank
where change of pressure is proportional to the height of the liquid.
These sensors usually give an analog output voltage proportional to the
height of the liquid inside the tank.
Non-touching ultrasonic level measurement is very accurate, but more
expensive than the other techniques. Basically, an ultrasonic beam is
sent to the surface of the water and the echo of the beam is detected.
The time difference between sending the beam and the echo is
proportional to the level of the liquid in the tank.
The liquid flow rate can be measured by several techniques:
paddlewheel sensors;
displacement flow meters;
magnetic flow meters;
Paddlewheel sensors are cost-effective and very popular for the
measurement of liquid flow rate. A wheel is mounted inside the sensor
whose speed of rotation is proportional to the flow rate. As the wheel
rotates a voltage is produced which indicates the flow rate.
Displacement flowmeters measure the flow rate of a liquid by
separating the flow into known volumes and counting them over time.
These meters provide good accuracy. Displacement flow meters have
several types such as sliding vane meters, rotary piston meters, helix
flow meters and so on.
Water tank: This is the tank where the level of the liquid inside is to be
controlled. Water is pumped to the tank from above and a level sensor
measures the height of the water inside the tank. The microcontroller
controls the pump so that the liquid is at the required level. The tank
used in this case study is a plastic container with measurements 12 cm
× 10 cm × 10 cm.
Water pump. The pump is a small 12V water pump drawing about 3A
when operating at the full-scale voltage. Figure 11.3 shows the pump.
SYSTEM MODEL
The system is basically a first-order system. The tank acts as a fluid
capacitor where fluid enters and leaves the tank. According to mass
balance,
𝑄𝑖𝑛 = 𝑄 + 𝑄𝑜𝑢𝑡 … (11.1)
Figure 11.3 The pump used in the project
Figure 11.4 Level sensor used in the project
where 𝑄𝑖𝑛 is the flow rate of water into the tank, Q the rate of water
storage in the tank, and 𝑄𝑜𝑢𝑡 the flow rate of water out of the tank. If A
is the cross-sectional area of the tank, and h the height of water inside
the tank, (11.1) can be written as
𝑑ℎ
𝑄𝑖𝑛 = 𝐴 + 𝑄𝑜𝑢𝑡 … (11.2)
𝑑𝑡
The flow rate of water out of the tank depends on the discharge
coefficient of the tank, the height of the liquid inside the tank, the
gravitational constant, and the area of the tank outlet, i.e.
𝑄𝑜𝑢𝑡 = 𝐶𝑑 𝑎√2𝑔ℎ … (11.3)
where 𝐶𝑑 is the discharge coefficient of the tank outlet, a the are of the
tank outlet, and g the gravitational constant (9.8 m/s2).
From (11.2) and (11.3) we obtain
𝑑ℎ
𝑄𝑖𝑛 = 𝐴 + 𝐶𝑑 𝑎√2𝑔ℎ … 11.4
𝑑𝑡
Equation (11.4) shows a nonlinear relationship between the flow rate
and the height of the
water inside the tank. We can linearize this equation for small
perturbations about an operating point.
When the input flow rate 𝑄𝑖𝑛 is a constant, the flow rate through the
orifice reaches a steady-state value 𝑄𝑜𝑢𝑡 = 𝑄𝑜 , and the height of the
water reaches the constant value ℎ0 , where
𝑄0 = 𝐶𝑑 a√2gh0
If we now consider a small perturbation in input flow rate around the
steady-state value, we obtain
𝛿𝑄𝑖𝑛 = 𝑄𝑖𝑛 − 𝑄0 … (11.6)
and, as a result, the fluid level will be perturbed around the steady-
state value by
𝛿ℎ = ℎ − ℎ0 . . . (11.7)
Now, substituting (11.6) and (11.7) into (11.4) we obtain
𝑑𝛿ℎ
𝐴 + 𝐶𝑑 𝑎√2(𝛿ℎ + ℎ0 ) = 𝛿𝑄𝑖𝑛 + 𝑄0
𝑑𝑡
Equation (11.8) can be linearized by using the Taylor series and taking
the first term. From Taylor series,
2 2
𝑑𝑓 𝑥 − 𝑥0 + 𝑑 𝑓 (𝑥 − 𝑥0 )
𝑓(𝑥) = 𝑓(𝑥0 ) + | 2| ( )+⋯
𝑑𝑥 1!𝑥 = 𝑥 𝑑𝑥 2!
𝑥 = 𝑥0
0
Taking only the first term
𝑑𝑓 (𝑥 − 𝑥0 )
𝑓(𝑥) − 𝑓(𝑥0 ) ≈ | |
𝑑𝑥 𝑥 = 𝑥0
or
𝑑𝑓
𝛿 𝑓 (𝑥) ≈ | 𝛿𝑥 . . . (11.11)
𝑑𝑥 𝑥=𝑥0
Figure 11.5 Block diagram of the system
PIC16F873
6 RA4 RB2 23 RB2
7 RA5 RB1 22 RB1
𝐶1
GND 8 VSS RB0 21 RB0
9 OSC1 VDD 20 +5V
10 OSC2 VCS 19 GND
11 RC0 RC7 18
XTAL
12 RC1 RC6 17
𝐶2
13 RC2 RC5 16
Water Level
14 RC3 RC4 15
sensor with
𝐴𝑁𝐷
+5𝑉 indicator
10𝑘
LCD 2rows x 16
HDD44780
Fig.2.2: Circuit Diagram of a water level Indicator using PIC16F873 and LCD
Rotary
Track
Slider
0𝑉 10𝑉
Output
The liquid lever indicator is subdivided into three sections; the sensor
section, the microcontroller and the LCD display. The liquid lever
sensor is of the resistive type, that is resistive level sensor. Resistive
level sensor comprises a variable resistor which is widely used in liquid
level sensing. A wifer is connected to a level arm with a float, which
moves across continuously across the resistive track. The sensor works
on potentiometer measurement principle. Current is made to flow
through the resistance and voltage is made to drop linearly across this.
Slider across this resistance is connected to a float. Voltage output is
taken between the slider and one end of the resistance. This with the
varying fluid levels, the slider moves and the output voltage varies.