You are on page 1of 1

% Program to verify that the flow field given in

Problem 9-27 is incompressible or not.


clc
clear all
syms x y
u=1.3+2.8*x;
v=1.5-2.8*y;
pdu=diff(u,x)
pdv=diff(v,y)
sumc=pdu+pdv
if sumc==0
disp ('The given Velocity Field is Incompressible')
else disp ('The given Velocity Field is not Incompressible')
end

You might also like