Performance Simulation of Central AC Plant Using Newton - Raphson Mehod

You might also like

Download as pdf or txt
Download as pdf or txt
You are on page 1of 7

xperi nent-1

Newton- Raphson Mehod


ket ys cansider h the follaing tree nn-Imedr
equahons are o be sclved tor the tee wkrawn
Variabes ,Y,~
(1,7) = 0

t (x)a0
invclyes he tlowinq
lhen he procedure 1o their sgluhon
Steps

Step 1- vaue5 ot the wknojwn variables sa


Assuretrial

Srep 2 values in akave eg detetmige


Subsi tuig he rial values dre cornet
h e ria
the value5 of f Nl be zeTO|t not, then the
fhen the three tuncHons ePesent spme errop
numerco) yalues Wil
Step 3 dtilerenhals gt the tueHons
parHcd
Detet mie the nkown hjables A euatee the
Wih respec} to e
19regate errorS aytolloNS
A
A A
Where Ax, Ay,Ax Tepieenthe enors in the rial vakes
Ot the unkndnin Vapiabes eg
Ax-a,x ex
Where Tepresenls he eno15 in he trio yalues_od
he unkpown yiabes
Step
he aove abe soled 3imuforeauslytor the
can
ITOYaesAx, Ay,A7 L the hew CoTect yalues are
ound A5 tollOWs
&Ar

eCalculaions, ahe epeafed With the rew yalues Lui


tuctions ,t2,tz dc kcnors Afi,At2,A et dee
Clase fo kero

umple aa
The pertoance daa ot a chilled water central
ot opraton i5 qiven beo-
Condifioninq plant in ip ane
Condenser
Coolirq wojer
CUA) 20,tbo Nc
How a j e L m - 8 05 kq/5

yapo fafor CUA),=23,840W'C


Chilled wate How 7ade mh72 ka/s
CompTeE5O
Refhiqeraling capacity 6,30 +2910(t5)-I165
C43) w
oNer consunphon W= 13,490l65t350hW
If the colinq naderentes the Condenser at 30t& chilled
eers the Claporabr d jc , tind the fenperatueS
Ncver e Chilled
of He colintoner earing tte Condenger
jader eainq the eaporajor t e jetigeratiy caraa
poneT Consunphion ot the plast
mathemathcad exprezsion to owler, Cooling & chilled wster
Ihe
emperatures tktketigratnq capaih
N= Q - Q -05}C487)C}z0)N-72(4187)0-1,)
4 S7
2700 A3-05
tw
t 30Cz0) |1-e 402x
-Q)-4)L-E3,84OA1 4187
2x4)57

Q 72x487 ()-th
The SimPlifed expessionSare
N =38705tw t30,46th-342,156
-W =O
N = 0.459+16 23
t =0541t t 4:99
3316l0Z0146th
lhe tunchons can be, wntfen a5,
= 33705tyt 30146t,-)342756-h =6
=0459+l623- t 0
541t0t49-t0
= 33]6)0-3046t,-3
Where M & are Seperadeydetingd in tem5 ot tk
The independent Lunkron riae5 are tyto,tu&t
Azsune ha valyes of variable5 a5 tol)onJs
40C
330

W l549o- 165(3)t 350(40) - 30 985w

o U6,3o6 +2910(3-5)65 (40-45) =|3975


ot
SuhcHtuhir thee yabes we dotain Calculated Values
unctonkidi aaeqade emors
80,600 t - 0 = - %0600
= 159
= 063 4f=0-159
A= tz-0 -O63
-
36,75 At T-0 36,75
Ditteienti alinq thetucjions we
350 , N165

I65 y 210
tk to
-33,7052h oh-Z50,hl5

, 0 H-0 4 , t

-0 - 0 0 54
t to
Z6,146 d 5t4290
Otp

Seing p ekpiessions or agareqaBe ciToI5, We have


Af 337O5 4h t34146 - 3 5 0 t - ||65A-80 60CC
A -4w t04594t, - |59
A t z = - 4 , + O 5 4 1 Ato = O 6 3

Af4= -30,146 4th -1654t -290 41, 36,759

Solving these taur eguahans simfarepusly Ne obton


obt
oT
tor etas in ial VaJue3 coeck vales at arlables
Q5 toldws,
Ato
Ato =-0-8gC ,to 3+0 89
= 89' 3

4 +0 4/'C,tu = 40-04 39 59% =

tw | 4 C , bw =33 + 4 = 344'C

Aty
Al -H12'C ,th- 6 -H2 =712'C

N=13,490 + ))65 C 89)+350 C39-539) =27, 794 W


Q 6300 -29d 3g9-5) -})65 C3459-43) =
V7,O43
he tevised values ote turchons become,
354)-O,=0 ,t=-72
Program for newton
Raphson non linear Function
function [fval.jac]=lorenzSyNR(X)
x=X(1);
y=X(2);
z=X(3);
p-X(4);
fval(1,1)=33705 X(1)+30146*X(2)-134275-(13490+1165*X(3)+350*X(4)
fval(2,1)=0.459*X(4)+16.23-X(1)
fval(3,1)=0.547*X(3)-+4.99-X(2)
fval(4,1)=331610-30146*X(2)-(116300+2910*(X(3)-5)-1165*(X(4)-43)
jac=[33705,30146,-350,-1165;
-1,0,0.456,.0;
0-1,0,0.547:
0,-30146,1165,-2910]
% Subsequent Loop Running
% Initial value
X0=[33;6,3:40]
maxlter=5;
toix=0.01;
X=X0
Xold-X0
for i-1 maxlter
fjl=lorenzSyNR(X)
Q=invg):
m-(Q*1):
X=X-m;
Xold-X
err(:,i)=abs(X-Xold)
ifferr(:i)<tolx)
break;
end
end
Output of the Program

X0= fval =

33 1.0e+06 *

6
3
.1279
40 0.0000
0.0000
X 0.0368

33 f=
6
3 1.0e+06 *

40
1.1279
Xold= 0.0000
0.0000
33 0.0368
6

40
1.0e+04 *

fval=
3.3705 3.0146-0.0350 -0.1165
1127881 -0.0001 0 0.0000
-0.0001 0 0.0001
0 -3.0146 0.1165 -0.2910
fval

Xold =
1.0e+06

1.1279 -0.89
0.0000 0.41
-1.4
-1.12
fval

1.de+06 * err

I.1279
0.0000
0
0.0000
0

You might also like