SlideShare a Scribd company logo
Modelling and Simulation in
aspect of Natural Gas
Dr Sourav Poddar
Department of Chemical Engineering
National Institute of Technology
Warangal, TS
Lecture -6.pdf
Lecture -6.pdf
Lecture -6.pdf
Lecture -6.pdf
Lecture -6.pdf
Lecture -6.pdf
Lecture -6.pdf
Lecture -6.pdf
Lecture -6.pdf
Lecture -6.pdf
Lecture -6.pdf
Lecture -6.pdf
Lecture -6.pdf
Lecture -6.pdf
Lecture -6.pdf
Lecture -6.pdf
Lecture -6.pdf
Lecture -6.pdf
Lecture -6.pdf
Lecture -6.pdf
Lecture -6.pdf
Lecture -6.pdf
Lecture -6.pdf
Lecture -6.pdf
Lecture -6.pdf
Lecture -6.pdf
Lecture -6.pdf
Lecture -6.pdf
Lecture -6.pdf
Lecture -6.pdf
Lecture -6.pdf
Lecture -6.pdf
Lecture -6.pdf
Lecture -6.pdf
Lecture -6.pdf
Lecture -6.pdf
Lecture -6.pdf
Lecture -6.pdf
Lecture -6.pdf
Lecture -6.pdf
Lecture -6.pdf
input conditions
print
Lecture -6.pdf
Lecture -6.pdf
Lecture -6.pdf
Lecture -6.pdf
Lecture -6.pdf
Lecture -6.pdf
Lecture -6.pdf
Lecture -6.pdf
Lecture -6.pdf
Lecture -6.pdf
Lecture -6.pdf
Lecture -6.pdf
Lecture -6.pdf
Lecture -6.pdf
Lecture -6.pdf
Lecture -6.pdf
Lecture -6.pdf
Lecture -6.pdf
Distillation column
% MATLAB Program for solving Distillation Program
A=[0.07 0.18 0.15 0.24
0.04 0.24 0.10 0.65
0.54 0.42 0.54 0.10
0.35 0.16 0.21 0.01]
f = [0.15*70 0.25*70 0.40*70 0.2*70]
disp('Solutions for D1 B1 D2 B2 is:')
X=Af'
D1=X(1)
B1=X(2)
D2=X(3)
B2=X(4)
disp {'Solve for column 2'}
D=D1+B1%43.75 MOL/MIN
XDx=(0.07*D1+0.18*B1)/D %0.114 mole fraction
XDs=(0.04*D1+0.24*B1)/D %0.120 mole fraction
XDt=(0.54*D1+0.42*B1)/D %0.492 mole fraction
XDb=(0.35*D1+0.16*B1)/D %0.274 mole fraction
%The mole fraction for column 3 are solved for directly
by evaluating
%Equation
D2=X(3)
B2=X(4)
disp('Solve for colum 3')
B=D2+B2 %26.25 mol/min
XBx=(0.15*D2+0.24*B2)/B %0.2100 mole fraction
XBs=(0.10*D2+0.65*B2)/B %0.4667 mole fraction
XBt=(0.54*D2+0.10*B2)/B %0.2467 mole fraction
XBb=(0.21*D2+0.01*B2)/B %0.0767 mole fraction
Result
dist
0.0700 0.1800 0.1500 0.2400
0.0400 0.2400 0.1000 0.6500
0.5400 0.4200 0.5400 0.1000
0.3500 0.1600 0.2100 0.0100
A =
f = 10.5000 17.5000 28.0000 14.0000
Solutions for D1 B1 D2 B2 is:
X = 26.2500, 17.5000, 8.7500, 17.5000
D1 = 26.2500; B1 = 17.5000; D2 = 8.7500; B2 = 17.5000
{'Solve for column 2'}
D = 43.7500; XDx = 0.1140; XDs = 0.1200; XDt = 0.4920; XDb = 0.2740; D2 = 8.7500
B2 = 17.5000
Solve for colum 3
B = 26.2500; XBx = 0.2100; XBs = 0.4667; XBt = 0.2467; XBb = 0.0767
HEAT EXCHANGER
% Figure(1) refers to Case 1
% Figure(2) refers to Case 2
% Figure(3) refers to Case 3
% Click "Run and Advance" to generate the Matlab 3D co-ordinates for all 3
% cases.
% Click "Run" wouldl only generate Figure(1).
% The utility source is taken to be in the middle of the plant.
% The values [0.5 0.5 0.5] and [0.9290 0.6940 0.1250] are RGB colours for
% grey (heat exchangers) and yellow-orange (other equipment) as Matlab does
% not have a pre-built value for them.
% The vectors are sometimes given a +0.2 or -0.2 to indicate the
% approximate suggested coordinates for the new heaters/heat exchangers to
% be installed (+0.2 or -0.2 from a nearby existing equipment in line with
% the stream).
%HE33E061
x1 = 2.9400;
y1 = 2.9620;
z1 = 0.1560;
%HE31E01
x2 = 4.2300;
y2 = 0.1500;
z2 = 1.1900;
%HE31E02
x3 = 5.3000;
y3 = 0.1600;
z3 = 0.4600;
%HE31E03 (G - heater)
x4 = 4.7800;
y4 = 1.4332;
z4 = 2.6200;
%HE31E04
x5 = 5.5300;
y5 = 0.3800;
z5 = 1.4450;
% HE31E05 (C - cooler)
x6 = 5.5690;
y6 = 0.4300;
z6 = 0.6500;
% HE32E01 (H - heater)
x7 = 4.4800;
y7 = 1.5250;
z7 = 1.0700;
% HE32E02 (I - 32E02)
x8 = 2.0143;
y8 = 1.6650;
z8 = 1.0620;
% HE32E03 (EN - heat exchanger)
x9 = 1.3868;
y9 = 1.6000;
z9 = 1.7600;
% HE32E04 (DN - heat exchanger)
x10 = 3.7444;
y10 = 1.2000;
z10 = 1.0400;
% HE32E05
x11 = 2.7800;
y11 = 2.0375;
z11 = 1.0900;
% HE32E06 (Q - heater)
x12 = 2.0275;
y12 = 1.1350;
z12 = 1.0620;
% HE32E07 (D,M - heat exchanger)
x13 = 1.3868;
y13 = 1.2000;
z13 = 1.5300;
% HE32E08
x14 = 6.6900;
y14 = 3.0200;
z14 = 0.0900;
% HE33E01
x15 = 6.2800;
y15 = 0.6000;
z15 = 1.3500;
% HE33E02 (FO - heat exchanger)
x16 = 6.2800;
y16 = 0.6000;
z16 = 4.6000;
% HE33E03
x17 = 5.7800;
y17 = 0.4500;
z17 = 4.6000;
% HE33E04 (J - heater)
x18 = 3.2800;
y18 = 0.2117;
z18 = 1.4700;
% HE33E05 (AP - heat exchanger)
x19 = 2.9800;
y19 = 0.2160;
z19 = 1.5900;
% HE33E06 (A - heater)
x20 = 2.6800;
y20 = 0.2336;
z20 = 1.4900;
% HE33E07 (BG - heat exchanger)
x21 = 2.9800;
y21 = 0.2250;
z21 = 0.0900;
% HE33E08 (B - cooler)
x22 = 3.2800;
y22 = 0.1860;
z22 = 0.1200;
% HE33E09 (K - heater)
x23 = 5.3755;
y23 = 0.2000;
z23 = 3.0100;
% HE33E10 (CL - heat exchanger)
x24 = 5.3700;
y24 = 1.6500;
z24 = 1.0450;
% HE33E11
x25 = 4.7550;
y25 = 1.2000;
z25 = 1.0450;
% HE33E12
x26 = 5.2800;
y26 = 1.6120;
z26 = 2.6500;
% HE33E13
x27 = 5.6400;
y27 = 1.6212;
z27 = 2.5950;
%HE33E14
x28 = 5.6400;
y28 = 1.6212;
z28 = 2.6950;
%HE33E15
x29 = 5.4300;
y29 = 1.6120;
z29 = 2.6000;
%Utility source
x30 = 4.2500;
y30 = 2.2500;
z30 = 2.7500;
sz = 230;
figure(1)
scatter3(x1, y1, z1, sz, [0.9290 0.6940 0.1250], 'filled',
'MarkerEdgeColor','k'); hold on;
scatter3(x2, y2, z2, sz, 'b', 'filled', 'MarkerEdgeColor','k')
scatter3(x3, y3, z3, sz, [0.9290 0.6940 0.1250], 'filled',
'MarkerEdgeColor','k')
scatter3(x4, y4, z4, sz, 'b', 'filled', 'MarkerEdgeColor','k');
scatter3(x5, y5, z5, sz, [0.9290 0.6940 0.1250], 'filled',
'MarkerEdgeColor','k')
scatter3(x6, y6, z6, sz, 'r', 'filled', 'MarkerEdgeColor','k');
scatter3(x7, y7, z7, sz, 'r', 'filled', 'MarkerEdgeColor','k')
scatter3(x8, y8, z8, sz, 'r', 'filled', 'MarkerEdgeColor','k')
scatter3(x9, y9, z9, sz, [0.5,0.5,0.5], 'filled',
'MarkerEdgeColor','k');
scatter3(x10, y10, z10, sz, [0.5,0.5,0.5], 'filled',
'MarkerEdgeColor','k')
scatter3(x11, y11, z11, sz, [0.9290 0.6940 0.1250], 'filled',
'MarkerEdgeColor','k')
scatter3(x12, y12, z12, sz, 'r', 'filled', 'MarkerEdgeColor','k')
scatter3(x13, y13, z13, sz, [0.5,0.5,0.5], 'filled',
'MarkerEdgeColor','k')
scatter3(x14, y14, z14, sz, [0.9290 0.6940 0.1250], 'filled',
'MarkerEdgeColor','k')
scatter3(x15, y15, z15, sz, [0.9290 0.6940 0.1250], 'filled',
'MarkerEdgeColor','k')
scatter3(x16, y16, z16, sz, [0.5,0.5,0.5], 'filled',
'MarkerEdgeColor','k')
scatter3(x17, y17, z17, sz, [0.9290 0.6940 0.1250], 'filled',
'MarkerEdgeColor','k')
scatter3(x18, y18, z18, sz, 'r', 'filled', 'MarkerEdgeColor','k')
scatter3(x19, y19, z19, sz, [0.5,0.5,0.5], 'filled',
'MarkerEdgeColor','k')
scatter3(x20, y20, z20, sz, 'b', 'filled', 'MarkerEdgeColor','k')
scatter3(x21, y21, z21, sz, [0.5,0.5,0.5], 'filled',
'MarkerEdgeColor','k')
scatter3(x22, y22, z22, sz, 'b', 'filled', 'MarkerEdgeColor','k')
scatter3(x23, y23, z23, sz, 'r', 'filled', 'MarkerEdgeColor','k')
scatter3(x24, y24, z24, sz, [0.5,0.5,0.5], 'filled',
'MarkerEdgeColor','k')
scatter3(x25, y25, z25, sz, [0.9290 0.6940 0.1250], 'filled',
'MarkerEdgeColor','k')
scatter3(x26, y26, z26, sz, [0.9290 0.6940 0.1250], 'filled',
'MarkerEdgeColor','k')
scatter3(x27, y27, z27, sz, [0.9290 0.6940 0.1250], 'filled',
'MarkerEdgeColor','k')
scatter3(x28, y28, z28, sz, [0.9290 0.6940 0.1250], 'filled',
'MarkerEdgeColor','k')
scatter3(x29, y29, z29, sz, [0.9290 0.6940 0.1250], 'filled',
'MarkerEdgeColor','k')
hold off
grid on
xlabel('x-coordinates')
ylabel ('y-coordinates')
zlabel ('Floor Level')
figure(2)
scatter3(x1, y1, z1, sz, [0.9290 0.6940 0.1250], 'filled',
'MarkerEdgeColor','k'); hold on;
scatter3(x2, y2, z2, sz, 'b', 'filled', 'MarkerEdgeColor','k')
scatter3(x3, y3, z3, sz, [0.9290 0.6940 0.1250], 'filled',
'MarkerEdgeColor','k')
scatter3(x4, y4, z4, sz, 'b', 'filled', 'MarkerEdgeColor','k');
scatter3(x5, y5, z5, sz, [0.9290 0.6940 0.1250], 'filled',
'MarkerEdgeColor','k')
scatter3(x6, y6, z6, sz, 'r', 'filled', 'MarkerEdgeColor','k');
scatter3(x7, y7, z7, sz, 'r', 'filled', 'MarkerEdgeColor','k')
scatter3(x8, y8, z8, sz, 'r', 'filled', 'MarkerEdgeColor','k')
scatter3(x9, y9, z9, sz, [0.5,0.5,0.5], 'filled',
'MarkerEdgeColor','k');
scatter3(x10, y10, z10, sz, [0.5,0.5,0.5], 'filled',
'MarkerEdgeColor','k')
scatter3(x11, y11, z11, sz, [0.9290 0.6940 0.1250], 'filled',
'MarkerEdgeColor','k')
scatter3(x12, y12, z12, sz, 'r', 'filled', 'MarkerEdgeColor','k')
scatter3(x13, y13, z13, sz, [0.5,0.5,0.5], 'filled', 'MarkerEdgeColor','k')
scatter3(x14, y14, z14, sz, [0.9290 0.6940 0.1250], 'filled',
'MarkerEdgeColor','k')
scatter3(x15, y15, z15, sz, [0.9290 0.6940 0.1250], 'filled',
'MarkerEdgeColor','k')
scatter3(x16, y16, z16, sz, [0.5,0.5,0.5], 'filled', 'MarkerEdgeColor','k')
scatter3(x17, y17, z17, sz, [0.9290 0.6940 0.1250], 'filled',
'MarkerEdgeColor','k')
scatter3(x18, y18, z18, sz, 'r', 'filled', 'MarkerEdgeColor','k')
scatter3(x19, y19, z19, sz, [0.5,0.5,0.5], 'filled', 'MarkerEdgeColor','k')
scatter3(x20, y20, z20, sz, 'b', 'filled', 'MarkerEdgeColor','k')
scatter3(x21, y21, z21, sz, [0.5,0.5,0.5], 'filled', 'MarkerEdgeColor','k')
scatter3(x22, y22, z22, sz, 'b', 'filled', 'MarkerEdgeColor','k')
scatter3(x23, y23, z23, sz, 'r', 'filled',
'MarkerEdgeColor','k')
scatter3(x24, y24, z24, sz, [0.5,0.5,0.5], 'filled',
'MarkerEdgeColor','k')
scatter3(x25, y25, z25, sz, [0.9290 0.6940 0.1250],
'filled', 'MarkerEdgeColor','k')
scatter3(x26, y26, z26, sz, [0.9290 0.6940 0.1250],
'filled', 'MarkerEdgeColor','k')
scatter3(x27, y27, z27, sz, [0.9290 0.6940 0.1250],
'filled', 'MarkerEdgeColor','k')
scatter3(x28, y28, z28, sz, [0.9290 0.6940 0.1250],
'filled', 'MarkerEdgeColor','k')
scatter3(x29, y29, z29, sz, [0.9290 0.6940 0.1250],
'filled', 'MarkerEdgeColor','k')
scatter3(x30, y30, z30,[300],'r', 'd', 'filled',
'MarkerEdgeColor','k')
%1. HE for K and A (HE33E05 & HE33E09)
v1_1 = [x23, y23-0.2, z23];
v1_2 = [x23, y23-0.2, z19];
v1_3 = [x23, y19-0.2, z19];
v2_1 = [x23, y23-0.2, z19];
v2_2 = [x23, y19-0.2, z19];
v2_3 = [x19, y19-0.2, z19];
v1=[v1_1;v1_2;v1_3];
v2=[v2_1;v2_2;v2_3];
plot3(v1(:,1),v1(:,2),v1(:,3),'g', 'Linewidth', 2)
plot3(v2(:,1),v2(:,2),v2(:,3),'g', 'Linewidth', 2)
%2. HE for H01 and K (HE33E09)
v3_1 = [x30, y30, z30];
v3_2 = [x30, y30, z23];
v3_3 = [x30, y23+0.2, z23];
v4_1 = [x30, y30, z23];
v4_2 = [x30, y23+0.2, z23];
v4_3 = [x23, y23+0.2, z23];
v3=[v3_1;v3_2;v3_3];
v4=[v4_1;v4_2;v4_3];
plot3(v3(:,1),v3(:,2),v3(:,3),'r', 'Linewidth', 2)
plot3(v4(:,1),v4(:,2),v4(:,3),'r', 'Linewidth', 2)
%3. HE for H02 and L (HE33E10)
v5_1 = [x30, y30, z30];
v5_2 = [x30, y30, z24];
v5_3 = [x30, y24+0.2, z24];
v6_1 = [x30, y30, z24];
v6_2 = [x30, y24+0.2, z24];
v6_3 = [x24, y24+0.2, z24];
v5=[v5_1;v5_2;v5_3];
v6=[v6_1;v6_2;v6_3];
plot3(v5(:,1),v5(:,2),v5(:,3),'r', 'Linewidth', 2)
plot3(v6(:,1),v6(:,2),v6(:,3),'r', 'Linewidth', 2)
%4. HE for H03 and L (HE33E05)
v7_1 = [x30, y30, z30];
v7_2 = [x30, y30, z24];
v7_3 = [x30, y24-0.2, z24];
v8_1 = [x30, y30, z24];
v8_2 = [x30, y24-0.2, z24];
v8_3 = [x24, y24-0.2, z24];
v7=[v7_1;v7_2;v7_3];
v8=[v8_1;v8_2;v8_3];
plot3(v7(:,1),v7(:,2),v7(:,3),'r', 'Linewidth', 2)
plot3(v8(:,1),v8(:,2),v8(:,3),'r', 'Linewidth', 2)
hold off
grid on
xlabel('x-coordinates')
ylabel ('y-coordinates')
zlabel ('Floor Level')
figure(3)
scatter3(x1, y1, z1, sz, [0.9290 0.6940 0.1250], 'filled',
'MarkerEdgeColor','k'); hold on;
scatter3(x2, y2, z2, sz, 'b', 'filled', 'MarkerEdgeColor','k')
scatter3(x3, y3, z3, sz, [0.9290 0.6940 0.1250], 'filled',
'MarkerEdgeColor','k')
scatter3(x4, y4, z4, sz, 'b', 'filled', 'MarkerEdgeColor','k');
scatter3(x5, y5, z5, sz, [0.9290 0.6940 0.1250], 'filled',
'MarkerEdgeColor','k')
scatter3(x6, y6, z6, sz, 'r', 'filled', 'MarkerEdgeColor','k');
scatter3(x7, y7, z7, sz, 'r', 'filled', 'MarkerEdgeColor','k')
scatter3(x8, y8, z8, sz, 'r', 'filled', 'MarkerEdgeColor','k')
scatter3(x9, y9, z9, sz, [0.5,0.5,0.5], 'filled',
'MarkerEdgeColor','k');
scatter3(x10, y10, z10, sz, [0.5,0.5,0.5], 'filled',
'MarkerEdgeColor','k')
scatter3(x11, y11, z11, sz, [0.9290 0.6940 0.1250], 'filled',
'MarkerEdgeColor','k')
scatter3(x12, y12, z12, sz, 'r', 'filled', 'MarkerEdgeColor','k')
scatter3(x13, y13, z13, sz, [0.5,0.5,0.5], 'filled',
'MarkerEdgeColor','k')
scatter3(x14, y14, z14, sz, [0.9290 0.6940 0.1250], 'filled',
'MarkerEdgeColor','k')
scatter3(x15, y15, z15, sz, [0.9290 0.6940 0.1250], 'filled',
'MarkerEdgeColor','k')
scatter3(x16, y16, z16, sz, [0.5,0.5,0.5], 'filled',
'MarkerEdgeColor','k')
scatter3(x17, y17, z17, sz, [0.9290 0.6940 0.1250], 'filled',
'MarkerEdgeColor','k')
scatter3(x18, y18, z18, sz, 'r', 'filled', 'MarkerEdgeColor','k')
scatter3(x19, y19, z19, sz, [0.5,0.5,0.5], 'filled',
'MarkerEdgeColor','k')
scatter3(x20, y20, z20, sz, 'b', 'filled', 'MarkerEdgeColor','k')
scatter3(x21, y21, z21, sz, [0.5,0.5,0.5], 'filled',
'MarkerEdgeColor','k')
scatter3(x22, y22, z22, sz, 'b', 'filled', 'MarkerEdgeColor','k')
scatter3(x23, y23, z23, sz, 'r', 'filled', 'MarkerEdgeColor','k')
scatter3(x24, y24, z24, sz, [0.5,0.5,0.5], 'filled',
'MarkerEdgeColor','k')
scatter3(x25, y25, z25, sz, [0.9290 0.6940 0.1250], 'filled',
'MarkerEdgeColor','k')
scatter3(x26, y26, z26, sz, [0.9290 0.6940 0.1250], 'filled',
'MarkerEdgeColor','k')
scatter3(x27, y27, z27, sz, [0.9290 0.6940 0.1250], 'filled',
'MarkerEdgeColor','k')
scatter3(x28, y28, z28, sz, [0.9290 0.6940 0.1250], 'filled',
'MarkerEdgeColor','k')
scatter3(x29, y29, z29, sz, [0.9290 0.6940 0.1250], 'filled',
'MarkerEdgeColor','k')
v1_1 = [x23, y23-0.2, z23];
v1_2 = [x23, y23-0.2, z19];
v1_3 = [x23, y19-0.2, z19];
v2_1 = [x23, y23-0.2, z19];
v2_2 = [x23, y19-0.2, z19];
v2_3 = [x19, y19-0.2, z19];
v1=[v1_1;v1_2;v1_3];
v2=[v2_1;v2_2;v2_3];
plot3(v1(:,1),v1(:,2),v1(:,3),'g', 'Linewidth', 2)
plot3(v2(:,1),v2(:,2),v2(:,3),'g', 'Linewidth', 2)
hold off
grid on
xlabel('x-coordinates')
ylabel ('y-coordinates')
zlabel ('Floor Level')
Results
Figure -1
Figure – 2
Figure 3
Lecture -6.pdf
Lecture -6.pdf
Lecture -6.pdf
Lecture -6.pdf
Lecture -6.pdf
Lecture -6.pdf
Lecture -6.pdf
Lecture -6.pdf
Lecture -6.pdf
Lecture -6.pdf
Lecture -6.pdf
Lecture -6.pdf
Lecture -6.pdf
Lecture -6.pdf
Lecture -6.pdf
Lecture -6.pdf
Lecture -6.pdf
Lecture -6.pdf
Lecture -6.pdf
Lecture -6.pdf
Lecture -6.pdf
Lecture -6.pdf
Lecture -6.pdf
Lecture -6.pdf
Lecture -6.pdf
Lecture -6.pdf
Lecture -6.pdf
Lecture -6.pdf
Lecture -6.pdf
Lecture -6.pdf
Lecture -6.pdf
Lecture -6.pdf
Lecture -6.pdf
Lecture -6.pdf
Lecture -6.pdf
Lecture -6.pdf
Lecture -6.pdf
Lecture -6.pdf
Lecture -6.pdf
Lecture -6.pdf
Lecture -6.pdf
Lecture -6.pdf
Lecture -6.pdf
Lecture -6.pdf
Lecture -6.pdf
Lecture -6.pdf
Lecture -6.pdf
Lecture -6.pdf
Lecture -6.pdf
Lecture -6.pdf
Lecture -6.pdf
Lecture -6.pdf
Lecture -6.pdf
Lecture -6.pdf
Lecture -6.pdf
Lecture -6.pdf
Lecture -6.pdf
Lecture -6.pdf
Lecture -6.pdf
Lecture -6.pdf
Lecture -6.pdf
Lecture -6.pdf
Lecture -6.pdf
Lecture -6.pdf
Lecture -6.pdf
Lecture -6.pdf
Lecture -6.pdf
Lecture -6.pdf
Lecture -6.pdf
Lecture -6.pdf
Lecture -6.pdf
Lecture -6.pdf
Lecture -6.pdf
Lecture -6.pdf
Lecture -6.pdf
Lecture -6.pdf
Lecture -6.pdf
Lecture -6.pdf
Lecture -6.pdf
Lecture -6.pdf
Lecture -6.pdf
Lecture -6.pdf
Lecture -6.pdf
Lecture -6.pdf
Lecture -6.pdf
Lecture -6.pdf
Lecture -6.pdf
Lecture -6.pdf
Lecture -6.pdf
Lecture -6.pdf
Lecture -6.pdf
Lecture -6.pdf
Lecture -6.pdf
Lecture -6.pdf
Lecture -6.pdf
Lecture -6.pdf
Lecture -6.pdf
Lecture -6.pdf
Lecture -6.pdf
Lecture -6.pdf
Lecture -6.pdf
Lecture -6.pdf
Lecture -6.pdf
Lecture -6.pdf
Lecture -6.pdf
Lecture -6.pdf
Lecture -6.pdf
Lecture -6.pdf
Lecture -6.pdf
Lecture -6.pdf
Lecture -6.pdf
Lecture -6.pdf
Lecture -6.pdf
Lecture -6.pdf
Lecture -6.pdf
Hetran - (to simulate an heat exchanger), The B-JAC input file name that contains the heat exchanger specification., The Aerotran
block is the interface to the B-JAC Aerotran program for designing and simulating air-cooled heat exchangers
Lecture -6.pdf
Lecture -6.pdf
Lecture -6.pdf
Lecture -6.pdf
Lecture -6.pdf
Lecture -6.pdf
Lecture -6.pdf
Lecture -6.pdf
Lecture -6.pdf
Lecture -6.pdf
Lecture -6.pdf
Lecture -6.pdf
Lecture -6.pdf
Lecture -6.pdf
Lecture -6.pdf
Lecture -6.pdf
Lecture -6.pdf
Lecture -6.pdf
Lecture -6.pdf
Lecture -6.pdf
Lecture -6.pdf
Lecture -6.pdf
Lecture -6.pdf
Lecture -6.pdf
Lecture -6.pdf
Lecture -6.pdf
Lecture -6.pdf
Lecture -6.pdf
Lecture -6.pdf
Lecture -6.pdf
Lecture -6.pdf
Lecture -6.pdf
Lecture -6.pdf
Lecture -6.pdf
Lecture -6.pdf
Lecture -6.pdf
Lecture -6.pdf
Lecture -6.pdf
Lecture -6.pdf
Lecture -6.pdf
Lecture -6.pdf
Lecture -6.pdf
Lecture -6.pdf
Lecture -6.pdf
Lecture -6.pdf
Lecture -6.pdf
Lecture -6.pdf
Thank You

More Related Content

PDF
clear clc close all Use polyfit to solve for the phase l.pdf
PDF
SCIPY-SYMPY.pdf
PDF
TEM workshop 2013: Electron diffraction
PDF
10CSL67 CG LAB PROGRAM 9
PDF
밑바닥부터 시작하는 의료 AI
PDF
MOSFET Capacitance Simulation(16FEB2012) in PDF
PDF
Structural Dynamics Toolbox and OpenFEM, a technical overview
PDF
reservoir-modeling-using-matlab-the-matalb-reservoir-simulation-toolbox-mrst.pdf
clear clc close all Use polyfit to solve for the phase l.pdf
SCIPY-SYMPY.pdf
TEM workshop 2013: Electron diffraction
10CSL67 CG LAB PROGRAM 9
밑바닥부터 시작하는 의료 AI
MOSFET Capacitance Simulation(16FEB2012) in PDF
Structural Dynamics Toolbox and OpenFEM, a technical overview
reservoir-modeling-using-matlab-the-matalb-reservoir-simulation-toolbox-mrst.pdf

Similar to Lecture -6.pdf (20)

PPT
presentacióncarbohidratos estructura.ppt
PDF
Using MATLAB (code must be written for MATLAB) and the concept of Ho.pdf
PDF
FINAL Composite
PDF
matlab codes.pdf
PDF
HodgeCyce
PDF
Matlab assignment
PDF
Codigos Ifs
PDF
600 c 1
DOCX
MOSFET Capacitance Simulation(16FEB2012)
PDF
Truss optimization with excel solver
DOCX
A 99 LINE TOPOLOGY OPTIMIZATION CODE BY OLE SIGMUND, JANUARY .docx
PPTX
A Diffusion Wavelet Approach For 3 D Model Matching
DOCX
Examen final
PDF
Python과 node.js기반 데이터 분석 및 가시화
DOCX
CAE REPORT
PDF
Optimisation problems and methods in Chemical Engineering: a personal survey
DOCX
Advanced Data Visualization Examples with R-Part II
DOCX
Plot3D Package and Example in R.-Data visualizat,on
DOCX
Plot3D package in R-package-for-3d-and-4d-graph-Data visualization.
PDF
E251014
presentacióncarbohidratos estructura.ppt
Using MATLAB (code must be written for MATLAB) and the concept of Ho.pdf
FINAL Composite
matlab codes.pdf
HodgeCyce
Matlab assignment
Codigos Ifs
600 c 1
MOSFET Capacitance Simulation(16FEB2012)
Truss optimization with excel solver
A 99 LINE TOPOLOGY OPTIMIZATION CODE BY OLE SIGMUND, JANUARY .docx
A Diffusion Wavelet Approach For 3 D Model Matching
Examen final
Python과 node.js기반 데이터 분석 및 가시화
CAE REPORT
Optimisation problems and methods in Chemical Engineering: a personal survey
Advanced Data Visualization Examples with R-Part II
Plot3D Package and Example in R.-Data visualizat,on
Plot3D package in R-package-for-3d-and-4d-graph-Data visualization.
E251014

More from Sourav Poddar (20)

PPT
Bioreactor_on_Bioprocess_Engineering.ppt
PDF
Module -1.pdf
PDF
Module 3.pdf
PDF
Module -6.pdf
PDF
Module 4.pdf
PDF
Module 2.pdf
PDF
Module 5.pdf
PDF
Module 4.pdf
PDF
Module - 2.pdf
PPTX
Module - 1.pptx
PDF
Module - iv.pdf
PDF
Module - 5.pdf
PDF
Module - 3.pdf
PPTX
vector and tensor.pptx
PDF
lecture 5.pdf
PDF
lecture 4.pdf
PPTX
lecture 3.pptx
PDF
Matlab - BVP.pdf
PDF
lecture 2.pdf
PDF
Lecture -1.pdf
Bioreactor_on_Bioprocess_Engineering.ppt
Module -1.pdf
Module 3.pdf
Module -6.pdf
Module 4.pdf
Module 2.pdf
Module 5.pdf
Module 4.pdf
Module - 2.pdf
Module - 1.pptx
Module - iv.pdf
Module - 5.pdf
Module - 3.pdf
vector and tensor.pptx
lecture 5.pdf
lecture 4.pdf
lecture 3.pptx
Matlab - BVP.pdf
lecture 2.pdf
Lecture -1.pdf

Recently uploaded (20)

PPTX
CARTOGRAPHY AND GEOINFORMATION VISUALIZATION chapter1 NPTE (2).pptx
PPTX
FINAL REVIEW FOR COPD DIANOSIS FOR PULMONARY DISEASE.pptx
PPTX
additive manufacturing of ss316l using mig welding
PPTX
CYBER-CRIMES AND SECURITY A guide to understanding
PPTX
IOT PPTs Week 10 Lecture Material.pptx of NPTEL Smart Cities contd
PDF
SM_6th-Sem__Cse_Internet-of-Things.pdf IOT
PDF
keyrequirementskkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkk
PPTX
M Tech Sem 1 Civil Engineering Environmental Sciences.pptx
PPTX
Sustainable Sites - Green Building Construction
PPTX
OOP with Java - Java Introduction (Basics)
PDF
PRIZ Academy - 9 Windows Thinking Where to Invest Today to Win Tomorrow.pdf
PDF
Well-logging-methods_new................
PPTX
Welding lecture in detail for understanding
PDF
Enhancing Cyber Defense Against Zero-Day Attacks using Ensemble Neural Networks
PDF
Embodied AI: Ushering in the Next Era of Intelligent Systems
PDF
R24 SURVEYING LAB MANUAL for civil enggi
PPTX
CH1 Production IntroductoryConcepts.pptx
PPTX
MCN 401 KTU-2019-PPE KITS-MODULE 2.pptx
DOCX
573137875-Attendance-Management-System-original
PPTX
Recipes for Real Time Voice AI WebRTC, SLMs and Open Source Software.pptx
CARTOGRAPHY AND GEOINFORMATION VISUALIZATION chapter1 NPTE (2).pptx
FINAL REVIEW FOR COPD DIANOSIS FOR PULMONARY DISEASE.pptx
additive manufacturing of ss316l using mig welding
CYBER-CRIMES AND SECURITY A guide to understanding
IOT PPTs Week 10 Lecture Material.pptx of NPTEL Smart Cities contd
SM_6th-Sem__Cse_Internet-of-Things.pdf IOT
keyrequirementskkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkk
M Tech Sem 1 Civil Engineering Environmental Sciences.pptx
Sustainable Sites - Green Building Construction
OOP with Java - Java Introduction (Basics)
PRIZ Academy - 9 Windows Thinking Where to Invest Today to Win Tomorrow.pdf
Well-logging-methods_new................
Welding lecture in detail for understanding
Enhancing Cyber Defense Against Zero-Day Attacks using Ensemble Neural Networks
Embodied AI: Ushering in the Next Era of Intelligent Systems
R24 SURVEYING LAB MANUAL for civil enggi
CH1 Production IntroductoryConcepts.pptx
MCN 401 KTU-2019-PPE KITS-MODULE 2.pptx
573137875-Attendance-Management-System-original
Recipes for Real Time Voice AI WebRTC, SLMs and Open Source Software.pptx

Lecture -6.pdf

  • 1. Modelling and Simulation in aspect of Natural Gas Dr Sourav Poddar Department of Chemical Engineering National Institute of Technology Warangal, TS
  • 62. Distillation column % MATLAB Program for solving Distillation Program A=[0.07 0.18 0.15 0.24 0.04 0.24 0.10 0.65 0.54 0.42 0.54 0.10 0.35 0.16 0.21 0.01] f = [0.15*70 0.25*70 0.40*70 0.2*70] disp('Solutions for D1 B1 D2 B2 is:') X=Af' D1=X(1) B1=X(2) D2=X(3) B2=X(4) disp {'Solve for column 2'} D=D1+B1%43.75 MOL/MIN XDx=(0.07*D1+0.18*B1)/D %0.114 mole fraction XDs=(0.04*D1+0.24*B1)/D %0.120 mole fraction XDt=(0.54*D1+0.42*B1)/D %0.492 mole fraction XDb=(0.35*D1+0.16*B1)/D %0.274 mole fraction %The mole fraction for column 3 are solved for directly by evaluating %Equation D2=X(3) B2=X(4) disp('Solve for colum 3') B=D2+B2 %26.25 mol/min XBx=(0.15*D2+0.24*B2)/B %0.2100 mole fraction XBs=(0.10*D2+0.65*B2)/B %0.4667 mole fraction XBt=(0.54*D2+0.10*B2)/B %0.2467 mole fraction XBb=(0.21*D2+0.01*B2)/B %0.0767 mole fraction
  • 63. Result dist 0.0700 0.1800 0.1500 0.2400 0.0400 0.2400 0.1000 0.6500 0.5400 0.4200 0.5400 0.1000 0.3500 0.1600 0.2100 0.0100 A = f = 10.5000 17.5000 28.0000 14.0000 Solutions for D1 B1 D2 B2 is: X = 26.2500, 17.5000, 8.7500, 17.5000 D1 = 26.2500; B1 = 17.5000; D2 = 8.7500; B2 = 17.5000 {'Solve for column 2'} D = 43.7500; XDx = 0.1140; XDs = 0.1200; XDt = 0.4920; XDb = 0.2740; D2 = 8.7500 B2 = 17.5000 Solve for colum 3 B = 26.2500; XBx = 0.2100; XBs = 0.4667; XBt = 0.2467; XBb = 0.0767
  • 64. HEAT EXCHANGER % Figure(1) refers to Case 1 % Figure(2) refers to Case 2 % Figure(3) refers to Case 3 % Click "Run and Advance" to generate the Matlab 3D co-ordinates for all 3 % cases. % Click "Run" wouldl only generate Figure(1). % The utility source is taken to be in the middle of the plant. % The values [0.5 0.5 0.5] and [0.9290 0.6940 0.1250] are RGB colours for % grey (heat exchangers) and yellow-orange (other equipment) as Matlab does % not have a pre-built value for them. % The vectors are sometimes given a +0.2 or -0.2 to indicate the % approximate suggested coordinates for the new heaters/heat exchangers to % be installed (+0.2 or -0.2 from a nearby existing equipment in line with % the stream). %HE33E061 x1 = 2.9400; y1 = 2.9620; z1 = 0.1560; %HE31E01 x2 = 4.2300; y2 = 0.1500; z2 = 1.1900; %HE31E02 x3 = 5.3000; y3 = 0.1600; z3 = 0.4600; %HE31E03 (G - heater) x4 = 4.7800; y4 = 1.4332; z4 = 2.6200; %HE31E04 x5 = 5.5300; y5 = 0.3800; z5 = 1.4450;
  • 65. % HE31E05 (C - cooler) x6 = 5.5690; y6 = 0.4300; z6 = 0.6500; % HE32E01 (H - heater) x7 = 4.4800; y7 = 1.5250; z7 = 1.0700; % HE32E02 (I - 32E02) x8 = 2.0143; y8 = 1.6650; z8 = 1.0620; % HE32E03 (EN - heat exchanger) x9 = 1.3868; y9 = 1.6000; z9 = 1.7600; % HE32E04 (DN - heat exchanger) x10 = 3.7444; y10 = 1.2000; z10 = 1.0400; % HE32E05 x11 = 2.7800; y11 = 2.0375; z11 = 1.0900; % HE32E06 (Q - heater) x12 = 2.0275; y12 = 1.1350; z12 = 1.0620; % HE32E07 (D,M - heat exchanger) x13 = 1.3868; y13 = 1.2000; z13 = 1.5300; % HE32E08 x14 = 6.6900; y14 = 3.0200; z14 = 0.0900; % HE33E01 x15 = 6.2800; y15 = 0.6000; z15 = 1.3500; % HE33E02 (FO - heat exchanger) x16 = 6.2800; y16 = 0.6000; z16 = 4.6000; % HE33E03 x17 = 5.7800; y17 = 0.4500; z17 = 4.6000;
  • 66. % HE33E04 (J - heater) x18 = 3.2800; y18 = 0.2117; z18 = 1.4700; % HE33E05 (AP - heat exchanger) x19 = 2.9800; y19 = 0.2160; z19 = 1.5900; % HE33E06 (A - heater) x20 = 2.6800; y20 = 0.2336; z20 = 1.4900; % HE33E07 (BG - heat exchanger) x21 = 2.9800; y21 = 0.2250; z21 = 0.0900; % HE33E08 (B - cooler) x22 = 3.2800; y22 = 0.1860; z22 = 0.1200; % HE33E09 (K - heater) x23 = 5.3755; y23 = 0.2000; z23 = 3.0100; % HE33E10 (CL - heat exchanger) x24 = 5.3700; y24 = 1.6500; z24 = 1.0450; % HE33E11 x25 = 4.7550; y25 = 1.2000; z25 = 1.0450; % HE33E12 x26 = 5.2800; y26 = 1.6120; z26 = 2.6500; % HE33E13 x27 = 5.6400; y27 = 1.6212; z27 = 2.5950; %HE33E14 x28 = 5.6400; y28 = 1.6212; z28 = 2.6950; %HE33E15 x29 = 5.4300; y29 = 1.6120; z29 = 2.6000; %Utility source x30 = 4.2500; y30 = 2.2500; z30 = 2.7500; sz = 230; figure(1)
  • 67. scatter3(x1, y1, z1, sz, [0.9290 0.6940 0.1250], 'filled', 'MarkerEdgeColor','k'); hold on; scatter3(x2, y2, z2, sz, 'b', 'filled', 'MarkerEdgeColor','k') scatter3(x3, y3, z3, sz, [0.9290 0.6940 0.1250], 'filled', 'MarkerEdgeColor','k') scatter3(x4, y4, z4, sz, 'b', 'filled', 'MarkerEdgeColor','k'); scatter3(x5, y5, z5, sz, [0.9290 0.6940 0.1250], 'filled', 'MarkerEdgeColor','k') scatter3(x6, y6, z6, sz, 'r', 'filled', 'MarkerEdgeColor','k'); scatter3(x7, y7, z7, sz, 'r', 'filled', 'MarkerEdgeColor','k') scatter3(x8, y8, z8, sz, 'r', 'filled', 'MarkerEdgeColor','k') scatter3(x9, y9, z9, sz, [0.5,0.5,0.5], 'filled', 'MarkerEdgeColor','k'); scatter3(x10, y10, z10, sz, [0.5,0.5,0.5], 'filled', 'MarkerEdgeColor','k') scatter3(x11, y11, z11, sz, [0.9290 0.6940 0.1250], 'filled', 'MarkerEdgeColor','k') scatter3(x12, y12, z12, sz, 'r', 'filled', 'MarkerEdgeColor','k') scatter3(x13, y13, z13, sz, [0.5,0.5,0.5], 'filled', 'MarkerEdgeColor','k') scatter3(x14, y14, z14, sz, [0.9290 0.6940 0.1250], 'filled', 'MarkerEdgeColor','k') scatter3(x15, y15, z15, sz, [0.9290 0.6940 0.1250], 'filled', 'MarkerEdgeColor','k') scatter3(x16, y16, z16, sz, [0.5,0.5,0.5], 'filled', 'MarkerEdgeColor','k') scatter3(x17, y17, z17, sz, [0.9290 0.6940 0.1250], 'filled', 'MarkerEdgeColor','k') scatter3(x18, y18, z18, sz, 'r', 'filled', 'MarkerEdgeColor','k') scatter3(x19, y19, z19, sz, [0.5,0.5,0.5], 'filled', 'MarkerEdgeColor','k') scatter3(x20, y20, z20, sz, 'b', 'filled', 'MarkerEdgeColor','k') scatter3(x21, y21, z21, sz, [0.5,0.5,0.5], 'filled', 'MarkerEdgeColor','k') scatter3(x22, y22, z22, sz, 'b', 'filled', 'MarkerEdgeColor','k')
  • 68. scatter3(x23, y23, z23, sz, 'r', 'filled', 'MarkerEdgeColor','k') scatter3(x24, y24, z24, sz, [0.5,0.5,0.5], 'filled', 'MarkerEdgeColor','k') scatter3(x25, y25, z25, sz, [0.9290 0.6940 0.1250], 'filled', 'MarkerEdgeColor','k') scatter3(x26, y26, z26, sz, [0.9290 0.6940 0.1250], 'filled', 'MarkerEdgeColor','k') scatter3(x27, y27, z27, sz, [0.9290 0.6940 0.1250], 'filled', 'MarkerEdgeColor','k') scatter3(x28, y28, z28, sz, [0.9290 0.6940 0.1250], 'filled', 'MarkerEdgeColor','k') scatter3(x29, y29, z29, sz, [0.9290 0.6940 0.1250], 'filled', 'MarkerEdgeColor','k') hold off grid on xlabel('x-coordinates') ylabel ('y-coordinates') zlabel ('Floor Level') figure(2) scatter3(x1, y1, z1, sz, [0.9290 0.6940 0.1250], 'filled', 'MarkerEdgeColor','k'); hold on; scatter3(x2, y2, z2, sz, 'b', 'filled', 'MarkerEdgeColor','k') scatter3(x3, y3, z3, sz, [0.9290 0.6940 0.1250], 'filled', 'MarkerEdgeColor','k') scatter3(x4, y4, z4, sz, 'b', 'filled', 'MarkerEdgeColor','k'); scatter3(x5, y5, z5, sz, [0.9290 0.6940 0.1250], 'filled', 'MarkerEdgeColor','k') scatter3(x6, y6, z6, sz, 'r', 'filled', 'MarkerEdgeColor','k'); scatter3(x7, y7, z7, sz, 'r', 'filled', 'MarkerEdgeColor','k') scatter3(x8, y8, z8, sz, 'r', 'filled', 'MarkerEdgeColor','k') scatter3(x9, y9, z9, sz, [0.5,0.5,0.5], 'filled', 'MarkerEdgeColor','k'); scatter3(x10, y10, z10, sz, [0.5,0.5,0.5], 'filled', 'MarkerEdgeColor','k')
  • 69. scatter3(x11, y11, z11, sz, [0.9290 0.6940 0.1250], 'filled', 'MarkerEdgeColor','k') scatter3(x12, y12, z12, sz, 'r', 'filled', 'MarkerEdgeColor','k') scatter3(x13, y13, z13, sz, [0.5,0.5,0.5], 'filled', 'MarkerEdgeColor','k') scatter3(x14, y14, z14, sz, [0.9290 0.6940 0.1250], 'filled', 'MarkerEdgeColor','k') scatter3(x15, y15, z15, sz, [0.9290 0.6940 0.1250], 'filled', 'MarkerEdgeColor','k') scatter3(x16, y16, z16, sz, [0.5,0.5,0.5], 'filled', 'MarkerEdgeColor','k') scatter3(x17, y17, z17, sz, [0.9290 0.6940 0.1250], 'filled', 'MarkerEdgeColor','k') scatter3(x18, y18, z18, sz, 'r', 'filled', 'MarkerEdgeColor','k') scatter3(x19, y19, z19, sz, [0.5,0.5,0.5], 'filled', 'MarkerEdgeColor','k') scatter3(x20, y20, z20, sz, 'b', 'filled', 'MarkerEdgeColor','k') scatter3(x21, y21, z21, sz, [0.5,0.5,0.5], 'filled', 'MarkerEdgeColor','k') scatter3(x22, y22, z22, sz, 'b', 'filled', 'MarkerEdgeColor','k') scatter3(x23, y23, z23, sz, 'r', 'filled', 'MarkerEdgeColor','k') scatter3(x24, y24, z24, sz, [0.5,0.5,0.5], 'filled', 'MarkerEdgeColor','k') scatter3(x25, y25, z25, sz, [0.9290 0.6940 0.1250], 'filled', 'MarkerEdgeColor','k') scatter3(x26, y26, z26, sz, [0.9290 0.6940 0.1250], 'filled', 'MarkerEdgeColor','k') scatter3(x27, y27, z27, sz, [0.9290 0.6940 0.1250], 'filled', 'MarkerEdgeColor','k') scatter3(x28, y28, z28, sz, [0.9290 0.6940 0.1250], 'filled', 'MarkerEdgeColor','k') scatter3(x29, y29, z29, sz, [0.9290 0.6940 0.1250], 'filled', 'MarkerEdgeColor','k') scatter3(x30, y30, z30,[300],'r', 'd', 'filled', 'MarkerEdgeColor','k') %1. HE for K and A (HE33E05 & HE33E09)
  • 70. v1_1 = [x23, y23-0.2, z23]; v1_2 = [x23, y23-0.2, z19]; v1_3 = [x23, y19-0.2, z19]; v2_1 = [x23, y23-0.2, z19]; v2_2 = [x23, y19-0.2, z19]; v2_3 = [x19, y19-0.2, z19]; v1=[v1_1;v1_2;v1_3]; v2=[v2_1;v2_2;v2_3]; plot3(v1(:,1),v1(:,2),v1(:,3),'g', 'Linewidth', 2) plot3(v2(:,1),v2(:,2),v2(:,3),'g', 'Linewidth', 2) %2. HE for H01 and K (HE33E09) v3_1 = [x30, y30, z30]; v3_2 = [x30, y30, z23]; v3_3 = [x30, y23+0.2, z23]; v4_1 = [x30, y30, z23]; v4_2 = [x30, y23+0.2, z23]; v4_3 = [x23, y23+0.2, z23]; v3=[v3_1;v3_2;v3_3]; v4=[v4_1;v4_2;v4_3]; plot3(v3(:,1),v3(:,2),v3(:,3),'r', 'Linewidth', 2) plot3(v4(:,1),v4(:,2),v4(:,3),'r', 'Linewidth', 2) %3. HE for H02 and L (HE33E10) v5_1 = [x30, y30, z30]; v5_2 = [x30, y30, z24]; v5_3 = [x30, y24+0.2, z24]; v6_1 = [x30, y30, z24]; v6_2 = [x30, y24+0.2, z24]; v6_3 = [x24, y24+0.2, z24]; v5=[v5_1;v5_2;v5_3]; v6=[v6_1;v6_2;v6_3]; plot3(v5(:,1),v5(:,2),v5(:,3),'r', 'Linewidth', 2) plot3(v6(:,1),v6(:,2),v6(:,3),'r', 'Linewidth', 2) %4. HE for H03 and L (HE33E05) v7_1 = [x30, y30, z30]; v7_2 = [x30, y30, z24]; v7_3 = [x30, y24-0.2, z24]; v8_1 = [x30, y30, z24]; v8_2 = [x30, y24-0.2, z24]; v8_3 = [x24, y24-0.2, z24]; v7=[v7_1;v7_2;v7_3]; v8=[v8_1;v8_2;v8_3];
  • 71. plot3(v7(:,1),v7(:,2),v7(:,3),'r', 'Linewidth', 2) plot3(v8(:,1),v8(:,2),v8(:,3),'r', 'Linewidth', 2) hold off grid on xlabel('x-coordinates') ylabel ('y-coordinates') zlabel ('Floor Level') figure(3) scatter3(x1, y1, z1, sz, [0.9290 0.6940 0.1250], 'filled', 'MarkerEdgeColor','k'); hold on; scatter3(x2, y2, z2, sz, 'b', 'filled', 'MarkerEdgeColor','k') scatter3(x3, y3, z3, sz, [0.9290 0.6940 0.1250], 'filled', 'MarkerEdgeColor','k') scatter3(x4, y4, z4, sz, 'b', 'filled', 'MarkerEdgeColor','k'); scatter3(x5, y5, z5, sz, [0.9290 0.6940 0.1250], 'filled', 'MarkerEdgeColor','k') scatter3(x6, y6, z6, sz, 'r', 'filled', 'MarkerEdgeColor','k'); scatter3(x7, y7, z7, sz, 'r', 'filled', 'MarkerEdgeColor','k') scatter3(x8, y8, z8, sz, 'r', 'filled', 'MarkerEdgeColor','k') scatter3(x9, y9, z9, sz, [0.5,0.5,0.5], 'filled', 'MarkerEdgeColor','k'); scatter3(x10, y10, z10, sz, [0.5,0.5,0.5], 'filled', 'MarkerEdgeColor','k') scatter3(x11, y11, z11, sz, [0.9290 0.6940 0.1250], 'filled', 'MarkerEdgeColor','k') scatter3(x12, y12, z12, sz, 'r', 'filled', 'MarkerEdgeColor','k') scatter3(x13, y13, z13, sz, [0.5,0.5,0.5], 'filled', 'MarkerEdgeColor','k') scatter3(x14, y14, z14, sz, [0.9290 0.6940 0.1250], 'filled', 'MarkerEdgeColor','k') scatter3(x15, y15, z15, sz, [0.9290 0.6940 0.1250], 'filled', 'MarkerEdgeColor','k') scatter3(x16, y16, z16, sz, [0.5,0.5,0.5], 'filled', 'MarkerEdgeColor','k') scatter3(x17, y17, z17, sz, [0.9290 0.6940 0.1250], 'filled', 'MarkerEdgeColor','k') scatter3(x18, y18, z18, sz, 'r', 'filled', 'MarkerEdgeColor','k') scatter3(x19, y19, z19, sz, [0.5,0.5,0.5], 'filled', 'MarkerEdgeColor','k')
  • 72. scatter3(x20, y20, z20, sz, 'b', 'filled', 'MarkerEdgeColor','k') scatter3(x21, y21, z21, sz, [0.5,0.5,0.5], 'filled', 'MarkerEdgeColor','k') scatter3(x22, y22, z22, sz, 'b', 'filled', 'MarkerEdgeColor','k') scatter3(x23, y23, z23, sz, 'r', 'filled', 'MarkerEdgeColor','k') scatter3(x24, y24, z24, sz, [0.5,0.5,0.5], 'filled', 'MarkerEdgeColor','k') scatter3(x25, y25, z25, sz, [0.9290 0.6940 0.1250], 'filled', 'MarkerEdgeColor','k') scatter3(x26, y26, z26, sz, [0.9290 0.6940 0.1250], 'filled', 'MarkerEdgeColor','k') scatter3(x27, y27, z27, sz, [0.9290 0.6940 0.1250], 'filled', 'MarkerEdgeColor','k') scatter3(x28, y28, z28, sz, [0.9290 0.6940 0.1250], 'filled', 'MarkerEdgeColor','k') scatter3(x29, y29, z29, sz, [0.9290 0.6940 0.1250], 'filled', 'MarkerEdgeColor','k') v1_1 = [x23, y23-0.2, z23]; v1_2 = [x23, y23-0.2, z19]; v1_3 = [x23, y19-0.2, z19]; v2_1 = [x23, y23-0.2, z19]; v2_2 = [x23, y19-0.2, z19]; v2_3 = [x19, y19-0.2, z19]; v1=[v1_1;v1_2;v1_3]; v2=[v2_1;v2_2;v2_3]; plot3(v1(:,1),v1(:,2),v1(:,3),'g', 'Linewidth', 2) plot3(v2(:,1),v2(:,2),v2(:,3),'g', 'Linewidth', 2) hold off grid on xlabel('x-coordinates') ylabel ('y-coordinates') zlabel ('Floor Level')
  • 190. Hetran - (to simulate an heat exchanger), The B-JAC input file name that contains the heat exchanger specification., The Aerotran block is the interface to the B-JAC Aerotran program for designing and simulating air-cooled heat exchangers