The present invention relates to methods for creating a computational model for a physical system, in particular for a position encoder for controlling a gas mass flow rate in an engine system.
For designing controllers for regulating mechatronic actuator systems, such as, for example, position encoders for throttle valves in internal combustion engines and for their computational simulation, differential equation systems are usually created to map their physical behavior. Despite the use of simplified functions for mapping friction or the like, these differential equation systems are not linear.
In addition, a special challenge is unsteadiness such as that in nonlinear spring characteristic lines of return springs or the like, for example, i.e., return springs having different characteristics in different areas; so far it has been possible only with great difficulty to map such unsteadiness in the underlying differential equation system.
Furthermore, the equations must be discretized in time for the calculation to obtain a computational model. This discretization often results in equations systems that cannot be solved mathematically and therefore must be solved iteratively, i.e., usually in a very time-consuming procedure. This is often impractical for use in real time since control units for internal combustion engines, for example, have only a limited computing capacity.
Another requirement of the computational model which maps the physical system is adequate precision, since otherwise undesirable effects such as vibrations during regulations or misdiagnoses may occur when using the computational model for diagnostic purposes.
Nonlinear equations describing a physical system often cannot be discretized in a stable manner using conventional explicit discretization methods. Simplifications are therefore made frequently to minimize the computing effort in the control unit. For example, a simple friction model is used as the basis, or the inductance of an actuator drive is disregarded.
U.S. Pat. No. 6,668,214 describes an adaptive regulation with the aid of a model taking into account a dead time, whereby the friction and inductance of a position encoder drive are to be replaced.
The publication by S. Kopf et al., “Automatic model-based controller design for an electronic throttle,” TU Darmstadt and IAV, AAC 2010, Munich, uses a simple dynamic friction model for modeling a position encoder system.
A position encoder having a simple model which is easily discretizable is described in the publication by Z. Rem et al., “On methods for automatic modeling of dynamic systems with friction and their application to electromechanical throttles,” 49th IEEE Conference on Decision and Control, Dec. 15 to 17, 2010. However, the inductance is again disregarded here and return springs are assumed to be simple return springs.
An implicit discretization of an air system model is described in German Published Patent Application No. 10 2008 043 965.
A method for creating a computational model for nonlinear models of a position encoder system and a device, an engine system, a computer program and a computer program product are provided according to the present invention.
According to a first aspect, a method for ascertaining a computational model for a position encoder system, in particular for a position encoder for controlling a gas mass flow rate for an internal combustion engine, is provided. This method includes the following steps:
One idea of the above method is preferably not to simplify the differential equation model mapping the physical model and to divide it into a linear part and a nonlinear part. The linear part and the nonlinear part may then be solved separately from one another. This also permits discretization of physical models without simplification and implementation thereof in control units having a limited computing capacity. Use of non-simplified models has the advantage that the risk of oscillations and diagnostic inaccuracies may be reduced.
In addition, the nonlinear term of the differential equation system may be brought about by a friction and static friction behavior of an actuator of the position encoder and/or by a nonsteady characteristic line of a component of the position encoder system.
It is also possible to provide that the first discretization method corresponds to Tustin's method and/or the second discretization method corresponds to an implicit method, in particular an implicit Euler method.
According to one specific exemplary embodiment, the first discretization method may correspond to Tustin's method, a leading in the computational model for the discretized linear part resulting from Tustin's method being compensated by taking into account a delay of dT/2.
It may be provided that the obtained computational model for the position encoder system is solved by an iterative method.
An interval in which the solution of the computational model for the position encoder system is situated may be determined, the obtained computational model for the position encoder system being solved by an iterative method within the interval.
According to another aspect, a device, in particular an arithmetic unit, is provided for ascertaining a computational model for a position encoder system, in particular for a position encoder for controlling a gas mass flow rate for an internal combustion engine, this device being designed:
According to another aspect, an engine system having an internal combustion engine, a position encoder system for adjusting a gas mass flow rate and a control unit is provided, a computational model for the position encoder system which has been ascertained according to the above method being used in the control unit.
According to another aspect, a computer program having program code means is provided for carrying out all steps of the above method when the computer program is executed on a computer or an appropriate arithmetic unit, in particular in the above device.
According to another aspect, a computer program product is provided, containing a program code which is stored on a computer-readable data medium and which, when executed on a data processing system, carries out the above method.
Actuator 2 is moved with the aid of a position encoder drive 3. Position encoder drive 3 may be designed as an electromechanical actuator, which may be designed, for example, as a dc motor, as an electronically commutated motor or as a stepping motor. With the aid of a position sensor 4, the position actually assumed by actuator 2 may be detected and analyzed.
Position encoder drive 3 is triggered by a control unit 10 to approach a certain position of actuator 2. To carry out a position regulation for actuator 2, control unit 10 receives an acknowledgment from position sensor 4 regarding the actual position of actuator 2 as well as an indication about an actuating torque, for example, an indication about the current consumed by position encoder drive 3.
In particular when using an observer model for the position regulation but also for diagnosis of the position regulation, a computational model for physical position encoder system 1 may be implemented in control unit 10. For example, the actuation speed of position encoder system 1 may also be calculated using a computational model if the resolution of the position signal supplied by position sensor 4 is too low for a derivation. Furthermore, for operation of the overall system in sensitive areas in particular, it may necessary to monitor the function of position encoder system 1 by carrying out a plausibility check of the function of position encoder system 1 with the aid of the computational model.
For modeling of above position encoder system 1 the following equations are used:
U=RI+Lİ+C
m
K
gear{dot over (φ)}
J{umlaut over (φ)}=C
m
K
gear
I−M
s(φ)−Mf({umlaut over (φ)})−A(ppre−ppost)
where variable R corresponds to an effective resistance, i.e., the sum of the winding resistance of electromechanical position encoder drive 3, the line connections and the resistance of the output stage, L corresponds to an inductance of a winding of electromechanical position encoder drive 3, I corresponds to a position encoder current through position encoder drive 3 and Cm is an engine constant, Kgear is a gear ratio, which may indicate the actuating torque as a function of position encoder current I. Furthermore, U corresponds to the voltage applied to the electromechanical position encoder drive of the position encoder system and φ corresponds to the instantaneous position of actuator 3 [sic; 2].
Challenges to modeling of a model equation which describes position encoder system 1 physically with the greatest possible accuracy include in particular the description of friction Mf(φ) and the description of restoring torque Ms(φ) exerted by a return spring for actuator 2 when the return spring has a nonlinear behavior.
Term A(ppre−ppost) describes a torque exerted on actuator 2 by a pressure difference across actuator 2. In the case of a throttle valve having a central suspension, this term may be assumed to be 0 because the acting pressure acts equally on both halves of the throttle valve.
In contrast with previous physical modelings of position encoder systems, a detailed friction model, for example, a friction model according to Dahl, is used to describe the friction. It holds that:
where σ0z is the nonlinear part. Alternatively, a distinction could also be made between static friction and dynamic friction.
With regard to the return spring, if the return spring has a spring constant which is nonlinear, depending on the deflection, i.e., position of actuator 2, this is taken into account. Return springs in throttle devices are typically provided with an elevated spring constant in the range of a zero to be able to ensure a reliable return to a certain basic position in the event of loss of a control torque. An example of the spring constant characteristic, i.e., the response of the return spring on actuator 2, is illustrated in the diagram in
M
s(φ)=Mslin(φ)+MsNL(φ)
M
slin(φ)=Csφ
where Mslin(φ) corresponds to the linear part and MsNL(φ) corresponds to the nonlinear part of the above differential equations describing the friction behavior. In the diagram in
In the description of above position encoder system 1, the friction model used as well as the model of the return spring having a nonlinear behavior both result in a nonlinear differential equation system.
A method for a simplified solution of the nonlinear differential equation system is described below in conjunction with the flow chart in
According to step S1 of the method, the model described by the nonlinear differential equation is divided into a linear part and a nonlinear part.
The following differential equation is obtained from the above equations:
A division into a linear part U* and a nonlinear part Unonlinear yields:
The nonlinear part then corresponds to:
In step S2, the linear part of the differential equation is then discretized according to a first discretization method. This may be carried out with the aid of Tustin's method. Tustin's transform is based on a Laplace transform and a transform corresponding to
The Laplace transform is obtained from the linear differential equation:
This yields Tustin's transform accordingly with
Tustin's discretization has the advantage that it results in computational models having simple calculation rules which may be calculated easily using microprocessors with only a comparatively low computing capacity. In particular the discretized computational model does not include any exponential equations or the like.
However, Tustin's discretization results in a leading of the discretization results which are compensated to improve the results. This compensation takes place in step S3 and may be carried out by providing an approximated delay of dT/2 according to
It holds that:
The nonlinear part of the above nonlinear differential equation is then discretized in step S4 according to a suitable second discretization method. In the present exemplary embodiment, the friction model and its nonlinear part described above are discretized. For example, an implicit discretization method such as the implicit Euler method may be used for this purpose:
In step S5 the discretized computational models of the discretized linear part and of the discretized nonlinear part of the differential equation system are combined to obtain the computational model for the position encoder system.
The discretization of the nonlinear friction model results in nonlinear equation components which often can no longer be solved mathematically. The computational model obtained above may then be solved by iterative methods.
To limit the computing effort, iteration limits are established which determine the range in which the iteration method is carried out. These iteration limits correspond to the extreme values of friction under the assumption that the spring torque is monotonic. It holds that:
−Mcoul≦Mf
where Mcoul corresponds to the torque exerted because of Coulomb friction.
Since f:φ→MsNL(φ) increases monotonically, it holds that
If the starting values from the above equation are inserted into the starting differential equation, this yields a linear equation, the solution of which determines the interval in which the solution for the nonlinear equation is located. The nonlinear equation to be solved is solved iteratively by inclusion methods within this interval, which definitely limits the computing effort for determining the solution.
Alternatively, iteration limits may also be established by the second and nth derivations of the position indication. It holds that:
For the nth derivation (for n≧2) it holds that
Mechatronic systems may be calculated efficiently and accurately using the above method.
Number | Date | Country | Kind |
---|---|---|---|
10 2012 209 374.5 | Jun 2012 | DE | national |