Login| Sign Up| Help| Contact|

Patent Searching and Data


Title:
REAL-TIME RESIDUAL MASS ESTIMATION WITH ADAPTIVE SCALING
Document Type and Number:
WIPO Patent Application WO/2014/130710
Kind Code:
A2
Abstract:
Systems and methods are described for on-line, real-time estimation of a residual mass in an engine cylinder during HCCI combustion. The residual mass is estimated based on an estimated residual mass for a previous combustion cycle. A value of a first performance variable for the first combustion cycle is determined based only on engine data measured by one or more sensors. A value of a second performance is estimated based at least in part on the estimated residual mass for the first combustion cycle. An adaptive scaling factor is determining for the first combustion cycle based on the determined value of the first performance variable and the estimated value of the second performance variable. An adjusted residual mass for the first combustion cycle is then determined based on the estimated residual mass for the first combustion cycle and the adaptive scaling factor for the first combustion cycle.

Inventors:
LARIMORE JACOB (US)
JIANG LI (US)
HELLSTROM ERIK (US)
VANIER JULIEN (US)
JADE SHYAM (US)
STEFANOPOULOU ANNA (US)
Application Number:
PCT/US2014/017461
Publication Date:
August 28, 2014
Filing Date:
February 20, 2014
Export Citation:
Click for automatic bibliography generation   Help
Assignee:
LARIMORE JACOB (US)
JIANG LI (US)
HELLSTROM ERIK (US)
VANIER JULIEN (US)
BOSCH GMBH ROBERT (DE)
JADE SHYAM (US)
STEFANOPOULOU ANNA (US)
International Classes:
F02D41/00
Foreign References:
US20040139949A12004-07-22
EP1213466A22002-06-12
DE10254475B32004-04-29
US20030105575A12003-06-05
US6212467B12001-04-03
Other References:
See references of EP 2959140A2
Attorney, Agent or Firm:
PAPROCKI, Andrew (100 East Wisconsin AvenueSuite 330, Milwaukee Wisconsin, US)
Download PDF:
Claims:
CLAIMS

What is claimed is:

1. A method of estimating a residual mass in a cylinder after a combustion cycle, the method comprising: determining an estimated residual mass for a first combustion cycle based on an estimated residual mass for a previous combustion cycle; determining a value of a first performance variable for the first combustion cycle based only on engine data measured by one or more sensors; estimating a value of a second performance variable for the first combustion cycle based at least in part on the estimated residual mass for the first combustion cycle; determining an adaptive scaling factor for the first combustion cycle based on the determined value of the first performance variable for the first combustion cycle and the estimated value of the second performance variable for the first combustion cycle; and determining an adjusted residual mass for the first combustion cycle based on the estimated residual mass for the first combustion cycle and the adaptive scaling factor for the first combustion cycle.

2. The method of claim 1, wherein the first performance variable and the second performance variable are a single performance variable such that the value of the first performance variable is a determined value of the single performance variable based only on the engine data measured by one or more sensors and the value of the second performance variable is an estimated value of the single performance variable based at least in part on the estimated residual mass for the first combustion cycle.

3. The method of claim 2, wherein a difference between the value of the first performance variable and the value of the second performance variable is indicative of an error in the estimated residual mass, and wherein the adaptive scaling factor is determined based on the difference between the value of the first performance variable and the value of the second performance variable such that the adaptive scaling factor corrects the error in the estimated residual mass.

4. The method of claim 1, further comprising: determining an estimated residual mass for a second combustion cycle based on the estimated residual mass for the first combustion cycle; determining a value of the first performance variable for the second combustion cycle based only on engine data measured by the one or more sensors; estimating a value of the second performance variable for the second combustion cycle based at least in part on the estimated residual mass for the second combustion cycle; determining an adaptive scaling factor for the second combustion cycle based on the determined value of the first performance variable for the second combustion cycle and the estimated value of the second performance variable for the second combustion cycle; and determining an adjusted residual mass for the second combustion cycle based on the estimated residual mass for the second combustion cycle and the adaptive scaling factor for the second combustion cycle.

5. The method of claim 4, wherein the act of determining the adaptive scaling factor for the second combustion cycle further includes determining the adaptive scaling factor for the second combustion cycle based on the value of the first performance variable for the first combustion cycle and the value of the second performance variable for the first combustion cycle.

6. The method of claim 4, wherein the act of determining the adaptive scaling factor for the second combustion cycle further includes determining the adaptive scaling factor for the second combustion cycle based on the estimated residual mass for the second combustion cycle and the estimated residual mass for the first combustion cycle.

7. The method of claim 4, wherein the act of determining the adaptive scaling factor for the second combustion cycle includes determining the adaptive scaling factor according to the equation: wherein n is an index for the second combustion cycle, n-1 is an index for the first combustion cycle, Ce(n) is the adaptive scaling factor for the second combustion cycle, φ(ϊ) is a value indicative of the estimated residual mass for combustion cycle , z(i) is a value indicative of the value of the first performance variable and the second performance variable for combustion cycle , and λ is a tuning parameter whose value affects a weight given to previous combustion cycles in calculating the adaptive scaling factor for the second combustion cycle.

8. The method of claim 7, wherein the first performance variable includes a temperature of the cylinder when an intake valve is closed during a combustion cycle, wherein the second performance variable includes a temperature of the cylinder at an end of the combustion cycle, and wherein z(i) is calculated according to the equation: z{i) = (Tlvc(i) - Tim(i))/(Tres(i) - Tmi(i)) wherein Tivc(i) is the value of the first performance variable during combustion cycle /', Tres(i) is the value of the second performance variable during combustion cycle /', and Tm,(i) is a temperature of intake air drawn into the cylinder during combustion cycle / as measured by a temperature sensor.

9. The method of claim 4, wherein the act of determining the adaptive scaling factor for the second combustion cycle includes determining the adaptive scaling factor according to the equation: where * is a tunable gain constant, 0(k) is the adaptive scaling factor for the second combustion cycle, 0(k-l) is the adaptive scaling factor for the first combustion cycle, Ce is an experimentally defined constant, ''' r (k-1) is a calculated value of the residual gas fraction for the first combustion cycle based at least in part on a combustion phasing determined based on measured cylinder pressure values, and e(k-l) is an error factor indicative of an error between measured values and estimated values for the first combustion cycle.

10. The method of claim 9, wherein the calculated residual gas fraction for the first combustion cycle is determined based on the equation:

, . . ... .< .:·. · ί. A s ; .<· ; .·:>

•^y. I ί·% ~~ i } ": ^

where Tres(k-1) a temperature of the residual mass for the first combustion cycle and is calculated based on the adjusted residual mass for the first combustion cycle, T;m is a temperature of air measured at the intake manifold by a temperature sensor, and Tivc(k-1) is a temperature of the cylinder at intake valve closing calculated based on observed combustion phasing for the first combustion cycle.

1 1. The method of claim 10, wherein Tivc(k- 1) is determined based on the equation: where a01, <¾2, and a©3, are functions of fuel injection timing and Θ50 is the combustion phasing for the first combustion cycle, and wherein Θ50 is determined based on measured cylinder pressures during the first combustion cycle.

12. The method of claim 9, wherein the error factor is determined according to the equation e. (k - 1} ^ . (k - !} - Θ( Α· - 1 ·· I.)

where is an adjusted value of the residual gas fraction for the first combustion cycle determined based on the estimated residual mass for the first combustion cycle and the adaptive scaling factor for the first combustion cycle.

13. The method of claim 4, wherein the estimated residual mass for a second combustion cycle is calculated according to the equation:

A(kj '-Η¾· !) wherein mres(k+l) is the estimated residual mass for the second combustion cycle, mres(k) is the estimated residual mass for the first combustion cycle, and a(k), P(k), and A(k) are functions of at least one of the group consisting of known engine control inputs, values measured by sensors, and constants indicative of a type of fuel.

14. A method of controlling homogeneous charge compression ignition (HCCI) combustion in an engine, the method comprising: determining the adjusted residual mass for the first combustion cycle and the adjusted residual mass for the second combustion cycle according to the method of claim 4; adjusting, by an engine control unit, a control variable during the second combustion cycle based on the adjusted residual mass for the first combustion cycle, wherein the control variable includes at least one variable selected from the group consisting of timing of intake valve opening, timing of intake valve closing, timing of exhaust valve opening, timing of exhaust valve closing, timing of fuel injection, and mass of fuel injected; and adjusting, by the engine control unit, the control variable during a third combustion cycle based on the adjusted residual mass for the second combustion cycle, wherein the second combustion cycle occurs prior to the third combustion cycle and subsequent to the first combustion cycle.

15. The method of claim 1, further comprising repeating the act of determining an estimated residual mass for each combustion cycle based on an estimated residual mass for the immediately preceding combustion cycle.

16. The method of claim 15, wherein the act of determining an estimated residual mass for each combustion cycle includes determining the estimated residual mass for each combustion cycle according to a function defined such that the estimated residual mass for each subsequent combustion cycle converges towards a more accurate value of the estimated residual mass.

17. The method of claim 1, further comprising: determining an estimated residual gas fraction for the first combustion cycle based on the estimated residual mass for the first combustion cycle; and determining an adjusted residual gas fraction based on the estimated residual gas fraction for the first combustion cycle and the adaptive scaling factor for the first combustion cycle.

18. The method of claim 1 , wherein the act of determining an adjusted residual mass includes multiplying the estimated residual mass for the first combustion cycle by the adaptive scaling factor for the first combustion cycle.

19. The method of claim 1, wherein the act of determining an adjusted residual mass for the first combustion cycle is performed on-line by an engine control unit such that the adjusted residual mass for the first combustion cycle can be used by the engine control unit to control operation of the engine during a subsequent combustion cycle.

20. A method of controlling homogeneous charge compression ignition in an engine, the method comprising: determining an estimated residual mass for a combustion cycle based on measured engine parameters and an estimated residual mass for a previous combustion cycle, the estimated residual mass including an estimated amount of fuel remaining in an engine cylinder at an end of the combustion cycle; determining a first temperature value for the cylinder based only on a calculated combustion phasing for the combustion cycle, wherein the calculated combustion phasing is based on cylinder pressure data directly measured during the combustion cycle; estimating a second temperature value for the cylinder based on the estimated residual mass for the combustion cycle; determining an adaptive scaling factor based at least in part on a discrepancy between the first temperature value and the second temperature value, wherein the adaptive scaling factor is indicative of an error of the estimated residual mass for the combustion cycle; determining an estimated residual gas fraction based on the estimated residual mass; determining an adjusted residual gas fraction by multiplying the estimated residual gas fraction by the adaptive scaling factor; and controlling at least one engine control variable during a subsequent combustion cycle based on the adjusted residual gas fraction, wherein the at least one engine control variable includes at least one engine control variable selected from the group consisting of timing of intake valve opening, timing of intake valve closing, timing of exhaust valve opening, timing of exhaust valve closing, timing of fuel injection, and mass of fuel injected.

Description:
REAL-TIME RESIDUAL MASS ESTIMATION WITH ADAPTIVE SCALING

RELATED APPLICATIONS

[0001] This application claims the benefit of U.S. Provisional Patent Application No. 61/766,754, filed February 20, 2014, entitled "DEVICE AND METHOD FOR REAL-TIME RESIDUAL GAS ESTIMATION," the entire contents of which are incorporated herein by reference.

BACKGROUND

[0002] The present invention relates to systems and methods for estimating engine performance characteristics and using the estimated performance characteristics to control engine operation. In particular, the present invention relates to systems and methods for estimating a residual gas fraction during recompression homogeneous charge compression ignition (HCCI) combustion.

SUMMARY

[0003] Recompression homogeneous charge compression ignition (HCCI) is a combustion strategy that can potentially achieve high thermal efficiency with low engine-out emissions. HCCI involves compression-driven, near-simultaneous auto-ignition events at multiple sites throughout a homogeneous mixture within an engine cylinder. Auto-ignition timing control in HCCI combustion requires careful regulation 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 fraction of the post-combustion residual gases before they can be exhausted.

[0004] Since the temperature and mass of the trapped residuals cannot be measured directly, model-based control strategies are implemented that can be ran in real-time on embedded control hardware. The ability to accurately predict combustion phasing is important when used in these model-based predictive control strategies because the phasing and timing of HCCI combustion must be maintained within a narrow acceptable range to satisfy stability and mechanical constraints.

[0005] Furthermore, accurate modeling of the residual gas fraction is important for a control oriented model due to HCCFs high sensitivity to the thermal energy associated with the residual mass (i.e., the amount of gasoline remaining in the engine cylinder at the end of a combustion cycle). HCCI combustion is heavily dependent on the thermodynamic state of the cylinder charge at the time of intake valve closing and recompression HCCI combustion dynamics specifically are driven by the recycled thermal energy of the trapped residual mass. If too much residual mass is trapped, the combustion can occur very early in the cycle causing potential engine damage and a loss in efficiency. If too little mass is trapped, the combustion can become highly oscillatory and misfires may occur. However, the residual mass trapped by the early exhaust valve closing cannot be measured directly and previous model-based attempts to estimate the trapped residual mass utilize offline analysis techniques which may require a steady-state assumption.

[0006] The systems and methods described herein are capable of on-line, real-time estimation of the residual mass and, based on the estimated residual mass, estimation of the residual gas fraction. In one embodiment, the invention provides a method of estimating a residual mass in a cylinder after a combustion cycle. An estimated residual mass for a first combustion cycle is determined based on an estimated residual mass for a previous combustion cycle. A value of a first performance variable for the first combustion cycle is determined based only on engine data measured by one or more sensors. A value of a second performance is estimated based at least in part on the estimated residual mass for the first combustion cycle. An adaptive scaling factor is determining for the first combustion cycle based on the determined value of the first performance variable and the estimated value of the second performance variable. An adjusted residual mass for the first combustion cycle is then determined based on the estimated residual mass for the first combustion cycle and the adaptive scaling factor for the first combustion cycle.

[0007] In another embodiment the invention provides a method of controlling

homogeneous charge compression ignition (HCCI) in an engine. An estimated residual mass for a combustion cycle is determined based on measured engine parameters and an estimated residual mass for a previous combustion cycle. The estimated residual mass includes an estimated amount of fuel remaining in an engine cylinder at an end of the combustion cycle. A first temperature value for the cylinder is determined based only on a calculated combustion phasing for the combustion cycle which, in turn, is based on cylinder pressure data directly measured during the combustion cycle. A second temperature value for the cylinder is estimated based on the estimated residual mass for the combustion cycle. An adaptive scaling factor is determined based at least in part on a discrepancy between the first temperature value and the second temperature value. As a result, the adaptive scaling factor is indicative of an error of the estimated residual mass for the combustion cycle. An estimated residual gas fraction is determined based on the estimated residual mass and then adjusted by multiplication with the adaptive scaling factor. At least one engine control variable is then controlled during a subsequent combustion cycle based on the adjusted residual gas fraction. The at least one engine control variable includes at least one engine control variable selected from the group consisting of timing of intake valve opening, timing of intake valve closing, timing of exhaust valve opening, timing of exhaust valve closing, timing of fuel injection, and mass of fuel injected.

[0008] Other aspects of the invention will become apparent by consideration of the detailed description and accompanying drawings.

BRIEF DESCRIPTION OF THE DRAWINGS

[0009] Fig. 1 is a block-diagram of an engine control system according to one embodiment.

[0010] Fig. 2 is a graph of cylinder pressures and valve timing during a HCCI combustion cycle in an engine.

[0011] Fig. 3 is a graph illustrating the convergence of the predicted residual mass over a number of combustion cycles.

[0012] Fig. 4 is a flow-chart of a method of determining an estimated residual gas fraction based on an estimated residual mass for a previous combustion cycle and controlling HCCI combustion based on the estimated residual gas fraction.

[0013] Fig. 5 is a schematic diagram of a control structure for implementing the method of Fig. 4.

DETAILED DESCRIPTION

[0014] Before any embodiments of the invention are explained in detail, it is to be understood that the invention is not limited in its application to the details of construction and the arrangement of components set forth in the following description or illustrated in the following drawings. The invention is capable of other embodiments and of being practiced or of being carried out in various ways.

[0015] Fig. 1 illustrates an example of an engine control system 100. An engine control unit (ECU) 101 receives input values from a number of sensor positioned on and around the engine of the vehicle. These sensor include a plurality of pressure sensors 103 configured to measure, among other things, the pressures within individual cylinders of the engine and the intake/exhaust pressures. Temperature sensors 105 measure, for example, the temperature of the intake air to each engine cylinder and the exhaust air from each cylinder.

[0016] The ECU 101 analyzes the sensors readings and controls various engine actuators accordingly in order to achieve HCCI combustion. These engine actuators include the fuel injectors 107 by which the ECU 101 can control the amount (i.e., "mass") of fuel injected into a cylinder during each combustion cycle and the timing of the injection. The ECU 101 also controls the opening and closing timing of an exhaust valve 109 and an intake valve 1 1 1 for each cylinder.

[0017] Although Fig. 1 only illustrates a single fuel injector 107, exhaust valve 109, and intake valve 111, it is to be understood that combustion engines may include multiple engine cylinders and, as such, may also include one fuel injector, exhaust valve, and intake valve for each cylinder. Alternatively, in some constructions, certain component might be shared by multiple cylinders. Similarly, the exact number and position of engine sensors that provide information to the ECU 101 can vary in different constructions.

[0018] The ECU 101 can be implemented in a number of different ways - as will be apparent to those skilled in the art. For example, the ECU 101 may include non-transient memory storing instructions and a processor capable of executing the stored instructions to control the operation of the ECU 101. Alternatively (or in addition), the ECU 101 may include one or more application-specific integrated circuits (ASICs) configured to control the operation of the ECU 101 as described herein.

[0019] Fig. 2 illustrates the operation of the engine during HCCI combustion in terms of the pressures exhibited in a single cylinder throughout a single combustion cycle and the corresponding valve and fuel injection timing required to achieve proper combustion and auto-ignition. The present combustion cycle is denoted at "Cycle k." The graph also illustrates a portion of the cylinder pressures and valve timings from the previous combustion cycle ("Cycle k-1 ") and the subsequent combustion cycle ("Cycle k+1").

[0020] During the combustion cycle ("Cycle k"), the exhaust valve 109 is opened at EVO allowing exhaust gases to escape from the cylinder and the valve is again closed at EVC. Fuel is injected at some point after the exhaust valve is closed (EVC). After fuel is injected, the air intake valve 1 1 1 is opened (at IVO) to allow fresh air to enter the cylinder. After the intake vale 1 1 1 is closed (at IVC), pressure within the cylinder increases - due in part to movement of the piston within the cylinder. Ultimately, this increase in pressure causes combustion of the injected fuel and corresponding movement of the piston. As noted above, the exact timing of the fuel injection and the valve closing can be controlled and adjusted by the ECU 101.

[0021] The model implemented by the ECU 101 and as described in detail below r is based on a two-state control strategy. An additional state based on the estimated residual fuel mass is also incorporated as well as a parametric model for adaptive parameter estimation.

[0022] The two dynamic states used to capture cycle-to-cycle interactions include: (1)

(1) Tbd- The temperature of the blowdown gases, which is used to represent the recycled thermal energy.; and

(2) bbd- The burned gas fraction of the blowdown process, which represents the

composition dynamics.

The blowdown process is a rapid expansion of exhaust gases during the exhaust stroke where the pressures of the cylinder and exhaust system equalize quickly. For the purposes of this model, the states are defined immediately after the blowdown process as:

where T evo is the temperature at exhaust valve opening, T; vc is the temperature at intake valve closing, p evo is the pressure at exhaust valve opening, p ivc is the pressure at intake valve closing, p em is the pressure at exhaust valve closing, q m is the combustion efficiency, qi hv is the heating value of the fuel, R is the gas constant for a given composition, Vi vc is the volume of the cylinder at intake valve closing, V50 is the volume of the cylinder at 50% burn, c v is the specific heat for a given composition, m t - is the total in-cylinder fuel mass, AFR S is the stoichiometric air- fuel ratio, and m c is the total charge mass including a sum of the mass of fuel, mass of air, and the mass of other residuals at the time of intake valve closing. - s:f is the adjusted residual gas fraction estimate for the previous combustion cycle (i.e., cycle k-1) and the variable Θ is an adaptable scaling factor which are both described in further detail below

[0023] The model has three primary inputs (i.e., variables that can be controlled by the ECU 101): the mass of fuel injected (m f ), the injection timing (u so i), and the timing of exhaust valve closing (u ev< ;)- The EVC timing controls the amount of negative valve overlap (ΝΛΌ), the crankangle difference between EVC and IVO, with which the engine operates. This has a direct impact on the charge composition and temperature. The model has two outputs: the combustion phasing of 50% burn (#50) and the engine torque (IMEP). The mass of fuel injected is directly proportional to the engine torque. Therefore, this model characterizes the combustion cycles of Fig. 1 as a three-input, two output system.

[0024] To increase the fidelity and accuracy of the two-state model described above, an additional state is also considered - the trapped residual mass (m res ). The hot residual mass trapped in recompression HCCI comprises a significant portion of the charge and, consequently, the thermal energy of the combustion cycle. Since the dynamics of combustion are heavily dependent on the thermal energy, accurate prediction of the residual mass improves the ability of the ECU 101 to accurately control the combustion cycle.

[0025] This third state is derived by studying the amount of heat lost per unit mass (q) through the total change in internal energy during the exhaust process (i.e, EVO through EVC). The process is split into two segments of equal time defined by:

where "ref ' is the dividing point in crankangle space and is defined as the average of EVO and EVC.

[0026] The ratio of the heat loses are then defined as:

■ <a -- ^ .... -

Because most of the heat - and, therefore, mass - is lost during the first part of the exhaust process (known as blowdown), the value of this ratio should be greater than one is most instances. The true value of this ratio is unknown; however, based on sensitivity analysis, the value of this variable has small effect on the residual mass estimate described below.

Therefore, for the purposes of this model, the value of the ratio is assume to be exactly equal to one for mathematical simplicity.

[0027] Equations (3) and (4) are substituted into equation (5) and the intergrals are approximated to derive the following equation:

Algebraic simplification of this equation yields:

where γ = -c p - R/2 * In (P re f P e vo) and ζ = -c p + R/2 * In (P eV c/Pref).

[0028] Equation (6) has two unknowns - T evo and T evc - as well as other variables which are either known or can be measured. The value of T ex is the exhaust gas temperature inside the cylinder during the exliaust process and cannot be measured directly. However, this time- varying parameter is close to the value of the state T bc i and is approximated as being equal thereto for the purposes of this model. This discrepancy is accounted for by the adaptive parameter described below. [0029] The other unknown temperatures - T eV o and T evc - and the corresponding masses can be defined according to the ideal gas law as: p y p y

m er0 ·■·■·■·■ / · ¾ i ) -f m rts {k ' j t ί½· -·-·-·-- m res (k ÷ I } (7 }

Substituting these expressions into Equation (6) provides one equation defined in terms of m res (k) and m res (k+l):

Equation (8) can be simplified by grouping terms and lumping constant coefficients as: mtxAit ·-· i ) ■ γι ν , ' ' " where (k), P(k), and A(k) are functions of the constants R and Cp, known inputs, and measured values; namely the in-cylinder pressure at specific times during the combustion cycle (Peyievo, Pcyievc, and Pcyi.ref) and the mass of fresh air drawn into the cylinder for each cycle.

[0030] By defining the masses as in (7), residual mass no longer must be assumed to be a steady-state variable. Furthermore, by defining the masses of such, equation (9) is only dependent on known or measurable values. The resulting equation is computationally straightforward and can be implemented by the ECU 101 online such that calculations are made in real-time.

[0031] The result found in equation (9) predicts the amount of residual mass in cycle k+1 based on previous measured data and the value of the residual mass in the previous cycle ("Cycle k"). Therefore, the only unknown is the initial estimate of m res . However, the equation is self-correcting in that, for a positive initial estimation, the difference equation will converge to a stable, fixed-point equilibrium for a give operating condition. Fig. 3 illustrates this convergence with several different arbitrarily selected starting values for m res . [0032] To summarize, the model described above and augmented with the third state (i.e., m res ) can be defined as:

¾(i - 1 ) ■■ fi i T^{k ) . x r { it } : M .-{ .* ) . J im . : : :: V. <

{ 1.0}

where

where the values for Ί ϊ1 , P mt , T ex , and P ex are the measured intake and exhaust temperatures as measured by sensors 103, 105. The value x r (k) is the residual gas fraction.

[0033] As noted above, the value of T ex is not directly measured, but, rather, is approximated as being equal to the blowdown temperature ¾. This discrepancy is accounted for by applying an adaptive correcting scaling factor. Similarly, other temperature and pressure measurements might be approximated based on similar measured temperatures and also corrected by applying an adaptive scaling factor as described below.

[0034] As also noted above, the only direct measurement obtained of the combustion occurring within the engine cylinder is the in-cylinder pressure. From these measured pressures throughout the course of the combustion cycle, combustion phasing can be determined. In the model described above, combustion phasing is most directly influenced by the temperature of the charge at the time of intake valve closing (i.e., T ivc ). If the model of intake temperature is defined to include an adaptive parameter Θ, then a linear parametric model for parameter estimation can be derived from the non- linear model of T IVC .

[0035] Once derived, the adaptive parameter Θ is used as a scaling factor, such that Vf = θλ>, to correct the estimated value of the residual gas fraction and to account for assumptions made in the model above. Described below are two methods for calculating an adaptive scaling factor. To distinguish betw r een these two methods, the adaptive scaling factor calculated according to the first method is referred to below as C e , while the adaptive scaling factor calculated according to the second method is referred to as Θ. References to the adaptive scaling factor Θ above should generally be read as referring an adaptive scaling factor calculated according to either method below or other methods. [0036] In the first example, the model of intake temperature including the adaptive parameter C e is represented according to the equation:

and, to reflect this change, the model in its functional form is represented as:

[0037] In Equation (1 1), the value of T RES (i.e., the temperature of the residual mass after combustion) is defined as a linear function of the state TM- AS such, this value is readily available in the model and is determined, based in part, on the adjusted residual gas fraction A> (as are the other variables in equation (1 1)). By distributing terms, Equation (1 1) can be represented in the form of a normal linear parametric model (i.e., z = θ* φ) as: where Tim is the measured intake manifold temperature.

[0038] Because T IVC is unknown and to form an error term, an estimate of T IVC is derived from measurements. Determination of any in-cylinder temperature at a specific crankangle in real-time is difficult to do accurately using sensors. However, combustion phasing can be estimated with a high level of certainty based on measured cylinder pressures. Using the formulation of the Arrhenius Integral of the model, the model described above can be inverted to find the value of T IVC which would have been necessary to achieve the estimated combustion phasing on the previous cycle. The Arrhenius Integral is represented as:

[0039] For the desired operating range of HCCI combustion, this equation can be well approximated by a quadratic whose coefficients vary as linear functions of injection timing: ( 14)

By inverting this equation, an estimated value of T ivc can be determined from the calculated phasing (denoted as G 5 o ,e ):

-h y ft 2 - ½:(<· ' ; - e so ^)

The value z becomes:

?-

0.6)

[0040] The adaptive scaling parameter C e can then be determined based on least-squares formula with a forgetting factor according to the following equation:

The value of λ controls the degree to which values from previous combustion cycles influence the calculation of the adaptive scaling parameter C e . When λ = 1 , this equation is a pure least-squares algorithm. As λ is decreased, there is more discounting of previous values, but an increase in sensitivity to noise. To allow the adaptive scaling parameter to change with operating conditions, it is necessary to have some "forgetting" (i.e., λ < 1). Simulations for this model have shown that a value of λ = 0.95 achieves a good balance for the trade off of adapting to transients and rejecting noise. However, this value can be tuned to achieve desired performance of an engine. Furthermore, other adaptive laws can be implemented to calculate an adaptive correction factor based on T ivc or other estimated values.

[0041] By denoting the left sum of Equation (17) as (n) and the right sum as b(n). it can be seen from induction that:

!?!«}™ - jh{n - t ) - (β]ϊ{ ?ί | (18)

Since everything is scalar, e (n) = b(n)/a(n) and the implementation can be achieved through the transfer functions: αι η ϊ 09)

[0042] There are two conditions that should be avoided when implementing this model to calculate an adaptive scaling factor: a(n) = 0 and (n) or b(n) approaching infinity. Since (n) is driven by φ 2 , it will stay positive provided it starts positive. Accordingly, neither a nor b can grow indefinitely given physically reasonable data. To avoid unphysical behavior however, the value of C e is restricted to be within a defined range (e.g., [0.75, 1.25]). The adaptive scaling factor is represented in this example as C e to denote the difference between the scaling factor calculated according to this example and the scaling factor as calculated according to a subsequent example below.

[0043] The discussion above provides (1) a mechanism for estimating a residual mass for a given combustion cycle based on the estimated residual mass for the previous combustion cycle and (2) an adaptive scaling factor. Because the calculation of the estimated residual mass is based on known information and converges over time, the mechanism described above allows the ECU 101 to accurately determine a value that greatly impacts HCCI combustion, but previously could not be determined in real-time. The adaptive scaling factor further adjusts the estimation to account for assumptions made in the calculation and also adapts to physical changes in the engine over time that affect combustion.

[0044] Fig. 4 illustrates a method by which the ECU 101 calculates an estimated residual mass and a scaled residual gas fraction and uses these values to determine appropriate control values during HCCI combustion. The ECU 101 receives in-cylinder pressure values from pressure sensors 103 and receives temperature data from the temperature sensors 105 (step 401). Based on these measured values, other known values, and the estimated residual mass for the previous combustion cycle, the ECU 101 calculates an estimated residual mass based on Equation (9), above (step 403). The residual gas fraction x r is then determined according to equation (10) (step 405).

[0045] After calculating the residual gas fraction x r (or concurrently therewith), the ECU 101 calculates an estimated combustion phasing based on the measured in-cylinder pressure values (step 407). Using Equation (15), the ECU 101 calculates an estimated temperature of the cylinder contents at intake valve closing (i.e., T ivCie ) (step 409). The estimated T ivc , e and the estimated residual gas fraction from the previous combustion cycle x r (k) (also represented as φ) are then used to calculate the adaptive parameter scaling factor Θ based on Equations (17) - (19) (step 41 1).

[0046] After both the estimated residual gas fraction r (k÷l) and the adaptive scaling factor Ce are calculated they are multiplied together to determine an adjusted estimated residual gas fraction Λί (k+1) (step 413). The adjusted estimated residual gas fraction Xy (k+1) and the estimated residual mass m res (k+l) are then used to determine appropriate fuel injection mass and fuel injection and valve timing for the next HCCI combustion cycle (step 415). These values are also stored to the memory of ECU 101 and are utilized to calculate the adaptive scaling factor C e , the estimated residual mass m res (k+2), and the adjusted estimated residual gas fraction (k+2) for the next combustion cycle (i.e., Cycle k+2).

[0047] Another method for determining the adaptive scaling factor Θ can be implemented by representing the error term as:

ή t - 1) - - 1 - B(h - l p;.{h - 1)

(20)

where 2 would ideally be the measured value of the residual gas fraction x r . However, as noted above, it is difficult to accurately measure the residual gas fraction of an engine during online operation. Therefore, a measurement of the combustion phasing θ 50 is used. The combustion phasing θ 50 is calculated by the ECU 101 based on measurements from the in- cy Under pressure sensors and online heat release analysis.

[0048] As noted above, the combustion phasing model is approximated by the quadratic expression:

* " ' " ( 21 )

where ctei, Oe 2 , and 093, are functions of the injection timing of the engine. Through inversion of this model, the value of Ti vc , which is necessary for the measured combustion phasing of the previous cycle, is given by:

(22)

The other solution to the quadratic is a non-physical solution. If we then employ a mass balance at intake valve closing as shown in: I ' :,, ( k - 1) k - ] }T f . k ~ 1) + (1 ~ X r

(23)

where T un is the measured intake manifold temperature and T res is approximated based on the model (see, eq. (1 1) above), then the value of ¾ as approximated based on these temperature values is

[0049] The discrete gradient parameter estimation law is then used to determine the value of the adaptive scaling factor Θ for each combustion cycle according to the equation:

where *" is a constant gain setting that controls the speed at which the algorithm converges. The gain can be tuned for a given system, but generally provides for a relatively slow convergence to prevent the adaptive controller from changing the transient response of the system.

[0050] Fig. 5 illustrates an example of control structure used to determine the estimated residual gas fraction x r and the adaptive scaling factor Θ according to equation (25).

Measured cylinder pressures Pi m and P ex are provided as inputs to a non-linear model. As described above, the non-linear model is used to determine the combustion phasing Θ50, the engine torque IMEP(k), and the residual gas fraction x(k) based on the estimated residual gas fraction for the previous combustion cycle x(k-l) (see, e.g. , equation (9) above).

[0051] The combustion phasing for the previous combustion cycle 0 5 o(k-l) (as determined based on cylinder pressure measurements), the adjusted residual gas fraction for the previous combustion cycle x r (k-l), and the adaptable scaling factor for the previous combustion cycle 0(k-l) are all provided to the adaptation module where they are used to calculate a new adaptive scaling factor for the current combustion cycle 9(k) according to equation (25). .

[0052] Thus, the invention provides, among other things, a systems and method for estimating the residual mass and the residual gas fraction for an engine during HCCI combustion. Various features and advantages of the invention are set forth in the following claims.