PMS Experiment 1-Gravity Flow Tank
PMS Experiment 1-Gravity Flow Tank
Process:
Model:
Modeling:
Simulation:
Computing the output of the process using the input information and
the operation of the mathematical model, which is the
representation of the system.
Fundamental Laws:
The units of this equation are mass per time. Only one total
continuity equation can be written for one system.
The units of the equation are moles A per volume per time.
Energy Equation- Law of Conservation of energy
For open systems
Equation of Motion:
Newton’s second law of motion says that force is equal to mass
times acceleration for a system with constant mass M.
In a slightly more general form, where mass can vary with time,
------(1)
Euler’s Method –
With fourth order Runge Kutta method, 4 k’s are evaluated for each
ODE
AIM: To simulate the gravity flow tank and to study the change in liquid
level in the tank and velocity with respect to change in the initial flow rate.
THEORY:
Gravity-flow tank.
Let the length of the exit line be L (ft) and its cross-sectional area be
Ap (ft2). The vertical, cylindrical tank has a cross-sectional area of
A(ft2).
M = AP L ρ
F
v=
AP
The amount of liquid in the pipe will not change with time, but if we
want to change the rate of outflow, the velocity of the liquid must be
changed. And to change the velocity or the momentum of the liquid
we must exert a force on the liquid.
The only force pushing in the opposite direction from right to left
and opposing the flow is the frictional force due to the viscosity of
the liquid. If the flow is turbulent, the frictional force will be
proportional to the square of the velocity and the length of the pipe.
Substituting in Momentum balance equation
--------------(2)
2
v n+1=v n+ Δt (0.0107 h n−0.00205 v n)
h n+1=h n+ Δt (0.311−0.0624 v n)
Gravity Euler
% using Eulers method
clear;
clc;
% 50% of max flow, v=2.48, h=1.2;
% 67% of max flow, v=3.40, h= 2.05
clear; v = 2.48;
h = 1.2; t = 0.0;
F = 35.1; Ap = 7.05; At = 113; Dp = 3; Dt = 12;
L = 3000; Kf = 2.81*(10^-2);
g = 32.2; gc = 32.2;
dh = 0.0; delta = 20.0;
n = 1; v1(n)= v; h1(n)= h; t1(n)= t;
fprintf('TIME------v------h\n');
for t = 0:20:1200
dv=0.0107*h - 0.00205*v*v;
v = v+ (delta*dv);
dh=0.311-0.0624*v;
h= h+(delta*dh);
n = n+1;
fprintf('%d/t %d/t %d/n',t ,h ,v);
v1(n)=v;
h1(n)=h;
t1(n)=t;
fprintf('%d %d %d\n', t1(n),v1(n),h1(n));
end
plot(t1,v1,'r',t1,h1,'k');
legend('Velocity','Tank Height');
xlabel('Time');
ylabel('Height and Velocity');
title('Gravity tank')
main Script
% using ODE
%intial = [1.2 2.5] % 50 max flow
%initial = [2.05 3.4] % 67 max flow
initial = [1.2 2.5]
tspan = [0:20:800];