Professional Documents
Culture Documents
m 1 of 1
% clear workspace variables, clear command window and close all figures at the start
clear all
clc
close all
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Measured values from experiment %
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Q_L_per_min = [13.98 13.69 13.10 11.65 9.90 8.44 5.24 2.63 2.04 1.47 0] % enter
values for flowrate in L/min
DP_mbar = [112 115 120 130 141 150 167 183 190 196 200] % enter values for
pressur drop in mbar
%-----------------------------------------------------------------------------------
% below are some mock values (not real experimental values)that you can try out with
% Q_L_per_min = [20 19 18 16 14 10 7 3];
% DP_mbar = [100 110 120 130 140 150 170 180];
%-----------------------------------------------------------------------------------
%%%%%%%%%%%%%%%%%%%%%%%%%%
% Calculation %
%%%%%%%%%%%%%%%%%%%%%%%%%%
% specify contants
rho = 998 % in kg/m3
D = 0.021 % in m
g = 9.81
% plot pump curve, [h(m) vs Q(L/min)] on the left axis using the 'yyaxis'
% function. Label ths left y-axis
yyaxis left
plot(Q_L_per_min, h, "bs-")
ylabel("h(m)")
xlabel("Q(L/min)")
% plot efficiency curve, [n(%) vs Q(L/min)] on the right axis using the
%'yyaxis' function. Label the right y-axis
yyaxis right
plot(Q_L_per_min,efficiency, "ro-")
ylabel("Pump efficiencty (%)")