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.
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.
Since the temperature and mass of the trapped residuals cannot be measured directly, model-based control strategies are implemented that can be run 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.
Furthermore, 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 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.
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.
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.
Other aspects of the invention will become apparent by consideration of the detailed description and accompanying drawings.
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.
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 111 for each cylinder.
Although
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.
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 111 is opened (at IVO) to allow fresh air to enter the cylinder. After the intake vale 111 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.
The model implemented by the ECU 101 and as described in detail below 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.
The two dynamic states used to capture cycle-to-cycle interactions include: (1)
where Tevo is the temperature at exhaust valve opening, Tivc is the temperature at intake valve closing, pevo is the pressure at exhaust valve opening, pivc is the pressure at intake valve closing, pem is the pressure at exhaust valve closing, ηim is the combustion efficiency, qlhv is the heating value of the fuel, R is the gas constant for a given composition, Vivc is the volume of the cylinder at intake valve closing, V50 is the volume of the cylinder at 50% burn, cv is the specific heat for a given composition, mf is the total in-cylinder fuel mass, AFRs is the stoichiometric air-fuel ratio, and me 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. {circumflex over (x)}r 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
The model has three primary inputs (i.e., variables that can be controlled by the ECU 101): the mass of fuel injected (mf), the injection timing (usoi), and the timing of exhaust valve closing (uevc). The EVC timing controls the amount of negative valve overlap (NVO), 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
To increase the fidelity and accuracy of the two-state model described above, an additional state is also considered—the trapped residual mass (mres). 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.
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.
The ratio of the heat loses are then defined as:
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.
Equations (3) and (4) are substituted into equation (5) and the integrals are approximated to derive the following equation:
Algebraic simplification of this equation yields:
where γ=−cp−R/2*ln(Pref/Pevo) and ζ=−cp+R/2*ln/Pevc/Pref).
Equation (6) has two unknowns—Tevo and Tevc—as well as other variables which are either known or can be measured. The value of Tex is the exhaust gas temperature inside the cylinder during the exhaust process and cannot be measured directly. However, this time-varying parameter is close to the value of the state Tbd and is approximated as being equal thereto for the purposes of this model. This discrepancy is accounted for by the adaptive parameter described below.
The other unknown temperatures—Tevo and Tevc—and the corresponding masses can be defined according to the ideal gas law as:
Substituting these expressions into Equation (6) provides one equation defined in terms of mres(k) and mres(k+1):
Equation (8) can be simplified by grouping terms and lumping constant coefficients as:
where α(k), β(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 (Pcyl,evo, Pcyl,evc, and Pcyl,ref) and the mass of fresh air drawn into the cylinder for each cycle.
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.
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 mres. 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.
To summarize, the model described above and augmented with the third state (i.e., mres) can be defined as:
where the values for Tim, Pint, Tex, and Pexh are the measured intake and exhaust temperatures as measured by sensors 103, 105. The value xr(k) is the residual gas fraction.
As noted above, the value of Tex is not directly measured, but, rather, is approximated as being equal to the blowdown temperature Tbd. 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.
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., Tivc). 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 Tivc.
Once derived, the adaptive parameter Θ is used as a scaling factor, such that {circumflex over (x)}f=Θxr, 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 between these two methods, the adaptive scaling factor calculated according to the first method is referred to below as Ce, 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.
In the first example, the model of intake temperature including the adaptive parameter Ce is represented according to the equation:
T
ivc(k+1)={circumflex over (x)}r(k)Tres(k)+(1−{circumflex over (x)}r(k))Tim, (11)
and, to reflect this change, the model in its functional form is represented as:
T
bd(k+1)={circumflex over (f)}1(Tbd(k),{circumflex over (x)}r(k),mf(k),Tim,Pim,Pesh,V,cr)
b
bd(k+1)={circumflex over (f)}2(Tbd(k),{circumflex over (x)}r(k),mf(k),bbd(k))
m
res(k+1)=f3(Tbd(k),mres(k),Pest,V) (12)
In Equation (11), the value of Tres (i.e., the temperature of the residual mass after combustion) is defined as a linear function of the state Tbd. As such, this value is readily available in the model and is determined, based in part, on the adjusted residual gas fraction {circumflex over (x)}r (as are the other variables in equation (11)). By distributing terms, Equation (11) can be represented in the form of a normal linear parametric model (i.e., z=Θ*φ) as:
where Tim is the measured intake manifold temperature.
Because Tivc is unknown and to form an error term, an estimate of Tivc 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 Tivc which would have been necessary to achieve the estimated combustion phasing on the previous cycle. The Arrhenius Integral is represented as:
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:
θ50=aTivc2+bTivc+c (14)
By inverting this equation, an estimated value of Tivc can be determined from the calculated phasing (denoted as Θ50,e):
The value z becomes:
The adaptive scaling parameter Ce 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 Ce. 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 Tivc or other estimated values.
By denoting the left sum of Equation (17) as a(n) and the right sum as b(n), it can be seen from induction that:
a(n)=λa(n−1)+φ(n)φ(n)T
b(n)=λb(n−1)+φ(n)z(n) (18)
Since everything is scalar, Ce(n)=b(n)/a(n) and the implementation can be achieved through the transfer functions:
There are two conditions that should be avoided when implementing this model to calculate an adaptive scaling factor: a(n)=0 and a(n) or b(n) approaching infinity. Since a(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 Ce is restricted to be within a defined range (e.g., [0.75, 1.25]). The adaptive scaling factor is represented in this example as Ce 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.
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.
After calculating the residual gas fraction xr (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., Tivc,e) (step 409). The estimated Tivc,e and the estimated residual gas fraction from the previous combustion cycle xr(k) (also represented as φ) are then used to calculate the adaptive parameter scaling factor Θ based on Equations (17)-(19) (step 411).
After both the estimated residual gas fraction xr(k+1) and the adaptive scaling factor Ce are calculated they are multiplied together to determine an adjusted estimated residual gas fraction {circumflex over (x)}r(k+1) (step 413). The adjusted estimated residual gas fraction {circumflex over (x)}r(k+1) and the estimated residual mass mres (k+1) 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 Ce, the estimated residual mass mres (k+2), and the adjusted estimated residual gas fraction {circumflex over (x)}r(k+2) for the next combustion cycle (i.e., Cycle k+2).
Another method for determining the adaptive scaling factor Θ can be implemented by representing the error term as:
ε(K−1)=
where
As noted above, the combustion phasing model is approximated by the quadratic expression:
50(k−1)=α01Tivc2(k−1)+α02Tivc(k−1)+α03 (21)
where α01, α02, and α03, are functions of the injection timing of the engine. Through inversion of this model, the value of Tivc, which is necessary for the measured combustion phasing of the previous cycle, is given by:
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:
ivc(k−1)=
where Tim is the measured intake manifold temperature and Tres is approximated based on the model (see, eq. (11) above), then the value of
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.
The combustion phasing for the previous combustion cycle θ50(k−1) (as determined based on cylinder pressure measurements), the adjusted residual gas fraction for the previous combustion cycle xr(k−1), and the adaptable scaling factor for the previous combustion cycle Θ(k−1) are all provided to the adaptation module where they are used to calculate a new adaptive scaling factor for the current combustion cycle Θ(k) according to equation (25).
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.
This application claims the benefit of U.S. Provisional Patent Application No. 61/766,754, filed Feb. 20, 2014, entitled “DEVICE AND METHOD FOR REAL-TIME RESIDUAL GAS ESTIMATION,” the entire contents of which are incorporated herein by reference.
Number | Date | Country | |
---|---|---|---|
61766754 | Feb 2013 | US |