You are on page 1of 5

Optimization of Chemical Processes(CHT610)

Assignment-05
Sohela Manna
(2019pch5015)

Question 1:

MATLAB code used:


[p2,p3]=meshgrid(1:20,1:20);
Z=p2.^0.286+((p3./p2).^0.286)+(10./p3).^0.286;
subplot(2,2,1)
mesh(p2,p3,z)
subplot(2,2,2)
surfc(p1,p2,z)

Question 2
MATLAB Code used:
x=(-2:3);
z=1+(8.*x)+(2.*x.^2)-((10/3).*x.^3)-((1/4).*x.^4)+((4/5).*x.^5)-((1/6).*x.^6);
plot(x,z,’-r’)

Question 3: Filtration study


MATLAB code used:
pressuredrop=2880;
A=250;
viscosity=0.0134;
M=1.25;
c=0.01;
a=3.643;
b=2.68;
beta=3.2*10^-8
xc=(0.0:0.1:1.0)
tf=(((beta*pressuredrop*(A^2)*exp(-a.*xc +b))/(M^2*viscosity*c)).*xc)
plot(xc,tf,'-b')
Question 4:Plotting circular function
MATLAB Code used:
[x1,x2]=meshgrid(-20:20,-20:20);
z=x1.^2+3.*x2.*2;
subplot(2,2,1)
surfc(x1,x2,z)
subplot(2,2,2)
mesh(x1,x2,z)
subplot(2,2,3)
contour(x1,x2,z)
Question 5: Plotting circular function
MATLAB Code used:
[x1,x2]=meshgrid(-20:20,-20:20);
z=5.*x1.^2+x2.*2+2.*x1.*x2-12.*x1-4.*x2+8;
subplot(2,2,1)
mesh(x1,x2,z)
subplot(2,2,2)
contour(x1,x2,z)
subplot(2,2,3)
surfc(x1,x2,z)
subplot(2,2,4)
surf(x1,x2,z)

You might also like