j_max = floor(t/dt+1); % Number of time nodes i_max = floor(H/dy+1); % Number of space nodes
for j = 1:j_max
for i = 1:i_max
if j == 1
if i == i_max
U(i,j) = Iu(2);
else
U(i,j) = Iu(1);
end
else
if i == i_max
U(i,j) = Bu(2);
elseif i == 1
U(i,j) = Bu(1);
else
U(i,j) = (1-2*D)*U(i,j-1)+D*(U(i+1,j-1)+U(i-1,j-1));
end
end
end
end
%% Plots
figure
hold on
grid on
for j = 1:j_max
plot(U(:,j),0:dy:dy*(i_max-1))
end
xlabel('Velocity "U" (m)')
ylabel('Hight "Y" (m)')
title('Flow Between Two Parallel Plates Problem')
please use matlab to solve Problem # 3 P-3 Flow between two paralle plates is described by the following equation dith boundary conditons given as u,-0 & u,-o Calculate the velocity profile u...
please solve (va20) for me thanks!! :)
V VISCOUS FLOWS Page 38 nar flow between two infinite plates a distance h apart driven by a pressure gra- Va20. For lami dient, the velocity profile is [constant] [linear] [parabolic] [hyperbolic] [elliptic] [error func- tion], and the flow rate Q is proportional to h to the power is driven by the top plate moving at a speed U in the absence of any pressure gradient, the velocity profile is [constant] linearl Iparabolic]...