Anda di halaman 1dari 6

TUGAS KOMPUTASI PROSES

xlabel('Waktu(t),menit')
ylabel('Konsentrasi Garam (Cout),kg/L')

NAMA

: RISKA RIYA WATI

NIM

: 11 614 034

KELAS

: V-B

DOSEN PENGAJAR

: RAMLI YUSUF, S.T.,


M.ENG

title('Konsentrasi Garam Vs Waktu')


grid
disp('Hasil Hitungan:')
disp('')
disp('-----------------------------------')
disp('@ t

@ Cout

@ V @')

disp('-----------------------------------')
Main Program
clc

disp(['',num2str([t,Cout,V])])
disp('-----------------------------------')

global F L V0 C0
F=15;L=10;C0=2.5;V0=750;VT=2000;

Sub Program

t=[0:2:(VT-V0)/(F-L)];V=[V0+(F-L)*t]';

function dcdt=sub_ema(t,Ca)

Ca=[0.1];

global F L V0 C0

[t,Cout]=ode23(@sub_ema,t,Ca);

V=V0+(F-L)*t;

plot(t,Cout,'r-')

dcdt1=F*(C0-Ca);
dcdt=dcdt1/V;

Hasil Hitungan:

38

1.2811937

940

-----------------------------------

40

1.3192827

950

@t

42

1.3558086

960

44

1.3908637

970

46

1.4245092

980

@ Cout

@V@

----------------------------------0

0.1

750

0.19349731

760

48

1.456806

990

0.28220329

770

50

1.487815

1000

0.36641681

780

52

1.5175971

1010

0.44642984

790

54

1.5462131

1020

10

0.52248785

800

56

1.5737335

1030

12

0.59483171

810

58

1.6002255

1040

14

0.66370448

820

60

1.6257277

1050

16

0.7292981

830

62

1.6502784

1060

18

0.79179536

840

64

1.6739156

1070

20

0.85138333

850

66

1.6966775

1080

22

0.90825075

860

68

1.7186021

1090

24

0.96253671

870

70

1.7397276

1100

26

1.0143744

880

72

1.7600931

1110

28

1.0638969

890

74

1.7797519

1120

30

1.1112455

900

76

1.7987359

1130

32

1.156556

910

78

1.8170676

1140

34

1.1999227

920

80

1.8347696

1150

36

1.2414378

930

82

1.8518644

1160

84

1.8683745

1170

134

2.1470372

1420

86

1.8843224

1180

136

2.1543998

1430

88

1.8997309

1190

138

2.1615562

1440

90

1.9146222

1200

140

2.1685138

1450

92

1.9290191

1210

142

2.1752797

1460

94

1.9429511

1220

144

2.1818634

1470

96

1.9564479

1230

146

2.1882743

1480

98

1.9695226

1240

148

2.194517

1490

100

1.9821878

1250

150

2.2005958

1500

102

1.9944562

1260

152

2.2065152

1510

104

2.0063405

1270

154

2.2122795

1520

106

2.0178532

1280

156

2.2178933

1530

108

2.0290071

1290

158

2.2233608

1540

110

2.0398147

1300

160

2.2286866

1550

112

2.0502888

1310

162

2.2338749

1560

114

2.060442

1320

164

2.2389303

1570

116

2.070287

1330

166

2.2438571

1580

118

2.0798371

1340

168

2.24866

120

2.0891121

1350

170

2.2533455

1600

122

2.0981226

1360

172

2.2579171

1610

124

2.1068757

1370

174

2.2623778

1620

126

2.1153788

1380

176

2.2667302

1630

128

2.1236392

1390

178

2.2709771

1640

130

2.1316642

1400

180

2.2751214

1650

132

2.1394611

1410

182

2.2791657

1660

1590

184

2.2831129

1670

218

2.3378726

1840

186

2.2869657

1680

220

2.3404883

1850

188

2.2907269

1690

222

2.3430488

1860

190

2.2943992

1700

224

2.3455552

1870

192

2.2979855

1710

226

2.3480087

1880

194

2.3014892

1720

228

2.3504107

1890

196

2.3049136

1730

230

2.3527622

1900

198

2.3082607

1740

232

2.3550644

1910

200

2.3115323

1750

234

2.3573186

1920

202

2.31473

236

2.359526

1930

204

2.3178558

1770

238

2.3616878

1940

206

2.3209115

1780

240

2.3638051

1950

208

2.3238987

1790

242

2.3658792

1960

210

2.3268194

1800

244

2.3679113

1970

212

2.3296753

1810

246

2.3699026

1980

214

2.3324683

1820

248

2.371854

1990

216

2.3352001

1830

250

2.3737666

2000

1760

Main Program

Sub Program

clc

function dcdt=sub_ema2(t,Ca)

global F L V0 C0

global F L V0 C0

F=30;L=40;C0=0.75;V0=1000;VT=1500;

V=V0+(F-L)*t;

t=[0:5:(VT-V0)/(F-L)];V=[V0+(F-L)*t]';

dcdt1=F*(C0-Ca);

Ca=[0.03];

dcdt=dcdt1/V;

[t,Cout]=ode23(@sub_ema2,t,Ca);
plot(t,Cout,'r-')
xlabel('Waktu(t),menit')
ylabel('Konsentrasi Garam (Cout),kg/L')
title('Konsentrasi Garam Vs Waktu')
grid
disp('Hasil Hitungan:')
disp('')
disp('-----------------------------------')
disp('@ t

@ Cout

@ V @')

disp('-----------------------------------')
disp(['',num2str([t,Cout,V])])
disp('-----------------------------------')

Main Program

Sub Program

clc

function dcdt=sub_ema2(t,Ca)

global F L V0 C0

global F L V0 C0

F=30;L=40;C0=0.75;V0=1000;VT=1500;

V=V0+(F+L)*t;

t=[0:5:(VT+V0)/(F+L)];V=[V0+(F+L)*t]';

dcdt1=F*(C0+Ca);

Ca=[0.03];

dcdt=dcdt1/V;

[t,Cout]=ode23(@sub_ema2,t,Ca);
plot(t,Cout,'r-')

Hasil Hitungan

xlabel('Waktu(t),menit')

Hasil Hitungan:

ylabel('Konsentrasi Garam (Cout),kg/L')

-----------------------------------

title('Konsentrasi Garam Vs Waktu')

@t

grid

-----------------------------------

disp('Hasil Hitungan:')

0.03

disp('')

0.1326922

disp('-----------------------------------')

10

0.22512614

1700

disp('@ t

15

0.30783888

2050

disp('-----------------------------------')

20

0.38137239

2400

disp(['',num2str([t,Cout,V])])

25

0.44626432

2750

disp('-----------------------------------')

30

0.50305717

3100

35

0.55228921

3450

@ Cout

@ V @')

@ Cout

@V@

1000
1350

-----------------------------------

Anda mungkin juga menyukai