當(dāng)今效率最高的發(fā)動(dòng)機(jī)無(wú)一例外都是復(fù)雜的機(jī)器,無(wú)論是汽油發(fā)動(dòng)機(jī)還是柴油發(fā)動(dòng)機(jī)。它們的閥門正時(shí)、升力、直接燃油噴射、渦輪增壓等性能都可以改變,而且廢氣循環(huán)系統(tǒng)(EGR)也多種多樣。發(fā)動(dòng)機(jī)結(jié)構(gòu)必須足夠復(fù)雜,才能平衡燃油經(jīng)濟(jì)性和排放控制。
為了控制一堆復(fù)雜的作動(dòng)器,需要使用精確且反應(yīng)靈敏的傳感器。從進(jìn)入歧管的整道氣流到氮氧化物在排氣中的含量,傳感器必須測(cè)量各種數(shù)值。憑借著這些數(shù)據(jù),發(fā)動(dòng)機(jī)控制單元(ECU)就可以通過(guò)提前或延遲點(diǎn)火、控制閥門、調(diào)節(jié)渦輪增壓器的氣流等一系列操作,讓發(fā)動(dòng)機(jī)在保持最佳性能的同時(shí)將排氣控制在限制范圍內(nèi)。
最大的挑戰(zhàn)在于其復(fù)雜性與成本。工程師不僅要在一個(gè)制動(dòng)器上操作十幾個(gè)或更多的獨(dú)立參數(shù),而且增加設(shè)備本身也非常昂貴。測(cè)量氮氧化物或渦輪增壓器速度的傳感器可能需要花費(fèi)一百美元以上(每臺(tái)發(fā)動(dòng)機(jī)),霍尼韋爾汽車軟件總經(jīng)理Chris Greentree表示。
但是,虛擬傳感器為我們提供了另一種解決方案。用軟件模型替代昂貴的硬件傳感器,可讓每臺(tái)發(fā)動(dòng)機(jī)的傳感器成本變得微乎其微。
虛擬傳感器與物理學(xué)
Greentree解釋道:打個(gè)比方,為了創(chuàng)建一個(gè)虛擬的氮氧化物傳感器,工程師們首先需要根據(jù)生產(chǎn)傳感器和非生產(chǎn)傳感器上采集到的數(shù)據(jù)對(duì)一個(gè)模型進(jìn)行校驗(yàn)。這些數(shù)據(jù)包括氣缸內(nèi)壓力和溫度、空燃比、流經(jīng)氣缸的總氣流量、濕度和背壓等。接著將該模型進(jìn)行簡(jiǎn)化,只使用生產(chǎn)傳感器。“這些因素都會(huì)影響到排出發(fā)動(dòng)機(jī)的氮氧化物的含量,所以如果我們的模型很正確,我們就能精確預(yù)測(cè)排出的氮氧化物含量,不再需要傳感器。”
虛擬傳感器這個(gè)理念的實(shí)施,似乎并不容易。有一種方法是使用實(shí)驗(yàn)室或測(cè)功器上測(cè)得的數(shù)據(jù)創(chuàng)建一個(gè)統(tǒng)計(jì)學(xué)的反應(yīng)表面,這些數(shù)據(jù)是用實(shí)驗(yàn)設(shè)計(jì)(DOE)方法采集的。這些統(tǒng)計(jì)模型可以在不理解物理機(jī)制的情況下預(yù)測(cè)傳感器的反應(yīng)。但它們只能提供大概的預(yù)測(cè),預(yù)測(cè)結(jié)果的準(zhǔn)確性取決于采集數(shù)據(jù)的多少。
因此,霍尼韋爾用OnRAMP研發(fā)工具提出了一種替代方案。使用這個(gè)工具,工程師就能在ECU中嵌入一個(gè)第一性原理模型,隨后再用它來(lái)創(chuàng)建虛擬傳感器。
“這是一個(gè)基于物理學(xué)的發(fā)動(dòng)機(jī)系統(tǒng)模型,” Greentree解釋說(shuō),它的功能與工程師過(guò)去用于設(shè)計(jì)發(fā)動(dòng)機(jī)的0D或1D系統(tǒng)模型很接近。“OnRAMP比傳統(tǒng)的系統(tǒng)模型更簡(jiǎn)單,而運(yùn)行速度卻高出一大截。我們稱它為‘中度保真的操控導(dǎo)向模型,’它可以讓你在ECU中以接近原始狀態(tài)的方式運(yùn)行你的模型。”
他接著解釋道,盡管該模型的計(jì)算足跡較小,但它依然需要運(yùn)用理想氣體定律、伯努利方程、質(zhì)量與能量守恒定律等基礎(chǔ)物理學(xué)知識(shí)。用戶仍需使用DoE來(lái)收集數(shù)據(jù),并校準(zhǔn)模型,但OnRAMP及其所基于的物理控制策略,能夠提供其他優(yōu)勢(shì),那就是更好的控制模型和特定的虛擬傳感器。在將模型載入ECU之前,OnRAMP的開發(fā)環(huán)境可將模型優(yōu)化得更小、更快,但更精確。
虛擬優(yōu)勢(shì)
Greentree指出,霍尼韋爾的OnRAMP可使用虛擬傳感器測(cè)定下列5種物質(zhì)——排出發(fā)動(dòng)機(jī)的氮氧化物、選擇性催化還原過(guò)程中的氨、EGR流速、渦輪增壓器速度,以及空氣流速。除了極低的單位發(fā)動(dòng)機(jī)成本外,虛擬傳感器的另一項(xiàng)優(yōu)勢(shì)是比真是傳感器運(yùn)行更快,可用性更佳。
“(比方說(shuō)),一個(gè)實(shí)體的氮氧化物傳感器需要在發(fā)動(dòng)機(jī)啟動(dòng)一段時(shí)間后,才能達(dá)到運(yùn)作所需的溫度。即便達(dá)到溫度了,它的工作原理也注定了信號(hào)的傳輸會(huì)略微延遲,因此很難用在反饋控制中,”他解釋道。
但OnRAMP則相反,該模型可以在氮氧化物離開發(fā)動(dòng)機(jī)的那一刻預(yù)測(cè)其組成成分。“這種沒有延遲的信息可以單獨(dú)使用,也可以搭配實(shí)體傳感器來(lái)提高控制效果,” Greentree表示。
“不僅如此,如果你的傳感器用的越少,發(fā)生故障的可能性也越低,這也會(huì)省去一筆維修成本。”
Controlling engines with virtual sensors
The most efficient engines today, gasoline or diesel, are complex machines, with variable valve timing and lift, direct injection, turbocharging, and various flavors of exhaust gas recirculation (EGR). Engines need to be complex to balance the competing demands of fuel economy with emissions control.
Controlling the complex array of actuators requires precise, fast sensors that measure everything from mass airflow into the manifold to the engine-out level of NOx. With these data, the engine control unit (ECU) can advance or retard spark, actuate valves, and adjust turbocharger flow to get the engine humming at its optimum performance while keeping emissions within limits.
The challenges are complexity and cost. Not only do engineers have to manipulate a dozen or more independent parameters for individual actuators, but also adding more equipment is expensive. The cost of an individual sensor that measures NOx or turbocharger speed can run into a hundred dollars or more (per engine), according to Chris Greentree, General Manager Automotive Software for Honeywell.
Virtual sensors provide an alternative. They replace costly hardware sensors with software models that can cost very little per engine.
Virtual sensors and physics
As Greentree explains, for example, to create a virtual NOx sensor, they first calibrate a model using data from production and non-production sensors. These include in-cylinder pressure and temperature, air/fuel ratio, mass airflow through the cylinder, humidity, and backpressure sensors. Honeywell then simplifies the model to use only production sensors.
“All of these influence how much NOx will be produced, so if we model it correctly, we can accurately predict engine-out NOx and eliminate that sensor,” said Greentree.
The idea of virtual sensors is one that seems to be gaining traction. One way they are implemented is to use statistical response surfaces created from data measured in a lab or dyno, usually collected using Design of Experiments methods. These statistical models predict sensor responses without really knowing the physics. They are approximations only. Their utility is limited to how much data is collected.
Honeywell offers an alternative approach in its OnRAMP development tool. The tool allows engineers to embed a first-principles model in the ECU, using that to create virtual sensors.
“It is a physics-based model of the engine system,” explained Greentree, similar in function to familiar 0D or 1D system models engineers use to design engines. “The OnRAMP model is simpler than traditional system models and runs significantly faster than real time,” he explained. “We call it a ‘medium fidelity control oriented model,' allowing you to run your model native in the ECU.”
He went onto explain that, while it boasts a small computational footprint, it still incorporates basic physics such as the Ideal Gas Law, Bernoulli’s Equation, and Conservation of Mass & Energy. As he describes it, users still collect data using a DoE to calibrate the model, but the advantages of OnRAMP and its physics based control strategy is both a better control model and specific virtual sensors. Before loading it into the ECU, the OnRAMP development environment optimizes the model to create a smaller, faster running but still accurate model.
Virtual advantages
Honeywell’s OnRAMP enables five specific virtual sensors: engine-out NOx; selective catalytic reduction mid-bed ammonia; EGR flow rate; turbocharger speed; and fresh airflow rate. Another advantage besides very low per engine cost is that these virtual sensors respond faster and offer greater availability than real ones, according to Greentree.
“[For example], a physical NOx sensor takes some time after engine startup to reach a temperature sufficient for the sensor to function. Even after it has reached temperature, the operating principle of the sensor means that the signal will be slightly delayed, making it challenging to use in feedback control applications,” he explained.
In contrast, the OnRAMP model predicts the formation of NOx while it is leaving the engine. "This non-delayed information can be used on its own, or in conjunction with a physical sensor, to improve control," said Greentree.
“There are also less things to fail if you have fewer sensors, reducing possible warranty costs,” he said.