online adaptive residual mass estimation in a ...annastef/papers/online... · variations, and...

9
ONLINE ADAPTIVE RESIDUAL MASS ESTIMATION IN A MULTICYLINDER RECOMPRESSION HCCI ENGINE Jacob Larimore * , Shyam Jade, Erik Hellstr ¨ om, Anna G. Stefanopoulou University of Michigan Ann Arbor, Michigan 48109 {larimore, sjade, erikhe, annastef}@umich.edu Julien Vanier, Li Jiang Robert Bosch LLC Farmington Hills, Michigan 48331 {julien.vanier, li.jiang}@us.bosch.com ABSTRACT This work presents two advances to the estimation of homo- geneous charge compression ignition (HCCI) dynamics. Com- bustion phasing prediction in control-oriented models has been achieved by modeling the in-cylinder temperature and composi- tion dynamics, which are dictated by the large mass of residuals trapped between cycles. As such, an accurate prediction of the residual gas fraction as a function of the variable valve timing is desired. Energy and mass conservation laws applied during the exhaust valve opening period are complemented with online in-cylinder pressure measurements to predict the trapped residual mass in real time. In addition, an adaptive parameter estimation scheme uses measured combustion phasing to adjust the residual mass prediction. Experimental results on a multicylinder gasoline HCCI engine demonstrate the closed loop residual estimation’s ability to compensate for modeling errors, cylinder to cylinder variations, and engine wear. Additionally it is shown that using the adaptive parameter estimation reduces the model parameteri- zation effort for a multicylinder engine. INTRODUCTION Recompression homogeneous charge compression ignition (HCCI) is a promising combustion strategy that can achieve high thermal efficiency with low engine-out emissions. It is charac- terized by compression-driven near simultaneous auto-ignition events at multiple sites throughout a homogeneous mixture. Auto- ignition timing control in HCCI combustion requires careful regu- lation of the temperature, pressure, and composition of the pre- combustion cylinder charge. This regulation of charge properties is carried out in recompression HCCI by retaining a large frac- * Address all correspondence to this author. tion of the post-combustion residual gases before they can be exhausted [1, 2]. Since neither the temperature nor the mass of the trapped residuals can be measured directly, model-based control of re- compression HCCI requires the development of accurate control- oriented models that can be run in real-time on embedded control hardware. Examples of HCCI control-oriented models can be found in literature [39]. The combustion phasing prediction accuracy of these models is especially crucial when they are used in model-based predictive control strategies, for example [9–12]. This is because the phasing, or timing, of HCCI combustion must be maintained within a narrow acceptable range to satisfy stability and mechanical constraints. The models must be robust to engine aging, parameter drift and changes in environmental conditions. The current work advances the state of art in two important ways. First, the authors propose a novel, physics-based method of calculating the residual gas mass in real-time. Second, an adap- tive parameter estimation scheme is implemented in a previously developed HCCI model [8, 9], and is shown in experiments to improve prediction performance and robustness. Accurate modeling of the residual gas fraction is important for a control oriented model due to HCCI’s high sensitivity to the thermal energy associated with the residual gases. If too much residual mass is trapped the combustion can occur very early causing potential engine damage and a loss in efficiency. If too little mass is trapped the combustion can become highly oscillatory [13, 14], and misfires may occur. While there have been methods described in literature for estimating the residual mass [1518], none have presented an algorithm capable of online implementation without the use of a steady-state assumption. This work aims to provide a solution to this problem. In addition, adaptive parameter estimation is used to increase 1 Copyright © 2013 by ASME Proceedings of the ASME 2013 Dynamic Systems and Control Conference DSCC2013 October 21-23, 2013, Palo Alto, California, USA DSCC2013-3984 Downloaded From: http://proceedings.asmedigitalcollection.asme.org/ on 02/22/2016 Terms of Use: http://www.asme.org/about-asme/terms-of-use

Upload: others

Post on 27-Jun-2020

3 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Online Adaptive Residual Mass Estimation in a ...annastef/papers/online... · variations, and engine wear. Additionally it is shown that using the adaptive parameter estimation reduces

ONLINE ADAPTIVE RESIDUAL MASS ESTIMATIONIN A MULTICYLINDER RECOMPRESSION HCCI ENGINE

Jacob Larimore∗, Shyam Jade, Erik Hellstrom,Anna G. Stefanopoulou

University of MichiganAnn Arbor, Michigan 48109

{larimore, sjade, erikhe, annastef}@umich.edu

Julien Vanier, Li JiangRobert Bosch LLC

Farmington Hills, Michigan 48331{julien.vanier, li.jiang}@us.bosch.com

ABSTRACTThis work presents two advances to the estimation of homo-

geneous charge compression ignition (HCCI) dynamics. Com-bustion phasing prediction in control-oriented models has beenachieved by modeling the in-cylinder temperature and composi-tion dynamics, which are dictated by the large mass of residualstrapped between cycles. As such, an accurate prediction of theresidual gas fraction as a function of the variable valve timingis desired. Energy and mass conservation laws applied duringthe exhaust valve opening period are complemented with onlinein-cylinder pressure measurements to predict the trapped residualmass in real time. In addition, an adaptive parameter estimationscheme uses measured combustion phasing to adjust the residualmass prediction. Experimental results on a multicylinder gasolineHCCI engine demonstrate the closed loop residual estimation’sability to compensate for modeling errors, cylinder to cylindervariations, and engine wear. Additionally it is shown that usingthe adaptive parameter estimation reduces the model parameteri-zation effort for a multicylinder engine.

INTRODUCTIONRecompression homogeneous charge compression ignition

(HCCI) is a promising combustion strategy that can achieve highthermal efficiency with low engine-out emissions. It is charac-terized by compression-driven near simultaneous auto-ignitionevents at multiple sites throughout a homogeneous mixture. Auto-ignition timing control in HCCI combustion requires careful regu-lation of the temperature, pressure, and composition of the pre-combustion cylinder charge. This regulation of charge propertiesis carried out in recompression HCCI by retaining a large frac-

∗Address all correspondence to this author.

tion of the post-combustion residual gases before they can beexhausted [1, 2].

Since neither the temperature nor the mass of the trappedresiduals can be measured directly, model-based control of re-compression HCCI requires the development of accurate control-oriented models that can be run in real-time on embedded controlhardware. Examples of HCCI control-oriented models can befound in literature [3–9]. The combustion phasing predictionaccuracy of these models is especially crucial when they are usedin model-based predictive control strategies, for example [9–12].This is because the phasing, or timing, of HCCI combustion mustbe maintained within a narrow acceptable range to satisfy stabilityand mechanical constraints. The models must be robust to engineaging, parameter drift and changes in environmental conditions.

The current work advances the state of art in two importantways. First, the authors propose a novel, physics-based method ofcalculating the residual gas mass in real-time. Second, an adap-tive parameter estimation scheme is implemented in a previouslydeveloped HCCI model [8, 9], and is shown in experiments toimprove prediction performance and robustness.

Accurate modeling of the residual gas fraction is importantfor a control oriented model due to HCCI’s high sensitivity tothe thermal energy associated with the residual gases. If toomuch residual mass is trapped the combustion can occur veryearly causing potential engine damage and a loss in efficiency.If too little mass is trapped the combustion can become highlyoscillatory [13, 14], and misfires may occur. While there havebeen methods described in literature for estimating the residualmass [15–18], none have presented an algorithm capable of onlineimplementation without the use of a steady-state assumption. Thiswork aims to provide a solution to this problem.

In addition, adaptive parameter estimation is used to increase

1 Copyright © 2013 by ASME

Proceedings of the ASME 2013 Dynamic Systems and Control Conference DSCC2013

October 21-23, 2013, Palo Alto, California, USA

DSCC2013-3984

Downloaded From: http://proceedings.asmedigitalcollection.asme.org/ on 02/22/2016 Terms of Use: http://www.asme.org/about-asme/terms-of-use

Page 2: Online Adaptive Residual Mass Estimation in a ...annastef/papers/online... · variations, and engine wear. Additionally it is shown that using the adaptive parameter estimation reduces

the model fidelity in terms of its ability to reject disturbancesand modeling error. The current HCCI model requires parame-terization which is non-trivial and time intensive. As the modelis propagated to multiple cylinders this task can become evenmore arduous. It will be shown through experiments that a param-eterization for a single cylinder is sufficient when the adaptiveparameter estimation is used and that the adaptation can rejectactuator bias effectively. Other advantages of using adaptationinclude reducing sensitivity to engine aging, cylinder-to-cylindervariation and unmodeled dynamics.

The paper is organized as follows: First the model and anadditional state are derived. The adaptive parameter estimationroutine is then presented followed by experimental results andconclusions. Appendicies include nomenclature and a summaryof the model equations.

MODEL DEVELOPMENTThe following sections present the two state control oriented

model developed in [8, 9] and the derivation of an additional statefor residual mass estimation. A parametric model for adaptiveparameter estimation is also introduced.

Two State ModelThe model consists of two dynamic states used to capture

cycle to cycle interactions which are:

1. Tbd : The temperature of the blowdown gases, which is usedto represent the recycled thermal energy.

2. bbd : The burned gas fraction of the blowdown process, whichrepresents the composition dynamics.

The blowdown process is a rapid expansion of exhaust gases dur-ing the exhaust stroke where the pressures of the cylinder andexhaust system equalize quickly. The states are defined immedi-ately after the blowdown process and are given by Eq. (1) and (2).A summary of the equations from [8, 9] from which these statesare derived can be found in the appendix.

Tbd(k+1) = Tevo(k)(

pevo

pem

) 1−nn

= Tivc(k)(

pivc(k)pem

) 1−nn[

1+ηmqlhvRV50

n−1

cv pivcVivcn m f (k)

] 1n

(1)

bbd(k+1) =(AFRs +1)m f (k)

mc(k)+ xr(k)bbd(k) (2)

The model has three inputs: the mass of fuel injected (m f ),the injection timing (SOI), and the timing of the exhaust valveclosing (EVC). The EVC timing controls the amount of NVO, thecrank angle difference between EVC and intake valve opening(IVO), with which the engine operates. This has a direct impacton the charge composition and temperature. The model has two

AdaptationEq. (13)

States x(k):Tbd(k)bbd(k)

mres(k)

Outputs y(k):θ50(k)

ˆIMEP(k)

Controls u(k):

uevc(k)

m f (k)usoi(k)

k k+1

x(k)

PimPex

ε(k) +θ50(k)

−Θ(k)

Cylinder pressure

Valve lift

θ50(k)

x(k+1)

HeatRelease

ˆIMEP(k)

k−1

Cycle

θ

Σ

EVO EVC TDC IVO IVC TDC EVO

z−1

z−1

ModelEq. (1),(2),(6)

Pevo

Pevc

Pre f

Figure 1. Graphical representation of model structure. The figure in-dicates when the time series data is broken into discrete elements, themodel inputs and outputs as well as the states. Also shown is the basicblock diagram of the model indicated what measurements are used.

outputs, the combustion phasing of 50% burn (θ50) and the enginetorque (IMEP). Therefore this is a three input two output system.A visual representation of the model is given in Fig. 1.

Residual Mass StateThe hot residual mass trapped in recompression HCCI com-

prises a significant portion of the charge, and therefore thermalenergy. Since the combustion depends on this thermal energy,accurate prediction of the residual mass is imperative. Previously,the model’s formulation of residual mass was a static function ofEVC, manifold pressures, engine speed and the state Tbd whichwas tuned using steady state data. The function can be found inEq. (26) of the appendix. The regression can be complicated toparameterize and does not benefit from knowledge of in-cylinderpressure measurements which provide the most direct informationavailable about the combustion process in real time. It is thereforedesired to develop a state for the residual mass which can takeadvantage of these measurements to increase model fidelity.

The residual mass state is derived using the offline analy-sis techniques presented in [15, 19] as a basis. To summarize,an analysis of the heat loss per unit mass due to the exhaust isperformed by splitting it into two segments of equal time. It isphysically reasonable to assume that the heat (and therefore mass)losses in the first and second halves of the exhaust will be similar,i.e. q(evo→ re f ) = q(re f → evc) where the value of re f is thehalfway point of the exhaust process in the crank angle domaindefined as: θre f = (θevo +θevc)/2. Specifically these heat losses,

2 Copyright © 2013 by ASME

Downloaded From: http://proceedings.asmedigitalcollection.asme.org/ on 02/22/2016 Terms of Use: http://www.asme.org/about-asme/terms-of-use

Page 3: Online Adaptive Residual Mass Estimation in a ...annastef/papers/online... · variations, and engine wear. Additionally it is shown that using the adaptive parameter estimation reduces

q, can be expressed as:∫ Tre f

Tevo

cpdT −R∫ Pre f

Pevo

TP

dP =∫ Tevc

Tre f

cpdT −R∫ Pevc

Pre f

TP

dP,

where the values of Px and Tx refer to the pressure and temperatureinside the cylinder at specific locations in the cycle, for examplePevo = Pcyl(θevo). After approximation of the integrals we have:

cp(Tre f −Tevo)−R(

Tre f +Tevo

2

)ln(

Pre f

Pevo

)=

cp(Tevc−Tre f )−R(

Tevc +Tre f

2

)ln(

Pevc

Pre f

).

Further, algebraic simplification yields:

γTevo +ζTevc = Tre f

{−2cp +

R2

ln

(P2

re f

PevoPevc

)}(3)

where: γ =−cp− R2 ln(

Pre fPevo

), ζ =−cp +

R2 ln(

PevcPre f

).

Equation (3) has two unknowns, Tevo & Tevc, and other vari-ables which are either known or can be measured with the excep-tion of Tre f . The value of Tre f cannot be measured however it isclose to the value of the blowdown temperature which is a state ofthis model, Eq. (1), and will be used as such. It is recognized thatthere maybe a discrepancy between the Tre f and Tbd values whichprovides motivation for the introduction of an adaptive parameterto make corrections to the model when necessary.

From here we deviate from the derivation in [19] by definingthe unknown temperatures with the ideal gas law:

Tevo =PevoVevo

mevoR, Tevc =

PevcVevc

mevcR,

and define the masses as follows:

mevo(k) = min(k)+mres(k), mevc(k+1) = mres(k+1). (4)

The transient residual mass, Eq. (4), can then be substituted intoEq. (3) which allows the masses to evolve in time and changefrom cycle-to-cycle depending on the manifold dynamics andcylinder conditions. The result is one equation in terms of mres(k)and mres(k+1)

γPevoVevo

(min(k)+mres(k))R+ζ

PevcVevc

mres(k+1)R

= Tbd(k)

{−2cp +

R2

ln

(P2

re f

PevoPevc

)}. (5)

This equation can be greatly simplified by grouping terms andlumping constant coefficients:

mres(k+1) =α(k)+β(k)mres(k)

A(k)+mres(k)(6)

where α(k), β(k) and A(k) are functions of the constants R and cp,known inputs, Tbd , and measured values; namely the in-cylinderpressure at specific locations (Pevo, Pevc and Pre f ) and the mass offresh air inducted into the cylinder. By defining the masses as in

Figure 2. Convergence of the state mres, in milligrams, from various ini-tial guesses. Simulation was run at 1800 rpm and 3 bar IMEP.

(4) we accomplish three goals, first we no longer assume that theresidual mass is in steady state, second, the equation depends onknown, or measurable values. Finally, the equation is causal andsufficiently simple for online implementation.

The result found in Eq. (6) predicts the amount of residualmass in cycle k + 1 based on measured data and the value ofthe residual mass in the previous cycle. Therefore, the onlyunknown is the initial guess of mres(0). A numerical example ofthe convergence from various initial guesses is given in Fig. 2.When the coefficients α, β and A are constant an equation of thisform is referred to as the Riccati Difference equation [20]. Fora given operating condition it is reasonable to assume that thecoefficients will not change much from cycle to cycle and can beassumed constant. With this assumption it can be shown that forphysically reasonable pressure data and a positive initial guessof residual mass, the state will converge to a stable, fixed–pointequilibrium. The proof is omitted to conserve space, however asummary of this proof can be found in [20–22].

In summary, the model, augmented with the third state, in itsfunctional form is given by:

Tbd(k+1) = f1(Tbd(k),xr(k),m f (k),Tim,Pint,exhV,cv) (7a)bbd(k+1) = f2(Tbd(k),xr(k),m f (k),bbd(k)) (7b)

mres(k+1) = f3(Tbd(k),mres(k),Pcyl ,V ) (7c)

where xr(k) =mres(k)mc(k)

=mres(k)

mres(k)+mair(k)+m f (k). (8)

The values for Tim, Pint , Tex, Pexh are the measured intake andexhaust temperatures and pressures respectively.

Parametric ModelThe HCCI combustion model is not well suited for use with

adaptive parameter estimation due to its highly non-linear re-

3 Copyright © 2013 by ASME

Downloaded From: http://proceedings.asmedigitalcollection.asme.org/ on 02/22/2016 Terms of Use: http://www.asme.org/about-asme/terms-of-use

Page 4: Online Adaptive Residual Mass Estimation in a ...annastef/papers/online... · variations, and engine wear. Additionally it is shown that using the adaptive parameter estimation reduces

lationships and state couplings. As such, the placement of anadaptive parameter or parameters is challenging. In this sectionwe develop a parametric model to adapt our prediction of xr inEq. (8) as defined by:

xr(k) = Θ(k)xr(k), (9)

where Θ(k) is the adaptive parameter and xr(k) is the new residualgas fraction to be used in the model. To determine the parameterΘ(k) we employ the influence that xr has on Tivc as shown inEq. (10),

Tivc(k+1) = xr(k)Tres(k)+(1− xr(k))Tim, (10)

where Tim is a constant and Tres is from the model as inEq. (29). This adapted residual gas fraction is also substitutedinto Eqs. (7a,b). In HCCI, the combustion phasing is directlyinfluenced by the temperature of the charge at IVC. As such itmakes physical sense to place an adaptive parameter into thisregression to have the most direct influence over the prediction ofthe combustion phasing.

Equation (10) yields a parametric model by distributing termsand manipulating the equation into the from µ = Θϕ where:

µ =Tivc−Tim

Tres−Timand ϕ = xr.

The value of Tivc at this point is unknown and to form the errorterm, ε = µ− Θxr, we must calculate an estimate of Tivc,e frommeasurements. This is done by inverting the model for combus-tion phasing prediction given by Eq. (17) using the calculatedcombustion phasing, θ50, from a net heat release analysis done bythe engine control unit (ECU) online:

Tivc,e =−αθ2−

√α2

θ2−4αθ1(αθ3−θ50)

2αθ1. (11)

The value of µ is then simply:

µ =Tivc,e−Tim

Tres−Tim. (12)

ADAPTIVE LAWThe least squares algorithm with a forgetting factor follows

from the derivation in [23, 24] and is summarized here:

Θ(k) =

(k

∑i=1

ϕ(i)κ(k−i)ϕ(i)T

)−1( k

∑i=1

ϕ(i)κ(k−i)µ(i)

)(13)

When κ = 1, this is the pure least squares algorithm. As κ isdecreased there is more discounting of previous values but anincrease in sensitivity to noise. To allow the parameter to changewith operating conditions it is necessary to have some forgetting(κ < 1). Simulations for this model have shown that a valueof κ = 0.95 is a good balance for the trade off of adapting totransients and rejecting noise. Other adaptive laws were alsotested in simulation, specifically a pure least squares algorithm, a

least squares with covariance resetting and a gradient algorithm.However, least squares with forgetting factors provided the bestbalance of accuracy and noise suppression while still maintainingan ability to be implemented in real time.

It can be seen from induction that the sum in the denominatorof Eq. (13) can be written as D(k) = κD(k−1)+ϕ(k)ϕ(k)T andthe sum in the numerator can be written as N(k) = κN(k−1)+ϕ(k)µ(k). Since everything is scalar, Θ(k) = N(k)

D(k) . There aretwo conditions to avoid: D(k) = 0 and either N(k),D(K)→ ∞.Since D(k) is driven by ϕ2, it will stay positive, provided it startspositive. Further, since ϕ ∈ [0,1], Tres� Tim, and κ < 1, neitherN(k) nor D(k) can grow indefinitely given physically reasonabledata. To avoid unphysical behavior however, the value of Θ isalso restricted to be within Θ ∈ [0.75, 1.25].

EXPERIMENTAL RESULTSA four cylinder 2.0 liter GM LNF Ecotec engine running

on premium grade indolene was used as the baseline platform.Modifications to accommodate HCCI combustion include increas-ing the compression ratio to 11.25:1 and using camshafts withshorter duration and lower lift to allow for unthrottled operation.In addition to the stock turbo charger the engine was augmentedwith a small supercharger (Eaton M24) to provide boost. Resultspresented here were run at slightly boosted conditions, approxi-mately 1.1 bar intake manifold pressure, λ =1.2, an engine speedof 1800 RPM and a load of approximately 3 bar net IMEP. Thespark was left on, but at a position of 40◦ after top dead center.Since the mixture is lean and highly diluted with residuals thespark will have little influence on the combustion. Having thespark on late only helps to prevent the spark plug from fouling.Cylinder pressures were sampled at a resolution of 0.1 cad.

The model presented in this paper was implemented using acombination of C and Matlab code, and was tested in real-timeusing an ETAS ES910 rapid prototyping module. The moduleuses an 800 MHz Freescale PowerQUICC

TMIII MPC8548 proces-

sor with double precision floating point arithmetic and 512 MBof RAM. All experiments were run in open loop. Steady stateexperimental data was used to parametrize the model. However,the model was only tuned based on data for cylinder 1. Thisparameterization was propagated to all four cylinders on the rapidprototyping hardware despite the fact that there is cylinder-to-cylinder variation warranting a parameterization for each cylinderindividually.

Because HCCI combustion must operate in a narrow band ofcombustion phasing, it is crucial that the control oriented modelmakes accurate predictions of the engine’s phasing despite de-viations from a nominal operating point or drift in parameters.As stated previously, the purpose of the adaptive model is to al-low these changes to be captured. The adaptive law is drivenby error between the predicted and measured θ50 and as suchit should correct for these various errors. This will be shownthrough experimental results.

4 Copyright © 2013 by ASME

Downloaded From: http://proceedings.asmedigitalcollection.asme.org/ on 02/22/2016 Terms of Use: http://www.asme.org/about-asme/terms-of-use

Page 5: Online Adaptive Residual Mass Estimation in a ...annastef/papers/online... · variations, and engine wear. Additionally it is shown that using the adaptive parameter estimation reduces

Multicylinder ResultsTuning the model is a difficult and time consuming task, in

addition, the engine’s parameters can drift on a day-to-day basis,it is therefore desired to be able to minimize this task and allowfor the model to make adaptations online.

To test the adaptive model’s capability to correct for model-ing and parameterization errors it was run in real time at steadystate conditions with and without adaptation while the responsein predicted combustion phasing was observed. The results canbe found in Fig. 3. Despite the model being parameterized forcylinder 1, day-to-day drift and uncontrollable changes in en-vironmental conditions caused there to be a difference in thepredicted versus calculated values. Cylinder number 2 also hadlarge errors while cylinders 3 and 4 appear to have an accurateparameterization. Regardless, when adaptation is turned on at ap-proximately cycle 200, the adaptive parameter makes adjustmentsto the model and the prediction of combustion phasing becomesmore accurate. As expected, the adaptive parameter deviats fromunity further when the error is larger, as is the case for cylinders 1and 2. The RMS error, averaged over all four cylinders, betweenthe predicted and actual values of combustion phasing with noadaptation was 2.51cad while the RMS error with adaptationwas 1.73cad. Similar reductions in error were observed on allexperimental results presented, there were no observations of theadaptive routine increasing RMS error of the combustion phasing.

It should be noted that when the prediction of residual gasfraction, xr, causes the model to predict a combustion phasingthat is earlier than that of the ECU, then Θ < 1. For the resultspresented here, the value of Θ was always less than one. This isdue to the model always predicting a combustion phasing whichis earlier than that of the actual value, an over prediction of theresidual gas fraction. For a different parameterization of the modelthe prediction could have been later than the actual phasing, thiswould cause the adaptive parameter to be greater than 1. This wasexplored in simulations but did not present itself in experiments.

Single Actuator StepsTo evaluate the effectiveness of the adaptive model and resid-

ual gas fraction estimation in transients, actuator steps of themodel inputs were performed in open loop. Sensor measurementswere obtained in real time from the engine’s ECU and used bythe model for real time prediction of θ50. The actuator steps wererepeated for both the adaptive and non–adaptive model.

A step in EVC is shown in Fig. 4 for cylinder 1. The stepis from 256 to 253◦aT DC (degrees after top dead center) andback again and causes the amount of NVO to increase as a result.Intuitively, the amount of residual mass trapped in the cylindershould also increase, this is reflected in the prediction of the resid-ual gas fraction as shown in Fig. 4. Also shown is the result ofan offline analysis of the residual gas fraction derived from aniterative method described in [15, 19]. While the absolute differ-ence between the two results is slightly different, the magnitudeand direction of the transient response is similar. As described

150 350 550 750 9505

10

15

20 Cylinder 1θ50 Θ

Model Pred. ECU Meas. Θ0.8

0.85

0.9

0.95

1

1.05

150 350 550 750 9505

10

15

20 Cylinder 2θ50 Θ

0.8

0.85

0.9

0.95

1

1.05

150 350 550 750 9505

10

15

20 Cylinder 3θ50 Θ

0.8

0.85

0.9

0.95

1

1.05

150 350 550 750 9505

10

15

20 Cylinder 4θ50 Θ

Cycles

0.8

0.85

0.9

0.95

1

1.05

Figure 3. Combustion phasing prediction versus ECU calculation for theadaptive and non-adaptive versions of the model. It can be seen that withadaptation the error in combustion phasing is reduced.

in previous sections, it is expected that the absolute values maynot be equal due to the difference in the value of the exhaust gastemperature and that of the state Tbd . As a consequence, the modelprediction of θ50 differs from that of the ECU. However, when theadaptive parameter is introduced at approximately 1400 cycles,and the step is repeated, it is clear that the residual gas fractiondrops to that of the offline analysis and the model prediction ofθ50 becomes much more accurate on an absolute scale. It is notexpected that the value of xr always be equivalent to that of theoffline processing except in the case of minimal modeling errorsand environmental disturbances.

The model’s response to steps in SOI and mass of fuel canbe found in Figs. 5 and 6. The prediction of θ50 is improvedin both responses. It should be noted that while the value of Θ

stayed relatively constant during the EVC step, it has a visibleresponse to the steps in SOI and fuel. This suggests that the

5 Copyright © 2013 by ASME

Downloaded From: http://proceedings.asmedigitalcollection.asme.org/ on 02/22/2016 Terms of Use: http://www.asme.org/about-asme/terms-of-use

Page 6: Online Adaptive Residual Mass Estimation in a ...annastef/papers/online... · variations, and engine wear. Additionally it is shown that using the adaptive parameter estimation reduces

500 1000 1500 2000 2500250

255

260 EVC

Non-Adaptive Adaptive

500 1000 1500 2000 250045

50

55

60Model Pred. Offline

Xr

500 1000 1500 2000 25000.9

0.95

1

1.05

1.1 Θ

500 1000 1500 2000 2500

5

10

15

20 Model Pred. ECUMeas.

Cycles

θ50 [◦aTDC]

Figure 4. An EVC step for cylinder 1 with and without an adaptive model.It can be observed that the model prediction is more accurate when adap-tation is applied.

model’s parameterization may not fully capture the step response,however the adaptive parameter corrects for these errors.

Actuator BiasIt is common for engine components to wear and sensors

to become more noisy with time, this can present a problemwhen running highly parameterized models online. It is thereforedesired that the adaptive model be able to reject such disturbances.To test this the model was run online with the engine operating atsteady state, all actuators fixed. The measurement of EVC used bythe model was then replaced with one with a bias for a short periodof time as seen in Fig. 7. This bias represents camshaft wear overtime. One can see that when the bias is applied at 250 cycles thatthe combustion phasing prediction starts to deviate quickly fromthe calculated value. However, the adaptive parameter makesadjustments to the residual gas fraction in order to minimize theerror. A similar response can be seen at 750 cycles when the bias

0 500 1000 1500 2000 2500325

330

335

340

345 SOI

Non-Adaptive Adaptive

0 500 1000 1500 2000 25000.9

0.95

1

1.05

1.1 Θ

0 500 1000 1500 2000 2500

5

10

15

20 Model Pred. ECUMeas.

Cycles

θ50 [◦aTDC]

Figure 5. Model response to an SOI step with and without adaptation.When adaptation is applied the prediction of θ50 is more accurate.

is removed. In a more realistic scenario this bias will be slowlyoccurring over a long period of time as the cam is mechanicallyworn due to friction. Another example of this could be a parametercould drift over time, for instance engine temperature changingbased on weather conditions. This experiment considers the worstcase situation of the bias being applied instantaneously.

CONCLUSIONSA physics-based method of computing the residual gas frac-

tion of a recompression HCCI engine using cylinder pressuremeasurements in real time is presented along with an adaptive pa-rameter estimation routine. It is important that the model predictsresidual gas fraction trends accurately for control purposes. Ex-perimental results show that the estimator of xr captures expectedtrends well for single actuator steps and that with the adaptivealgorithm, the absolute value of xr is comparable to that of ahigher fidelity, offline analysis.

In addition to correcting the residual gas fraction predictionto match offline analysis, the adaptive routine helps to mitigateerrors in the prediction of combustion phasing in the presence ofmany sources of error by creating a nonlinear estimator of themodel states. It has been shown that a single parameterizationmay be sufficient for a multicylinder engine using an adaptiveparameter. Also, the algorithm can reject errors due to enginewear or parameter drift.

6 Copyright © 2013 by ASME

Downloaded From: http://proceedings.asmedigitalcollection.asme.org/ on 02/22/2016 Terms of Use: http://www.asme.org/about-asme/terms-of-use

Page 7: Online Adaptive Residual Mass Estimation in a ...annastef/papers/online... · variations, and engine wear. Additionally it is shown that using the adaptive parameter estimation reduces

250 750 1250 1750 2250 2750

10.35

10.55

10.75 mf

Non-Adaptive Adaptive

250 750 1250 1750 2250 27500.9

0.95

1

1.05

1.1 Θ

250 750 1250 1750 2250 2750

5

10

15

20 Model Pred. ECUMeas.

Cycles

θ50 [◦aTDC]

Figure 6. Model response to fuel mass step with and without adaptation.

ACKNOWLEDGMENTThis material is supported by the Department of Energy [Na-

tional Energy Technology Laboratory] DE-EE00035331 as a partof the ACCESS project consortium with direction from HakanYilmaz and Oliver Miersch-Wiemers, Robert Bosch, LLC. Theauthors would also like to thank Mike Hand and Dan Dionne fortheir help on the adaptive algorithm.

References[1] Yao, M., Zheng, Z., and Liu, H., 2009. “Progress and recent

trends in HCCI engines”. Prog. in Ener. and Comb. Sci.,35(5), Oct., pp. 398–437.

[2] Willand, J., Nieberding, R., Vent, G., and Enderle, C., 1998.“The knocking syndrom – its cure and its potential”. SAETechnical Papers, 982483.

[3] Shaver, G., and Gerdes, J., 2003. “Cycle-to-cycle control ofHCCI engines”. ASME International Mechanical Engineer-ing Congress and Exposition(IMECE 2003-41966).

[4] Rausen, D., Stefanopoulou, A., Kang, J.-M., Eng, J., andKuo, T.-W., 2005. “A mean value model for control ofHCCI engines”. J. of Dyn. Sys., Meas., and Cont., 127(3),

1Disclaimer: This report was prepared as an account of work sponsored by an agencyof the United States Government. Neither the United States Government nor any agencythereof, nor any of their employees, makes any warranty, express or implied, or assumes anylegal liability or responsibility for the accuracy, completeness, or usefulness of any informa-tion, apparatus, product, or process disclosed, or represents that its use would not infringeprivately owned rights. Reference herein to any specific commercial product, process, orservice by trade name, trademark, manufacturer, or otherwise does not necessarily constituteor imply its endorsement, recommendation, or favoring by the United States Government orany agency thereof. The views and opinions of authors expressed herein do not necessarilystate or reflect those of the United States Government or any agency thereof.

0 200 400 600 800 1000250

255

260 EVCActual Bias

0 200 400 600 800 100045

50

55

60Model Pred. Offline

Xr

0 200 400 600 800 10000.85

0.9

0.95

1 Θ

0 200 400 600 800 1000

5

10

15

20 Model Pred. ECU Meas.

Cycles

θ50 [◦aTDC]

Figure 7. Adaptive model response to an injection of bias in EVC. Themodel quickly catches the bias and make corrections to minimize error incombustion phasing prediction.

pp. 355–362.[5] Blom, D., Karlsson, M., Ekholm, K., Tunestal, P., and Jo-

hansson, R., 2008. “HCCI engine modeling and controlusing conservation principles”. SAE paper(2008-01-0789).

[6] Shahbakhti, M., and Koch, C. R., 2010. “Physics BasedControl Oriented Model for HCCI Combustion Timing”. J.Dyn. Syst. Meas. Control, 132(2), p. 021010.

[7] Ravi, N., Liao, H., Jungkunz, A., Chang, C., Song, H., andGerdes, J., 2012. “Modeling and Control of an ExhaustRecompression HCCI Engine Using Split Injection”. J. Dyn.Syst. Meas. Cont., 134, pp. 011016–1–12.

[8] Jade, S., Hellstrom, E., Stefanopoulou, A., and Jiang, L.,2011. “On the influence of composition on the thermally-dominant recompression HCCI combustion dynamics”. InASME Dynamic Systems and Control Conference.

[9] Jade, S., Hellstrom, E., Larimore, J., Jiang, L., and Ste-fanopoulou, A., 2013. “Enabling Large Load Transitions

7 Copyright © 2013 by ASME

Downloaded From: http://proceedings.asmedigitalcollection.asme.org/ on 02/22/2016 Terms of Use: http://www.asme.org/about-asme/terms-of-use

Page 8: Online Adaptive Residual Mass Estimation in a ...annastef/papers/online... · variations, and engine wear. Additionally it is shown that using the adaptive parameter estimation reduces

on Multicylinder Recompression HCCI Engines using FuelGovernors”. American Control Conf. (Accepted).

[10] Bengtsson, J., Strandh, P., Tunestal, P., and Johansson, B.,2006. “Model predictive control of HCCI engine dynamics”.IEEE Int. Conf. Cont. App., pp. 1675–1680.

[11] Chiang, C., and Chen, C., 2010. “Constrained control ofHCCI engines”. 5th IEEE Conf. Indust. Elec. and App.

[12] Ravi, N., Liao, H., Jungkunz, A., Widd, A., and Gerdes, J.,2012. “Model predictive control of HCCI using variablevalve actuation and fuel injection”. Cont. Eng. Prac., 20,pp. 421–430.

[13] Hellstrom, E., and Stefanopoulou, A., 2011. “Modelingcyclic dispersion in autoignition combustion”. In Proc. 50thIEEE Conference on Decision and Control, pp. 6834–6839.

[14] Hellstrom, E., Larimore, J., Stefanopoulou, A. G., Sterniak,J., and Jiang, L., 2012. “Quantifying cyclic variability ina multicylinder HCCI engine with high residuals”. J. Eng.Gas Turbines and Power, 134(11), p. 112803.

[15] Fitzgerald, R., Steeper, R., Snyder, J., Hanson, R., andHessel, R. “Determination of cycle temperature and residualgas fraction for HCCI negative valve overlap operation”.SAE Int. J. Eng., 3(2010-01-0343), April, pp. 124–141.

[16] Mladek, M., and Onder, C., 2000. “A model for the estima-tion of inducted air mass and the residual gas fraction usingcylinder pressure measurements”. SAE Int.(23000-01-0958).

[17] Gazis, A., Panousakis, D., Patterson, J., Chen, H., Chen,R., and Turner, J., 2008. “Using in-cylinder gas internalenergy balance to calibrate cylinder pressure data and esti-mate residual gas amount in gasoline HCCI combustion”.Experimental Heat Transfer, 21(4), pp. 275–280.

[18] Ortiz-Soto, E., Vavra, J., and Babajimopoulos, A., 2011.“Assessment of residual mass estimation methods for cylin-der pressure heat release analysis of HCCI engines withnegative valve overlap”. Submitted to ASME Internal Com-bustion Engine Division Fall Technical Conference, 2011.

[19] Larimore, J., Hellstrom, E., Sterniak, J., Jiang, L., and Ste-fanopoulou, A., 2012. “Experiments and analysis of highcyclic variability at the operational limits of spark-assistedHCCI combustion”. In Proc. ACC, pp. 2072–2077.

[20] Kulenovic, M., and Ladas, G., 2002. Dynamics of SecondOrder Rational Difference Equations with Open Problemsand Conjectures. Chapman and Hall/CRC.

[21] Grove, E., Ladas, G., McGrath, L., and Teixeira, C., 2001.“Existence and behavior of solutions of a rational system”.Comm. on App. Nonlinear Analysis, 8(1), pp. 1–25.

[22] Sedaghat, G., 2000. “Existence of solutions of certain sin-gular difference equations”. Journal of Applied DifferenceEquations, 6(5), pp. 535–561.

[23] Goodwin, G., and Sin, K., 1984. Adaptive Filtering Predic-tion and Control. Prentice-Hall Inf. and Sys. Sci. Ser.

[24] Ioannou, P., and Sun, J., 1996. Robust Adaptive Control.Prentice Hall Englewood Cliffs, NJ.

Appendix A: Nomenclaturem f Fuel mass per cyclemres Trapped residual massmc Mass of total chargexr Residual gas fractionηm Combustion efficiencycv Specific heat for a given compositionR Gas constant for a given compositionqlhv Heating value of the fuelAFRs Stoichiometric air-fuel ratioSOI Start of injectionEVO/C Exhaust valve open/closeIVO/C Intake valve open/closeNVO Negative valve overlapω Engine speedV Cylinder volumeθx Crank angle of position xθ50 Measured crank angle of 50% burnedθ50 Model prediction of θ50T TemperatureP Pressureλ Air-fuel ratioκ Forgetting factorΘ Adaptive parameterTivc,e An estimate of Tivc based on model inversioncad Crank angle degreesRMS Root mean square

Appendix B: Model EquationsCombustion Phasing Autoignition is predicted using

the integrated Arrhenius rate threshold model using a fixed acti-vation temperature (B = Ea

Ru) and pre-exponential factor A. The

integration is carried out until the threshold (Kth) is hit at the startof combustion (θsoc). The model can be expressed as follows:

Kth(θsoi) = k0−usoi =∫

θsoc

θivc

pc(θ)np exp

(B

Tc (θ)

)dθ (14)

The pressure (pc) and temperature (Tc) of the charge in the cylin-der are given by a polytropic compression:

pc(θ) = pivc

(Vivc

V (θ)

)n

, Tc(θ) = Tivc

(Vivc

V (θ)

)n−1

. (15)

The output θ50 is modeled as a linear function of θsoc:

θ50 = b1θsoc +b0. (16)

For a restricted range of operating conditions, the prediction ofcombustion phasing can be well approximated by a quadraticwhose coefficients vary as linear functions of injection timing:

θ50 = αθ1(soi)T 2ivc +αθ2(soi)Tivc +αθ3(soi) (17)

8 Copyright © 2013 by ASME

Downloaded From: http://proceedings.asmedigitalcollection.asme.org/ on 02/22/2016 Terms of Use: http://www.asme.org/about-asme/terms-of-use

Page 9: Online Adaptive Residual Mass Estimation in a ...annastef/papers/online... · variations, and engine wear. Additionally it is shown that using the adaptive parameter estimation reduces

In-cylinder Temperature Combustion is thermally mod-eled as an instantaneous heat release at θ50 concatenated with apolytropic compression from θivc and a polytropic expansion toθevo. The charge temperature after combustion (Tac) and thetemperature rise due to combustion (∆T ) are given by:

Tac = Tivc

(Vivc

Vc

)n−1

+∆T (18)

∆T = ηm(k)qlhvm f (k)cv(k)mc(k)

=ηm(k)qlhvRcv(k)pivcVivc

m f (k)Tivc(k). (19)

Here ηm is the combustion efficiency, and n is the polytropicexponent. The specific heat of combustion cv varies as a functionof composition (bc) to capture variations in mixture properties.

ηm(k) =a0

1+ exp{

θ50(k)−a1a2

} (1+a3ω(k)) (20)

cv(k) = 1+a4bc(k) (21)

Polytropic expansion after combustion gives the charge tem-perature at θevo, (Tevo), to be:

Tevo(k) = Tac

(Vc

Vevo

)n−1

= Tivc(k)(

Vivc

Vevo

)n−1 [1+

ηmqlhvRVcn−1

cv pivcVivcn m f (k)

]. (22)

Using the ideal gas law, the pressure at θevo is:

pevo(k) = pivc(k)Vivc

Vevo

Tevo(k)Tivc(k)

= pivc(k)(

Vivc

Vevo

)n [1+

ηmqlhvRVcn−1

cv pivcVivcn m f (k)

]. (23)

Expansion is followed by the blowdown process, which ismodeled as a polytropic expansion from the pressure at θevo,(pevo), to the exhaust manifold pressure (pem), with the polytropicexponent n. The temperature at blowdown (Tbd) is:

Tbd(k+1) = Tevo(k)(

pevo

pem

) 1−nn

= Tivc(k)(

pivc(k)pem

) 1−nn[

1+ηmqlhvRVc

n−1

cv pivcVivcn m f (k)

] 1n

. (24)

Coupling between CyclesIn recompression HCCI a large fraction of the in-cylinder

charge is trapped before it can be exhausted. The hot residualgases retained between engine cycles have a significant impacton the temperature and composition of the in-cylinder charge ofthe subsequent cycle. This internal coupling between cycles isquantified by the residual gas fraction (xr). In the model presentedin [8, 9] the residual gas fraction was a static function for a given

exhaust valve closing timing θevc, temperature of blowdown gasesTbd , engine speed ω, and pressure ratio across the engine Π:

xr(k) = 1− (c0 + c1θevc)Πc2Tbd(k)

c3ω(k)c4 (25)

where Π =pim(k)pem(k)

.

Thermal Coupling The cooling of the charge from θevoto θevc is modeled by a scaling constant ce. This cooled charge ispolytropically compressed and expanded during the NVO regionto obtain the residual gas temperature.

Tevc(k+1) = ceTbd(k+1) (26)

Tsoi(k+1) = Tevc(k+1)(

Vevc

Vsoi

)n−1

−a4m f (k) (27)

Tres(k+1) = Tsoi(k+1)(

Vsoi

Vivo

)n−1

(28)

Tres(k+1) =

[ceTbd(k+1)

(Vevc

Vsoi

)n−1−a4m f (k)

](Vsoi

Vivo

)n−1(29)

The thermal coupling between cycles is modeled by an energybalance equation at θivc. The temperature of the hot residuals isassumed to be Tres while the rest of the charge is considered tobe at the intake manifold temperature (Tim). Assuming constantspecific heats, an energy balance leads to:

Tivc(k+1) = xrTres(k+1)+(1− xr)Tim. (30)

Composition Coupling The burned gas fraction before(bc) and after (bbd) combustion can be related by simple equationsthat assume that the fuel combines with a stoichiometric mass ofair to form an equal mass of burned gases. Further, an xr portionof the burned gases is trapped between cycles:

bc(k) = xr(k)bbd(k) (31)

bbd(k+1) =(AFRs +1)m f (k)

mc(k)+bc(k)

=(AFRs +1)R

pivcVivcTivc(k)m f (k)+bc(k). (32)

9 Copyright © 2013 by ASME

Downloaded From: http://proceedings.asmedigitalcollection.asme.org/ on 02/22/2016 Terms of Use: http://www.asme.org/about-asme/terms-of-use