for this purpose , a multitude of industrial codes dedicated to the simulation of the engines is available on market ( gt - power , diesel - rk , ricardo - wave , fluent , etc . ) . these codes , despite the fact that they can be useful for predicting engine performances , are expensive for third world 's university laboratory and their source codes are practically impossible to modify to implement new model or functions . when modeling compression engine different approaches can be used with different level of complexity , such as thermodynamic 0d models , quasi - dimensional multizone models , and computational fluid dynamics ( cfd ) models [ 1 , 2 ] . for this study a quasi - dimensional approach was selected ; these models allows to compute efficient , economic , and fast calculations of engine performances as a function of different engine parameters . using these types of models we can compute the different stages of a diesel engine cycle as in compression , injection , ignition delay , and combustion and exhaust stage . the evaluated models in this study will be evaluated in terms of accuracy and speed of calculation . for both models the fuel spray characteristic is modeled using the phenomenological model of razleytsev   and lyshevsky . that model has been used and implemented in the so called rk - model   and its results . the main aim of this part of the model is to determine the finesse of the atomized fuel from the injector nozzle . the finesse of atomization is characterized by the calculated sauter mean diameter of fuel droplet . first the average outflow velocity of fuel from the injector is calculated in m / s by 
 ( 1)u0=24qcrpm0.75fdc2icinj , 
 where qc is the cyclic fuel supply in kg / cycle ; rpm is the crankshaft rotational speed in rpm ; f is the density of the fuel in kg / m ; dc is the diameter of the injector hole in mm ; inj is the duration of injection in degree of rotation of the crankshaft . the criterion m characterizing the relationship between the surface tension force , inertia , and viscosity is calculated as follows : 
 ( 2)m=f2(dcff ) , 
 where f is the coefficient of dynamic viscosity of the fuel at a temperature of 323  k in pas ; f is the coefficient of surface tension of the fuel at a temperature of 323  k in n / m . weber number characterizing the relationship between surface tension force and inertia is determined as 
 ( 3)we = u02fdcf . the density of the charge at the end of the compression before the tdc is calculated as follows : 
 ( 4)air=airmvc , 
 where air = 28.9  kg / kmole is the molecular mass of air ; air is the density of air . finally the sauter mean diameter of the atomized fuel is calculated in micron by 
 ( 6)d32=106e32dcm0,0733(we)0,266 , 
 where e32 is an empirical factor depending on designs of the injector , whose recommended value is 1.7 . at this point the finesse of the pulverized fuel is determined and we can see it mainly depends on physical properties of the fuel such as viscosity and density . the next step of the model is to determine the kinetic of combustion of the atomized fuel , whose kinetic will be dependent of the earlier found sauter mean diameter . this part of the elaborated model will permit us to determine parameters of the process such as the evaporation rate of the atomized fuel , its ignition delay , and the duration of combustion . pressure in the cylinder at the end of the compression before the tdc is 
 ( 7)pc = p01,37 , 
 where p0 is the reference pressure which in our case corresponds to the inlet manifold pressure . we then determine the theoretical constant of evaporation of the fuel by 
 ( 8)bit = kd322 , 
 where k = 1/pc  10 is the evaporation constant related to cylinder pressure in m / s 
 ( 9)ev = az(bit0,6 ) , 
 where az is a constant characterizing the duration of evaporation of large drops in diesel engine in 1/s and its value is given as  2.4 in   but kuleshov   used it as weight coefficient that can be varied in order to match experimental data ;  is the coefficient of excess air . the full duration of combustion is then calculated as 
 ( 10)z=injid+6rpmev , 
 with i d being the ignition delay computed using the formula of hardenberg and hase   in both models 
 ( 11)id=[0.36 + 0.22up ]  exp[ea(1rtimnc1117190)+(21.2pimnc12.4)0.63 ] . the value of the apparent activation energy ea in this correlation is given by ea = 618840/(cn + 25 ) ; however , this value was computed for the particular experiment reported in   and needs to be corrected in order to be used for different experimental conditions . in order to match experimental ignition delay values , especially for biodiesel fuel , the method proposed by aghav et al . , where the value 618840 can be varied from the initial 618840 to higher values , was used . for the two models , we used a double wiebe function   to model the heat release rate and the woschni   law for heat transfer simulation . this method is a single zone model based on the first law of thermodynamics , mass conservation , and ideal gas laws . following that we can write the governing equation for calculating variation of in - cylinder pressure with respect to crank angle as 
 ( 12)dqinjdqlossd=1pdvd+11vdpd. the krieger and bormann algorithm is based on polynomial fitting constant to compute the adiabatic index ( ratio of specific heat ) as function of crank angle . the internal energy of combustion products at equilibrium for a reaction between air and a hydrocarbon cnh2n is given as 
 ( 13)u = ab+ucorr , 
 where 
 ( 14)a = a1t+a2t2+a3t3+a4t4+a5t5;b = b0+b1t+b2t2+b3t3+b4t4;ucorr = cuexp(d + e + fpt ) is the correction factor for the internal energy accounting for dissociation 
 ( 15)d=d0+d11+d33;e=(e0+e11+e33)t;fpt=[f0+f11+f33+(f4+f51)t]log(f6p ) . the gas constant is computed as 
 ( 16)r=0.287 + 0.020+rcorr , 
 with rcorr = crexp(r0log + ( ( r1 + r2/t ) + r3log(f6p))/ ) . the adiabatic index ( ratio of specific heat ) is computed as 
 ( 17)=1+rcv , 
 with cv = u/t . this model is a two - zone thermodynamic model where the thermodynamics properties of combustion products and fuel are determined using polynomial curve fitted data from the chemkin   or janaf   tables and are given by 
 ( 18)cpr = a1+a2t+a3t2+a4t3+a5t4;hrt = a1+a22t+a34t2+a44t3+a55t4+a61t;sr = a1lnt+a2t+a32t2+a43t3+a54t4+a7 . the in - cylinder pressure and temperature of burned and unburned gases derivative can be calculated following ferguson 's algorithm [ 13 , 16 ] by 
 ( 19)dpd=a+b+cd+e;dtbd=h(b2/2 + 4v / b)x1/2tbtwvmcpbx  + vbcpb(lnvblntb)(dpd )  + huhbxcpb[dxdxx2c];dtud=h(b2/2 + 4v / b)x1/2tutwvmcpux  + vucpu(lnvulntu)(dpd )  + huhbxcu[dxdxx2c ] , 
 where 
 ( 20)a=1m(dvd+vc);b = h(dv / d+vc/)m  [vbcpblnvblntbx1/2tbtwtb  + vucpulnvulntu(1x1/2)tutwtu];c=vbvudxdvblnvblntbhuhbcpbtb[dxd(xx2)c];d = x[vb2cpbtb(lnvulntu)2+vbplnvblnp];e=1x[vu2cputu(lnvulntu)2+vuplnvulnp ] . the equations of state of the mixture are given by 
 ( 21)dud=(cppvtlnvlnt)dtd(v(lnvlnt+lnvlnp))dpd;dvd=vtlnvlntdtdvplnvlnpdpd;dsd=(cpt)dtdvtlnvlntdpd , 
 with ( h/t)p = cp . the combustion products are evaluated assuming that they are in equilibrium at a given temperature and pressure . using olikara and borman   method we find combustion products mole fractions and we can then find the thermodynamic property of the mixture as in entropy , specific volume , enthalpy , and internal energy . considering the combustion reaction of a hydrocarbon 
 ( 22)chon+as(o2 + 3.76n2 )  n1co2+n2h2o+n3n2+n4o2+n5co  + n6h2+n7h+n8o+n9oh+n10no 
 we then have 
 ( 23)c:=(y1+y5)tm;h:=(2y2 + 2y6+y7+y9)tm;o:+2as=(2y1+y2 + 2y4+y5+y8+y9+y10)tm;n:+23.76as=(2y3+y10)tm;yi is the mole fraction of the ith combustion specie at equilibrium and tm the total number of mole . following that we can write i=1yi  1 = 0 . the system of equation comprises 10 unknowns and 4 equations ; we then need 6 complementary equations in order to be able to solve the system . for that we introduce six gas phase equilibrium reactions constant 
 ( 24)12h2hkp,1=y7p1/2y61/212o2okp,2=y8p1/2y41/212h2 + 12o2ohkp,3=y9y41/2y61/212o2 + 12n2nokp,4=y10y41/2y31/4h2 + 12o2h2okp,5=y2y41/2y6p1/2co+12o2co2kp,6=y1y41/2y5p1/2 
 with p representing the pressure at which the reaction occurs in atmosphere . the reactions constants are computed using the following expression :  logkp , i = alog(t/1000)+b / t+c+dt+et2with the constants a , b , c , d , and e given in table 1 . with the constants a , b , c , d , and e given in table 1 . we find ourselves with a set of 11 nonlinear equations with 11 unknowns which are solved using newton raphson iteration . the method was implemented using a modified matlab script provided by   to insert new subroutines of the fuel injection and pulverization parameters as well as the biodiesel constant and the double wiebe function of heat release rate . for validation purposes the two models were implemented and compared with experimental results from , the engine characteristics are given in table 2 where fuel injection timing refers to the actual crankshaft angle at which fuel starts coming out of the nozzle . two sets of calculation were performed , one for diesel fuel and the second for biodiesel fuel . the characteristics of diesel and biodiesel fuel were taken from [ 17 , 18 ] for method 1 . to simulate biodiesel combustion for method 2 we used methyl butanoate thermodynamic data as surrogate . the experimental imep ( indicative mean effective pressure ) was not given in the experimental work reported by , it was therefore evaluated using the experimental pressure trace by integrating the area under the p - v diagram using the trapezoidal rule , and the formula used was then 
 ( 25)imep=vsvfpdvvd=i=1n(vi+1vi)(pi+pi+1)2 
 with vd being the displaced volume of the engine , in m. simulations were computed at rated engine speed and the pressure plot was made and compared with the experimental results ( figures 1 , 2 , 3 , and 4 ) . both models evaluated the combustion duration at 72 cad and 87 cad , respectively , for diesel and biodiesel fuel . this can be explained by the fact the viscosity and density of biodiesel are significantly higher than that of conventional diesel , which tends to generate pulverized droplets with higher mean diameter that tend to burn slower . the pressure traces obtained from the two model show that they reproduce well the in cylinder pressure for both type of fuels in the given engine configuration . it can be seen that the maximum pressure decreases when biodiesel fuel is used for the two simulations , which is equally the trend observed experimentally and in other works such as [ 1922 ] . this was expected since biodiesel fuel has higher oxygen content ; the combustion coefficient tends to be higher in that case . another trend observed in the pressure trace is that the cylinder pressure tends to be under predicted during the exhaust phase , especially for biodiesel fuel ; this could be explained by the experimental conditions uncertainty . the values of computed parameters are given in table 3 in terms of maximum pressure , imep , maximum pressure occurrence , and ignition delay . in order to have an evaluation of the accuracy of both model , the mean relative error was calculated according to the four parameters given above , it was then observed that the first model gave a mean relative error of 18% while the second one had given a mean relative error of 11% . another assessment made for the two models was the speed of computation ; the first model was computed in 6 seconds , while the second took about 40 to 45 second to run completely on 2  ghz dual core pentium personal computer . with this assessment , we can say that the first model could be suitable for real time engine control while the second could be used for engine 's design and also emission evaluation since it computes in cylinder pressure by determining combustion species states at each time step . another development that could be made for the second model can be the implementation of the zeldovich mechanism [ 1 , 11 ] to compute nitric oxide emissions . the aim of the present study was to develop and implement two different models for diesel engine fuelled on biodiesel based on tabulated chemistry . the two models showed good predictability of engine performance , with the second approach giving a better accuracy . the first approach was faster to compute the cylinder pressure than the second and was found more suitable for engine monitoring and control while the second one was found better suited for engine design and emission prediction .
the present work presents the comparative simulation of a diesel engine fuelled on diesel fuel and biodiesel fuel . 
 two models , based on tabulated chemistry , were implemented for the simulation purpose and results were compared with experimental data obtained from a single cylinder diesel engine . 
 the first model is a single zone model based on the krieger and bormann combustion model while the second model is a two - zone model based on olikara and bormann combustion model . 
 it was shown that both models can predict well the engine 's in - cylinder pressure as well as its overall performances . 
 the second model showed a better accuracy than the first , while the first model was easier to implement and faster to compute . 
 it was found that the first method was better suited for real time engine control and monitoring while the second one was better suited for engine design and emission prediction .