88Appendix D MATLAB program scripts%% Script file to determine the performance <strong>of</strong> a fuel inducted engine% based on a (user-specified) arbitrary heat release pr<strong>of</strong>ile as a% function <strong>of</strong> crank angle.% Method closely follows that <strong>of</strong>:% Ferguson, C.R., 1986, "Internal Combustion Engines", Wiley.%********************************************************************% input:% enginedata.m - this is another script file that defines all <strong>of</strong> the% relevant engine parameters and operating conditions.% output:% ahrind.mat - this file contains all <strong>of</strong> the variables. For plotting% the results, see the example script file plotresults.m%********************************************************************D-1. M-file for ahrind.mtimestart=cputime;global Xv Tv Pr b stroke eps r Cblowby f fueltype airscheme phi thetas thetabthetaWa thetaperiod RPM omega heattransferlaw hcu hcb Tw theta1 Vtdc Vbdcmass1 p1 T1 V1% load the engine parameters and initial conditionsenginedata[alpha,beta,gamma,delta,Afuel]=fueldata(fueltype);% mole fractions and molecular weight <strong>of</strong> fuel-aireps1=0.210/(alpha+0.25*beta-0.5*gamma);fuel=eps1*phi/(1+eps1*phi);o2=0.21/(1+eps1*phi);n2=0.79/(1+eps1*phi);Mfa=fuel*(12.01*alpha+1.008*beta+16*gamma+14.01*delta)+32*o2+28.02*n2;Mf=fuel*(12.01*alpha+1.008*beta+16*gamma+14.01*delta);% mass <strong>of</strong> fuel and air in the cylindermfuel=eps1*phi*(12.01*alpha+1.008*beta+16*gamma+14.01*delta);mair=32*0.21+28.02*0.79;mfpma=mfuel/mair;massair=mass1/(mfpma+1);massfuel=mass1-massair;%%%%%%%%%%%%%%%%%%%% mass <strong>of</strong> <strong>water</strong> <strong>injection</strong>m<strong>water</strong>=eps1*phi*Xv*18.05;mwpmf=m<strong>water</strong>/mfuel;mass<strong>water</strong>=massfuel*mwpmf;%%%%%%%%%%%%%%%%%%%%%% Total mass <strong>of</strong> <strong>water</strong> <strong>injection</strong>massT=mass1+mass<strong>water</strong>;mass1=mass1;massair=massair;massfuel=massfuel;
mass<strong>water</strong>=mass<strong>water</strong>;switch heattransferlawcase 'Woschni'if (abs(hcu) > 10)|(abs(hcb) > 10),warning('Woschni model with weighting factor > 10')endend% integration parametersdtheta=1*pi/180;options=odeset('RelTol',1e-3);% integration during compression phase%disp(['integrating over the compression phase']);[thetacomp,pTuWQlHl]=ode45('RatesComp',[-pi:dtheta:thetas],[p1 T1 0 0 0],options);%specification <strong>of</strong> initial conditions at start <strong>of</strong> combustion phase b - beginning <strong>of</strong>combustionpb=interp1(thetacomp,pTuWQlHl(:,1),thetas);Tub=interp1(thetacomp,pTuWQlHl(:,2),thetas);Tbb=Tadiabatic(pb,Tub,phi,f,fueltype,airscheme);Wb=interp1(thetacomp,pTuWQlHl(:,3),thetas);Qlb=interp1(thetacomp,pTuWQlHl(:,4),thetas);Hlb=interp1(thetacomp,pTuWQlHl(:,5),thetas);% integration during combustion phase%disp(['integrating over the combustion phase']);[thetacomb,pTbTuWQlHl1]=ode45('RatesComb', ...[thetas:dtheta:thetas+thetab],[pb Tbb Tub Wb Qlb Hlb],options);pp=interp1(thetacomb,pTbTuWQlHl1(:,1),thetas+thetab);Tbp=interp1(thetacomb,pTbTuWQlHl1(:,2),thetas+thetab);Wp=interp1(thetacomb,pTbTuWQlHl1(:,4),thetas+thetab);Qlp=interp1(thetacomb,pTbTuWQlHl1(:,5),thetas+thetab);Hlp=interp1(thetacomb,pTbTuWQlHl1(:,6),thetas+thetab);% integration during period angle before <strong>water</strong> <strong>injection</strong> phase%disp(['integrating over the period angle before vapor <strong>injection</strong> phase']);[thetaperi,pTbWQlHl1p]=ode45('Ratesexp', ...[thetas+thetab:dtheta:thetas+thetab+thetaperiod],[pp Tbp Wp Qlp Hlp],options);%specification <strong>of</strong> start <strong>of</strong> <strong>water</strong> <strong>injection</strong> phase w - beginning <strong>of</strong> <strong>water</strong> <strong>injection</strong>pw=interp1(thetaperi,pTbWQlHl1p(:,1),thetas+thetab+thetaperiod);Tbw=interp1(thetaperi,pTbWQlHl1p(:,2),thetas+thetab+thetaperiod);Ww=interp1(thetaperi,pTbWQlHl1p(:,3),thetas+thetab+thetaperiod);Qlw=interp1(thetaperi,pTbWQlHl1p(:,4),thetas+thetab+thetaperiod);Hlw=interp1(thetaperi,pTbWQlHl1p(:,5),thetas+thetab+thetaperiod);% Initial condition molar <strong>water</strong> <strong>injection</strong>-fuel ratiosavefile = 'Xdata.mat';Xm = 0;save(savefile,'Xm')% integration during <strong>water</strong> <strong>injection</strong> phase%disp(['integrating over the <strong>water</strong> <strong>injection</strong> phase']);89
- Page 1 and 2:
ANALYSIS OF WATER INJECTION INTO HI
- Page 3 and 4:
Thesis CertificateThe Graduate Coll
- Page 5 and 6:
ชื่อ : นายปรม
- Page 7 and 8:
TABLE OF CONTENTSPageAbstract (in E
- Page 9 and 10:
LIST OF TABLESTablePage3-1 Solution
- Page 11 and 12:
LIST OF FIGURES (CONTINUED)FigurePa
- Page 13 and 14:
LIST OF ABBREVIATIONS, SYMBOLS AND
- Page 15 and 16:
CHAPTER 1INTRODUCTION1.1 Background
- Page 17 and 18:
31.6.6 Water injected is assumed to
- Page 19 and 20:
6for these working fluid models can
- Page 22 and 23:
CHAPTER 3METHODOLOGY FOR ANALYSIS O
- Page 24 and 25:
11perform the necessary calculation
- Page 26 and 27:
13h b P T w−0.2 0.8 −0.55 0.8=
- Page 28 and 29:
15the procedure required Nitrogen(
- Page 30 and 31:
171N22 NEq.3-461 1O+2N2 NOEq.3-472
- Page 32 and 33:
19∂y1 cy ∂y1 cy ∂y 1 c ∂y 1
- Page 34 and 35:
211/2( cy )∂y ∂∂c ∂y∂T
- Page 36 and 37:
23[ A][ ∂y/ ∂ P] + [ ∂f / ∂
- Page 38 and 39:
25⎛ • • •ln ln ⎞⎛⎞( )
- Page 40 and 41:
27( θ= −π)θ>θ bθ>θ W( θ=π
- Page 42 and 43:
CHAPTER 4RESULTS AND DISCUSSIONThis
- Page 44 and 45:
31FIGURE 4-1 Comparison of an actua
- Page 46 and 47:
33FIGURE 4-4 Schematic of the port
- Page 48 and 49:
35Temperature (K)250023002100190017
- Page 50 and 51:
37cylinder temperature. So, a more
- Page 52 and 53: 39Thermal efficiency (%)43424140393
- Page 54 and 55: 41Theoretically, the high useful co
- Page 56 and 57: 43Thermal efficiency (%)46454443424
- Page 58 and 59: 45injection-fuel ratio increases gr
- Page 60 and 61: 47Thermal efficiency (%)44434241403
- Page 62 and 63: 49When considering relative tempera
- Page 64 and 65: 51Temperature (K)240021001800150012
- Page 66 and 67: 53When considering relative tempera
- Page 68 and 69: 55Temperature (K)220019001600130010
- Page 70 and 71: CHAPTER 5CONCLUSIONS AND SUGGESTION
- Page 72 and 73: REFERENCES1. Ricardo, H.R. The High
- Page 74: APPENDIX ADerivative equations of i
- Page 78 and 79: 64TABLE A-3 Curve fit coefficients
- Page 80 and 81: 66TABLE A-5 Curve fit coefficients
- Page 82 and 83: 68The following is the derivative v
- Page 84 and 85: 70From the definition of entropyh =
- Page 86 and 87: 72• ⎛ ⎞ • ⎛Tb∂u •b∂
- Page 88 and 89: 74• ⎛1 ⎞ •∂u ⎛∂ ∂
- Page 90 and 91: 76⎛ • • •ln ln ⎞⎛⎞( )
- Page 92 and 93: 78The following is the derivative v
- Page 94 and 95: 80From the definition of entropy h
- Page 96 and 97: 82• ⎛ Tb u ⎞ • • ⎛bmTb
- Page 98 and 99: 84• ⎛1 ⎞ • •∂u ⎛ ⎞
- Page 100 and 101: 86• • • ⎛ u ⎞bmb( hW ub)
- Page 104 and 105: 90[thetawater,pTbWQlHl2]=ode45('Rat
- Page 106 and 107: 92-0.69353550E-14 -0.14245228E+05 0
- Page 108 and 109: 940.21*(1-phi) 0 0]';dcdT=0;else %
- Page 110 and 111: 96dfdp=zeros(4,1);dYdT=zeros(11,1);
- Page 112 and 113: 98dcdT(1)=-dKdT(1)*sqrt(patm)/K(1)^
- Page 114 and 115: 100Iter=Iter+1;[hb,u,v,s,Y,cp,dlvlT
- Page 116 and 117: 102yprime(2)=-Const1/cpb/x*Qconvb+v
- Page 118 and 119: 104masswaterin=massfuel*mwpmf;% Tot
- Page 120 and 121: 106savefile = 'Volume.mat';RTWV=RTW
- Page 122 and 123: 108p=pTarray(:,1);T=pTarray(:,2);hc
- Page 124 and 125: 110gamma_der_tautau = 0;for i = 1 :