A Computer Tool for Modelling CO 2 Emissions in Driving Tests for Vehicles with Diesel Engines

: The dynamic development of transport in recent decades reﬂects the level of economic development in the world. The transport sector today is one of the main barriers to the achievement of the European Union’s climate protection objectives. More and more restrictive legal regulations deﬁne permissible emission limits for the amounts of toxic substances emitted into the atmosphere. Numerical CO 2 modeling tools are one way to replace costly on-road testing. Driving cycles, which are an approximation of the vehicle’s on-road operating conditions, are the basis of any vehicle approval procedure. The paper presents a computer tool that uses neural networks to simulate driving tests. Data obtained from tests on the Mercedes E350 chassis dynamometer were used for the construction of the neural model. All the collected operational parameters of the vehicle, which are the input data for the built model, were used to create simulation control runs for driving tests: Environmental Protection Agency, Supplemental Federal Test Procedure, Highway Fuel Economy Driving Schedule, Federal Test Procedure, New European Driving Cycle, Random Cycle Low, Random Cycle High, Mobile Air Conditioning Test Procedure, Common Artemis Driving Cycles, Worldwide Harmonized Light-Duty Vehicle Test Procedure. Using the developed computer simulation tool, the impact on CO 2 emissions was analyzed in the context of driving tests of four types of fuels: Diesel, Fatty Acid Methyl Esters, rapeseed oil, butanol (butyl alcohol). As a result of the processing of this same computer tool, mass consumption of fuels and CO 2 emissions were analyzed in driving tests for the given analyzed vehicle. emission stream produced by the vehicle engine, obtained in the simulation of the Random Cycle High road test (x95); of the instantaneous values of the carbon dioxide emission produced by the vehicle obtained in the simulation of the Random Cycle High (x95) road of values of carbon emission the of the values dioxide in the


Introduction
The list below contains a set of the most important quantities used in the calculations with the appropriate symbols and units ( Table 1). The table below also lists the most important abbreviations used in the manuscript.
The main idea conveyed in the concept of sustainable transport is to minimize the harmful impact of transport means on the environment-both natural and that of large urban agglomerations [1][2][3]. Taking into account the fact that the number of vehicles travelling on roads increases every year, air pollution also increases [4][5][6]. It is the composition of the air-fuel mixture [7][8][9][10] that is one of the most important factors that affect the content level of the three most dangerous substances in exhaust gases, i.e., carbon dioxide, hydrocarbons, and nitrogen oxides. The automotive industry is facing enormous challenges [11][12][13][14][15]. Market forecasts show that although combustion-engine cars are being ousted by vehicles with electric motors, they are still leading in the sales results of large automotive corporations [16][17][18][19]. As internal combustion engines have a huge share among the emitters of pollutants to the atmosphere, a downward trend can be observed for the volumes of diesel cars, which are being replaced by electric, petrol, and hybrid cars [20][21][22]. These tendencies result from increasingly restrictive exhaust emission standards [23][24][25]. The lowered exhaust emission limits are a challenge for motor designers and significantly influence the development of internal combustion engines and their accessories. An addi-tional issue is the migration of car brands in the world and the standards that cars must meet in a given region of the world [26][27][28][29][30]. In its transport policy, the European Union has been trying for many years to find a compromise between environmental, economic, and social priorities [31][32][33][34]. Vehicle emissions to the atmosphere are controlled by increasingly stringent standards [35,36]. The introduced regulations allow to control the amount of emitted substances and are an impulse for the development of low emission technologies [37][38][39][40].
The driving cycle is used to measure fuel consumption and CO 2 and pollutant emissions from passenger cars and light commercial vehicles in a standardized manner [41,42]. Currently, from a regulatory point of view, it is the only standardized way to analyze the amount of pollutant emissions from vehicles. For this type of testing, chassis test bench (a roller dynamometer station) are used. During the test, the exhaust gases are taken from the vehicle's exhaust pipe. The emission factors are then evaluated [43,44]. In the case of commercial vehicles, only tests of the engine alone with the power transmission system are applied on an engine dynamometer [45,46]. A set of engine torque and speed points are used for driving cycle analysis [47,48]. Modal tests are used (e.g., NEDC-New European Driving Cycle) and transient driving cycles (e.g. FTP75-Federal Test Procedure, ARTEMIS-Assessment and Reliability of Transport Emission Models and Inventory Systems). Modal cycles, as opposed to transition cycles, are defined by a set of accelerations and constant velocities [49,50].
The driving tests and emission standards introduced concern new passenger cars. They are subject to obligatory type-approval tests, including the determination of road emissions of the vehicle [51,52]. Fuel consumption and pollutant emissions are affected by, inter alia, driving patterns, traffic conditions, and weather conditions, which vary from one geographical region to another. This makes it necessary to differentiate between the existing driving tests worldwide [53,54]. The procedures in place take into account the use of on-board systems (e.g., air conditioning) and urban and non-urban driving patterns [55,56]. These cycles are mostly intended for light vehicles, passenger cars, and those intended for heavy goods vehicles contain only information about engine operation times at a given load [57][58][59][60][61].
In 1992, fuel consumption and exhaust emissions in the EU for light vehicles (with a reference mass not exceeding 2610 kg) were measured using the New European Driving Cycle that consisted of the UDC (Urban Driving Cycle) and the EUDC (Extra Urban Driving Cycle) [62][63][64]. In the urban cycle, the car was accelerated (on the rollers of the dynamometer) to an average speed of about 18 kph and the maximum speed did not exceed 50 kph. In the extra-urban cycle, the average speed was about 62 kph, and the maximum speed was 120 kph, or 90 kph in the case of low capacity vehicles [65,66]. In the case of the NEDC standard, the exhaust gas analysis was performed according to the constant volume technique with the use of special measuring equipment [67][68][69].
Laboratory conditions turned out to be unsuitable for calculating the real values of fuel consumption and exhaust emissions. Therefore, from September 2018, all exhaust emissions of all new cars sold in the EU are measured according to the WLTP (Worldwide Harmonized Light Vehicles Test Procedure) and RDE (Real Driving Emissions) standards [70][71][72][73][74]. The WLTP was responsible for measurements in laboratory conditions, and RDE for measurements of harmful substances directly on the road [75,76].
The WLTP uses the new Worldwide Harmonized Light-Duty Vehicles Test Cycles to measure fuel consumption, CO 2 emissions and pollutant emissions from passenger cars and light commercial vehicles. It provides more realistic data, which better reflects the daily use of the vehicle [77,78].
In the case of the WLTP standard, four speed ranges are measured on the dynamometer after a cold start: up to 60 kph, up to 80 kph, up to 100 kph and above 130 kph. Within each phase, accelerations and decelerations occur. The top speed is 10 kph higher than that of the NEDC. The entire WLTP cycle takes approximately 30 min and the distance covered is 23 km. Unlike the NEDC procedure, the WLTP takes into account additional accessories that may affect weight, aerodynamics and electric energy consumption (idle current) [79,80].
The MAC TP (Mobile Air Conditioning Test Procedure) cycle test procedure is used to measure any additional fuel consumption and pollutant emissions caused by the operation of the mobile air conditioning system (MAC) in a passenger car. The procedure was developed for the needs of the European Commission in 2010 and involves physical testing of the whole vehicle on a chassis dynamometer in an emission laboratory. The MAC test cycle has a total of 6 phases [81,82].
The CADC (Common Artemis Driving Cycles) includes measurement procedures performed on a chassis dynamometer, developed on the basis of real on-road runs by ARTEMIS [83][84][85]. The CADC consists of three driving cycles: urban, extra-urban, and motorway. The motorway test is divided into two variants: with maximum speeds of 130 and 150 kph. Artemis driving cycles assume appropriate gearshift sequences on the test  [86][87][88]. The study was based on a statistical analysis of a database of real European driving patterns [89,90].
In the USA, exhaust emissions from passenger cars and light trucks with diesel engines are determined for a given vehicle in accordance with the Supplementary Federal Test Procedure (SFTP) [91,92]. The SFTP consists of three test cycles: part of the FTP-75 (Federal Test Procedure) chassis dynamometer cycle, the SFTP US06 aggressive high speed driving cycle, and the SFTP SC03 high ambient temperature tests with air conditioning load [93][94][95]. The main feature of the FTP-75 cycle is the 17.77 km distance that the car must cover in 1874 s, with an average speed of 34.1 kph [96,97]. In turn, the SC03 procedure involves testing the vehicle on a chassis dynamometer at an ambient temperature of 35 • C in order to determine the emissions from the vehicle with the air conditioning device turned on inside it. The vehicle covers the distance of 5.8 km [98,99] with an average speed of 34.8 kph within the 595 s of the test duration. The US06 SFTP procedure was developed to supplement the FTP-75 test with car drive simulation (duration 595 s) in a more dynamic manner (12.8 km distance) and at a higher speed (average speed 77.9 kph, top speed 129.2 kph) [100][101][102]. The HWFET (Highway Federal Extra Test) developed by the US EPA (United States Environmental Protection Agency) is used to assess fuel consumption. The entire test lasts 765 s, during which the vehicle covers a distance of 16.45 km, with an average speed of 77.7 kph [103][104][105].
Last year, the maximum permissible average emission intensity of cars sold in the EU was still 130 gCO 2 /km. Manufacturers did meet these requirements without any problems (by reaching as low as 123 gCO 2 /km) [106,107]. On 1 January 2020, new regulations on exhaust emission standards for new passenger cars came into force in the European Union. Initially, only new cars (with a new type-approval) will have to comply with the new standards, and from 2021 all vehicles sold will have to comply. The aim of those standards is to eliminate cars emitting more than 95 g/km of CO 2 . This means that each passenger car will not be able to burn more than 3.5 liters of fuel for every hundred kilometers travelled. These will be the most stringent limits in the world. For comparison, in 2021 the US will have a limit of 125 gCO 2 /km, Japan will have 122 gCO 2 /km, and China 117 gCO 2 /km [108]. Diesel engines, on the other hand, will be completely banned from passenger cars.
The above-mentioned goal is slightly different for each of the automakers-Daimler, which traditionally produces larger and heavier cars, must meet the limit of 103 gCO 2 /km, BMW has a 2 g lower limit, while concerns like PSA (Peugeot Société Anonyme ) (including Peugeot) and FCA (Fiat Chrysler Automobiles) (e.g., Fiat), which traditionally produce smaller cars, cannot exceed 91 gCO 2 /km. Just two years ago, the EU decided to take the next steps-lowering the emission targets for 2021 by 15% by 2025 and by 37.5% by 2030. If MEPs and member states follow the Commission's proposal, the 2030 target will be tightened to a 50% reduction compared to the 2021 target, which would mean an average of 42.5 gCO 2 /km in 2030.
From the point of view of CO 2 emissions, the use of biofuels is also important [109,110]. In Polish climatic conditions, the main source of plant esters is rapeseed oil [111]. The high cetane number theoretically allows it to be used directly as a fuel for diesel engines. However, the modern diesel engine has been designed and improved for combustion of mineral diesel fuel, which has different physicochemical properties. The use of crude rapeseed oil (a mixture of triacylglycerols) requires a special adjustment of injection systems and combustion chambers [112].
For many years, methyl esters of higher fatty acids (FAME) have also been used to reduce the consumption of fuels from non-renewable sources in motor vehicles [113,114]. This kind of fuel is used in the form of a few percent solutions with conventional fuel or as a standalone B100 fuel. Higher fatty acid methyl esters (FAME) are mainly obtained from oils from various oil plants. However, both for environmental protection and economic improvement purposes, used vegetable oils and some animal fats are also used in the production of higher fatty acid methyl esters (FAME). Like conventional fuel, FAME is characterized by a tendency to solidify (crystallize) at low temperatures. This process causes the fuel to lose its fluidity and become solidified.
Decreasing reserves of crude oil, increasing consumption of liquid fuels used in transport, and increasing emissions of harmful components of exhaust gases into the atmosphere force an intensive search for alternative sources of energy to be used in road transport. Apart from bioethanol and rapeseed oil methyl esters, research is being carried out on the possibilities of producing fuels from biomass (biobutanol), waste, and nonfood agricultural products of other bio-components. Biobutanol is obtained by anaerobic fermentation similar to that of ethanol, but with the use of different microorganisms in the process. Butanol is more energy-efficient than ethanol because it contains more carbon. This alcohol can be obtained from by-products of the food industry and the pulp and paper industry [115,116].
It should be emphasized that commonly used biocomponents such as bioethanol and fatty acid methyl esters (FAME) are called first generation biofuels. According to the EU policy, the emphasis in recent years has been placed on the development of new technologies for the conversion of inedible and waste materials to second-generation biofuels (e.g., from lignocellulosic waste) as well as third-generation biofuels from raw materials derived from dedicated biological processes [117,118].
An example of a tool introduced by the European Commission to calculate CO 2 emissions and fuel consumption of HDVs (Heavy Duty Vehicles) is the VECTO (Vehicle Energy Consumption Calculation Tool) simulation program [119]. The developed program uses the results of measurements of the vehicle's components influencing energy consumption (the input data) and the results of the vehicle simulation under different driving conditions [120]. Parameters constituting the input data of the program are, among others: aerodynamic resistance, engine performance, torque losses in the powertrain, engine fuel map, axle and transmission efficiency, power demand of auxiliary equipment, tire rolling resistance. VECTO computes the fuel consumption in liters per 100 kilometers and the fuel consumption per transported tonne kilometer, as well as the CO 2 emissions.
The manuscript [121] proposes an integrated methodology for estimating bus emissions from the fleet of vehicles of the Municipal Transport Company in Madrid. The proposed solution uses both measured transport activity data and vehicle activity data with specific emission models to calculate consumption and emissions for the bus fleet in an urban area.
In the manuscript [122] biharmonic maps were used to predict the emission of NO x (nitrogen oxides) and the relative fuel-air ratio of a city bus. The instrumented city bus has been tested during actual passenger transport. The experimental results were consistent with biharmonic maps predictions. Important parameters for prediction of NO x concentration were vehicle speed and relative fuel-air ratio.
The aim of the paper was to build a computer tool that uses neural networks to simulate drive tests. The constructed driving test simulator determines the amount of CO 2 emissions and fuel demand for given input parameters and fuel type. There were 12 drive tests analyzed in the paper, which are valid in different parts of the world.

Materials and Methods
As part of the project, a quantitative model of specific fuel consumption was prepared as a function of rotational speed and torque of a diesel engine, based on data published by EPA. Error backpropagation neural networks with the Levenberg-Marquardt learning algorithm were used to build the quantitative model. Then, the input data for the driving tests were prepared using the "Gearshift Calculation Tool" programme for the selected vehicle [123].
The above activities were necessary to simulate the operation of the selected vehicle in driving tests, in order to obtain the amount of CO 2 emissions and fuel demand for the fuels used (diesel oil, FAME, rapeseed oil, and butanol). Table 2 below summarizes the basic properties of the fuels used [124][125][126].   Table 3 below presents the most important technical parameters of the vehicle and the factors necessary to be used in driving tests and programs generating the required runs: vehicle speed, gear number, clutch engagement, and pedal position. The values of the Ratio n/v coefficient for individual gears were calculated on the basis of the relationship allowing for data contained in [128]:

Neural Networks
The structures of the "Multilayer Feedforward Backpropagation Network" neural network with approximating properties were used to build the neural model. The structure of the neural network included non-linear activating functions f 1 (x) and f 2 (x) determined by the dependencies in the hidden layers, and the output layer included a linear activating function f 3 (x) in the form: The network learning process employed the Levenberg-Marquardt algorithm whose basis is the optimization process by finding the minimum value of the objective function defined as the mean value of the sum of squared differences between the current values of the network output signals and the set values in the form: Figure 1 shows a general schematic of the neural network structure that meets the above dependencies. The "Neural Network Module Version 3.0" library in the Scilab 6.1.0 numerical software [129,130] was used to build the neural model. mined by the dependencies in the hidden layers, and the output layer included a linear activating function f3(x) in the form: The network learning process employed the Levenberg-Marquardt algorithm whose basis is the optimization process by finding the minimum value of the objective function defined as the mean value of the sum of squared differences between the current values of the network output signals and the set values in the form: Figure 1 shows a general schematic of the neural network structure that meets the above dependencies. The "Neural Network Module Version 3.0" library in the Scilab 6.1.0 numerical software [129,130] was used to build the neural model.

Data for Building the Neural Model
The published data obtained during the 2013 Mercedes E350 vehicle tests on a chassis dynamometer were used in the building of the neural model that enables the calculation of the instantaneous value of the fuel flow as functions of: engine rotational speed, enginegenerated torque, gear number in the transmission, and vehicle speed [127]. In order to remove from the measurement data the influence of rotational speed on the data values, further calculations used the parameter of the amount of injected fuel per 1 work cycle, which was calculated on the basis of the dependence: Figure 2 shows the set of points obtained during vehicle tests on a chassis dynamometer, converted to the value of the amount of injected fuel per one injection cycle. further calculations used the parameter of the amount of injected fuel per 1 work cycle, which was calculated on the basis of the dependence: Fuel cycle = Fuel · 0.12/n engine [kg/cycle)] (6) Figure 2 shows the set of points obtained during vehicle tests on a chassis dynamometer, converted to the value of the amount of injected fuel per one injection cycle.

Optimization of the Selection of the Structure of the Neural Network
In order to obtain a neural model characterized by the best degree of adjustment to the research data published by EPA [127], a process of optimizing the selection of the neural network structure was carried out, taking into account the change in the number of input parameters: engine speed, engine torque, vehicle gear number, vehicle speed, and change the number of hidden neurons. In the optimization process, a scalar objective function was used in accordance with the dependence: Figure 3 presents selected results of the optimization process for various tested network structures which differ in the number of input parameters and the number of neurons in the hidden layer, and which obtained the greatest degree of matching to the research data in many iterations.
The relative error was 4.7% for the selected neural network structure.
For the further stages of building a vehicle simulation in road tests, it was decided to select a neural network structure with two inputs for the input signals: engine rotational speed, engine torque, and 3 neurons in the hidden layer.

Optimization of the Selection of the Structure of the Neural Network
In order to obtain a neural model characterized by the best degree of adjustment to the research data published by EPA [127], a process of optimizing the selection of the neural network structure was carried out, taking into account the change in the number of input parameters: engine speed, engine torque, vehicle gear number, vehicle speed, and change the number of hidden neurons. In the optimization process, a scalar objective function was used in accordance with the dependence: Figure 3 presents selected results of the optimization process for various tested network structures which differ in the number of input parameters and the number of neurons in the hidden layer, and which obtained the greatest degree of matching to the research data in many iterations.
Energies 2021, 14, x FOR PEER REVIEW 9 of 31 Figure 3. Summary of learning results for the best-adjusted neural networks for the characteristic of specific fuel consumption. The calculated relative error between the model and actual data: 2 inputs: engine rotational speed, engine torque; 3rd input: vehicle gear number; 4th input: vehicle speed.

Theoretical Assumptions of the Model
The published test results on the chassis dynamometer were achieved using stand-  The relative error was 4.7% for the selected neural network structure.
For the further stages of building a vehicle simulation in road tests, it was decided to select a neural network structure with two inputs for the input signals: engine rotational speed, engine torque, and 3 neurons in the hidden layer.

Theoretical Assumptions of the Model
The published test results on the chassis dynamometer were achieved using standard, commercially available diesel fuel. The assumptions of the work done on the simulation of the vehicle in driving tests included the introduction of a functionality that enabled the determination of the consumption of other fuels used to power diesel engines. It is with the use of the neural model, on the basis of the instantaneous values of the engine-generated torque and the engine rotational speed, that the instantaneous values of the fuel stream for diesel are obtained from the dependence: .
Then, the calorific value is calculated in the simulation, in the case of using a fuel other than diesel or mixtures thereof, from the dependence: The calculations assumed that, for the instantaneous load resulting from the rotational engine speed and the engine-generated torque, a stream of another fuel must provide the same amount of energy over time as in the case of diesel, and the efficiency of operation in the case of an engine powered by other fuels is the same as for diesel fuel, for a given calculation point. In this case, the instantaneous stream of fuels other than diesel is calculated from the dependence: Figure 4 presents the flow of the instantaneous values of the specific fuel consumption as a function of the engine rotational speed and the engine-generated torque for 4 types of fuels used in the simulation (diesel, FAME, rapeseed oil, butanol).  For the calculation of carbon dioxide emissivity, it was possible to calculate the mass content of carbon in the analyzed fuel, based on the available information on the chemical compositions of the individual components of the mixture, the mass content of the fuel in the mixture and the instantaneous fuel stream resulting from the engine operating conditions using the dependence: For the calculation of carbon dioxide emissivity, it was possible to calculate the mass content of carbon in the analyzed fuel, based on the available information on the chemical compositions of the individual components of the mixture, the mass content of the fuel in the mixture and the instantaneous fuel stream resulting from the engine operating conditions using the dependence:

Driving Test Generator
Based on the collected data of operational parameters of the vehicle in question and using the "Gearshift calculation tool" [123] application, runs for simulation control were created for the following drive tests:  [41,148].
After the complete information about the vehicle has been entered, the program enables the generation of the necessary waveforms in the time domain, which enable the determination of the instantaneous operating parameters of the analyzed programme. Then, these waveforms were exported to the Excel file format. For further stages of the simulation, the instantaneous waveforms of the following quantities were used: simulation time

Simulator
Based on the analysis of the data created with the use of the "Gearshift Calculation Tool" programme, the results of the process of optimization of the neural network structures and the properties of the biofuels in question, a driving test simulator was developed in Scilab 6.1.0. The simulator consists of blocks responsible for individual functionalities, whose connection schematic is presented in Figure 5: • Driving test generator from Excel files-responsible for loading files with data controlling the selected driving test process from the spreadsheet created with the use of the "Gearshift Calculation Tool" programme and for converting the read data to formats compatible with Scilab 6.1.0. The following parameters are transferred to the calculation modules of the simulation: engine speed, engine torque, vehicle speed, simulation time; • Model of specific Diesel consumption (neural)-this block calculates the instantaneous values of Diesel mass flow and transfers this parameter to the next block, based on the quantities characterizing the engine's operating parameters: engine speed, engine torque and the prepared neural network structure; • Calculations of fuel and CO 2 mass flows-this block is responsible for calculating the streams of the biofuels in question necessary to power the engine in the driving test, using the diesel mass flow parameter and the fuel calorific value characteristic for the given fuel in question, calculated in the previous block. This block also calculates the carbon dioxide emission stream using the carbon mass content in the fuel and the instantaneous fuel stream; • Calculation of driving test parameters-on the basis of the driving test parameters, this block calculates the distance travelled by the vehicle during the test, the power generated by the engine and the mechanical energy generated during the test.
trolling the selected driving test process from the spreadsheet created with the use of the "Gearshift Calculation Tool" programme and for converting the read data to formats compatible with Scilab 6.1.0. The following parameters are transferred to the calculation modules of the simulation: engine speed, engine torque, vehicle speed, simulation time;  Model of specific Diesel consumption (neural)-this block calculates the instantaneous values of Diesel mass flow and transfers this parameter to the next block, based on the quantities characterizing the engine's operating parameters: engine speed, engine torque and the prepared neural network structure;  Calculations of fuel and CO2 mass flows-this block is responsible for calculating the streams of the biofuels in question necessary to power the engine in the driving test, using the diesel mass flow parameter and the fuel calorific value characteristic for the given fuel in question, calculated in the previous block. This block also calculates the carbon dioxide emission stream using the carbon mass content in the fuel and the instantaneous fuel stream;  Calculation of driving test parameters-on the basis of the driving test parameters, this block calculates the distance travelled by the vehicle during the test, the power generated by the engine and the mechanical energy generated during the test.

Results
The following are the processes of independent simulations of a selected 2013 Mercedes E350 vehicle in the applied driving tests with fuels changing (Diesel, FAME, rapeseed oil, butanol): • the results of the simulation work for the processed data from EPA tests, which are learning models for the neural network • the results of the driving test simulator for the prepared drive tests (the "Gearshift Calculation Tool" programme) in the form of graphs of the vehicle speed, distance travelled, engine rotational speed, engine torque, engine power, and mechanical energy consumed during the test • the simulation results for the stream and final fuel consumption • the simulation results for the stream and carbon dioxide emissions for selected driving tests and selected fuels for the 2013 Mercedes E350 vehicle • the results of the fuel consumption and CO 2 emissivity per 1 km of the distance travelled by the vehicle in the tests and per 1 kWh of the generated mechanical energy power in the test.

Simulation Work Results for Processed EPA Test
In order to verify the correct operation of the drive test simulator, the published data were used from actual vehicle tests carried out by EPA. The input data was transformed in such a way that they can be entered into the simulator. As a result of the simulator's work, the instantaneous values of the key simulation parameters were obtained, which are presented in the figures below ( Figure 6) [122]. power in the test.

Simulation Work Results for Processed EPA Test
In order to verify the correct operation of the drive test simulator, the published data were used from actual vehicle tests carried out by EPA. The input data was transformed in such a way that they can be entered into the simulator. As a result of the simulator's work, the instantaneous values of the key simulation parameters were obtained, which are presented in the figures below ( Figure 6) [122].

Simulation Work Results for the Introduced Driving Tests
On the basis of the prepared input data, using the "Gearshift Calculation Tool" programme, simulations were carried out of selected driving tests for the vehicle in question.

Simulation Work Results for the Introduced Driving Tests
On the basis of the prepared input data, using the "Gearshift Calculation Tool" programme, simulations were carried out of selected driving tests for the vehicle in question.

Simulation Work Results for the Introduced Driving Tests
On the basis of the prepared input data, using the "Gearshift Calculation Tool" programme, simulations were carried out of selected driving tests for the vehicle in question. Figure 7 below shows the waveforms of the instantaneous vehicle speed values in the test. These waveforms indicate large variability of this parameter in simulated tests, including the mean values, the dynamics of changes and the distribution of the values over time. The simulated tests were also characterized by high variability of the time of execution.    Other input parameters for the driving test simulator were the instantaneous values of the engine rotational speed and the torque generated by the engine, whose waveforms are presented below. In the developed driving test simulator, the instantaneous values of the power generated by the engine and the mechanical energy consumed during the test were calculated. Figure 9 shows the waveforms of these parameters.

Simulation Results for the Stream and Final Fuel Consumption for Selected Driving Tests and Fuels
On the basis of the diesel oil stream values calculated in the simulator, including the calorific values of the fuels in question, the instantaneous values of these fuels' streams Other input parameters for the driving test simulator were the instantaneous values of the engine rotational speed and the torque generated by the engine, whose waveforms are presented below.
In the developed driving test simulator, the instantaneous values of the power generated by the engine and the mechanical energy consumed during the test were calculated. Figure 9 shows the waveforms of these parameters.  Other input parameters for the driving test simulator were the instantaneous values of the engine rotational speed and the torque generated by the engine, whose waveforms are presented below. In the developed driving test simulator, the instantaneous values of the power generated by the engine and the mechanical energy consumed during the test were calculated. Figure 9 shows the waveforms of these parameters.

Simulation Results for the Stream and Final Fuel Consumption for Selected Driving Tests and Fuels
On the basis of the diesel oil stream values calculated in the simulator, including the calorific values of the fuels in question, the instantaneous values of these fuels' streams

Simulation Results for the Stream and Final Fuel Consumption for Selected Driving Tests and Fuels
On the basis of the diesel oil stream values calculated in the simulator, including the calorific values of the fuels in question, the instantaneous values of these fuels' streams and their mass consumption were calculated for the tests in question. The figures below summarize the obtained waveforms of the instantaneous values of fuel streams and the mass consumption of fuels in a given driving test in question ( Figure 10).

The Results of the Simulation of Carbon Dioxide Flux and Emission for Selected Driving Tests and Fuels
As a result of the vehicle simulation processes carried out for selected driving tests, taking into account various fuels, the instantaneous values of the carbon dioxide flux and its emissivity during the test were obtained. The figures below (Figure 11) show the results of the simulator's work in the form of carbon dioxide streams and its emissivity, taking into account the fuels considered for individual simulated tests.

The Results of the Simulation of Carbon Dioxide Flux and Emission for Selected Driving Tests and Fuels
As a result of the vehicle simulation processes carried out for selected driving tests, taking into account various fuels, the instantaneous values of the carbon dioxide flux and its emissivity during the test were obtained. The figures below (Figure 11) show the results of the simulator's work in the form of carbon dioxide streams and its emissivity, taking into account the fuels considered for individual simulated tests.

Discussion
A computer simulation is an economical and time-effective alternative to replace costly road tests. It is especially important in the early stages of the product line development cycle. The driving cycle is only an approximation of the vehicle operating conditions on the road. It is performed on a chassis dynamometer. The vehicle is immobilized throughout the test. By applying a load by means of rollers, usually connected to electrical machines, the axles of the vehicle are driven. Road loads (aerodynamics, inertia) must be simulated by a dynamometer.
The developed computer tool is used to analyze fuel consumption and CO 2 emissions in the context of driving tests and the fuels used. Figure 12 presents the results of the simulator work for the fuels in question and driving tests in the form of the fuel consumption parameter per one kilometer travelled in the test. For diesel, the minimum value was reached at the level of 44 g/km for the US highway driving test, while the maximum value was obtained at the Random Cycle High (x95) test (69.8 g/km). In the case of the biofuels in question, this parameter indicates an increase in the biofuel demand in the simulated tests in relation to diesel fuel. For these biofuels, the increase in relation to diesel fuel approximately amounted to: rapeseed oil-16%, FAME-19%, butanol-33%. The main reason for the increase in the engine's demand for biofuels is their much lower calorific value in relation to diesel oil. Figure 13 presents the results of the simulator work for the fuels and driving tests in question, in the form of the carbon dioxide emission parameter per one kilometer travelled in the test. For diesel, the minimum value was achieved at the level of 140 g/km for the US highway test, while the maximum value was obtained at the Random Cycle High (x95) test (221 g/km). In the case of the biofuels in question, the changes in the values of carbon dioxide emissions per one kilometer of the distance travelled in relation to diesel oil were approximately: rapeseed oil-4%, FAME-7.2%, butanol--0.2%. The main reason for the changes in the carbon dioxide emissivity of these fuels in relation to diesel oil is their chemical composition.
the test. For diesel, the minimum value was reached at the level of 44 g/km for the US highway driving test, while the maximum value was obtained at the Random Cycle High (x95) test (69.8 g/km). In the case of the biofuels in question, this parameter indicates an increase in the biofuel demand in the simulated tests in relation to diesel fuel. For these biofuels, the increase in relation to diesel fuel approximately amounted to: rapeseed oil-16%, FAME-19%, butanol-33%. The main reason for the increase in the engine's demand for biofuels is their much lower calorific value in relation to diesel oil.  Figure 13 presents the results of the simulator work for the fuels and driving tests in question, in the form of the carbon dioxide emission parameter per one kilometer travelled in the test. For diesel, the minimum value was achieved at the level of 140 g/km for the US highway test, while the maximum value was obtained at the Random Cycle High (x95) test (221 g/km). In the case of the biofuels in question, the changes in the values of carbon dioxide emissions per one kilometer of the distance travelled in relation to diesel oil were approximately: rapeseed oil-4%, FAME-7.2%, butanol--0.2%. The main reason for the changes in the carbon dioxide emissivity of these fuels in relation to diesel oil is their chemical composition.  Figure 14 shows the data obtained from the simulations of driving tests, including biofuels, in the form of the mass consumption parameter of a given fuel per unit of mechanical energy produced (1 kilowatt hour). For diesel, the minimum value was achieved at the level of 297 g/kWh for the Random Cycle High (x95) driving test, while the maximum value was obtained for the FTP 75 test (434 g/kWh). In the case of the biofuels in question, the changes in the values of carbon dioxide emissions per one kilometer of the distance travelled in relation to diesel fuel approximately amounted to: rapeseed oil-16%, FAME-19%, butanol-33%.  Figure 14 shows the data obtained from the simulations of driving tests, including biofuels, in the form of the mass consumption parameter of a given fuel per unit of mechanical energy produced (1 kilowatt hour). For diesel, the minimum value was achieved at the level of 297 g/kWh for the Random Cycle High (x95) driving test, while the maximum value was obtained for the FTP 75 test (434 g/kWh). In the case of the biofuels in question, the changes in the values of carbon dioxide emissions per one kilometer of the distance travelled in relation to diesel fuel approximately amounted to: rapeseed oil-16%, FAME-19%, butanol-33%.  Figure 15 presents the results of the simulator work for the considered fuels and driving tests in the form of the carbon dioxide emission parameter per unit of mechanical energy produced (1 kilowatt hour). For diesel, the minimum value was achieved at 942 g/kWh for the Random Cycle High (x95) driving test, while the maximum value was obtained for the FTP 75 (x95) test (g/kWh). In the case of the biofuels in question, the changes in the values of carbon dioxide emissions per one kilometer of the distance travelled in relation to diesel oil were approximately: rapeseed oil-4%, FAME-7.2%, butanol--0.2%.

Conclusions
The paper presents a computer tool for simulating driving tests valid in the European Union and outside it (e.g., in the USA), developed in the Scilab 6.  Figure 15 presents the results of the simulator work for the considered fuels and driving tests in the form of the carbon dioxide emission parameter per unit of mechanical energy produced (1 kilowatt hour). For diesel, the minimum value was achieved at 942 g/kWh for the Random Cycle High (x95) driving test, while the maximum value was obtained for the FTP 75 (x95) test (g/kWh). In the case of the biofuels in question, the changes in the values of carbon dioxide emissions per one kilometer of the distance travelled in relation to diesel oil were approximately: rapeseed oil-4%, FAME-7.2%, butanol--0.2%.  Figure 15 presents the results of the simulator work for the considered fuels and driving tests in the form of the carbon dioxide emission parameter per unit of mechanical energy produced (1 kilowatt hour). For diesel, the minimum value was achieved at 942 g/kWh for the Random Cycle High (x95) driving test, while the maximum value was obtained for the FTP 75 (x95) test (g/kWh). In the case of the biofuels in question, the changes in the values of carbon dioxide emissions per one kilometer of the distance travelled in relation to diesel oil were approximately: rapeseed oil-4%, FAME-7.2%, butanol--0.2%.

Conclusions
The paper presents a computer tool for simulating driving tests valid in the European Union and outside it (e.g., in the USA), developed in the Scilab 6.

Conclusions
The paper presents a computer tool for simulating driving tests valid in the European Union and outside it (e.g., in the USA), developed in the Scilab 6.1.0 program. The developed simulator uses the data created with the use of the "Gearshift Calculation Tool" programme, the results from the process of optimization of the neural network structures and the properties of the biofuels in question.

•
There were 12 drive tests analyzed in this study. These tests differed from one another in terms of the distance required to be covered by the car during the test and the speed achieved. An additional parameter was the inclusion of the additional fuel consumption and pollutant emissions caused by the operation of the mobile air conditioning system. • The neural model used in the developed computer tool made it possible to calculate the instantaneous value of the fuel stream as a function of the engine rotational speed, the torque generated by the engine, the gear number in the transmission and the vehicle speed. The data obtained during the 2013 Mercedes E350 vehicle tests on a chassis dynamometer were used for its construction. • Multilayer Feedforward Backpropagation Neural Networks with approximating properties were used to build the neural model. The Levenberg-Marquardt algorithm was used in the network learning process. The relative error for the selected neural network structure was 4.7%.

•
Taking into account the consumption of a given fuel per kilometer in the test for diesel fuel, the minimum value was achieved at the level of 44 g/km for the US Highway driving test. The diesel maximum value was achieved in the Random Cycle High (x95) driving test (69.8 g/km). In the case of the biofuels used, the demand was higher in relation to diesel oil: rapeseed oil-16%, FAME-19%, butanol-33%. This was due to the generally lower calorific value of biofuels. • When analyzing the emission of carbon dioxide per kilometer for diesel fuel, the minimum value was achieved at 140 g/km for the US Highway driving test, while the maximum value was achieved in the Random Cycle High (x95) test (221 g/km). In the case of the analyzed biofuels, the emission of carbon dioxide per one kilometer of the distance travelled in relation to diesel fuel was as follows: rapeseed oil-4%, FAME-7.2%, butanol--0.2%.

•
From the point of view of the parameter of the mass consumption of fuel per unit of mechanical energy generated (1 kilowatt hour) for diesel fuel, the minimum value achieved in the simulation test was 297 g/kWh for the Random Cycle High drive test (x95), while the maximum value was obtained for the FTP 75 test (434 g/kWh). • However, when analyzing the emission of carbon dioxide per unit of mechanical energy generated (1 kilowatt hour) for diesel, the minimum value was 942 g/kWh for the Random Cycle High driving test (x95) and the maximum value was obtained for the FTP 75 (x95) test (g/kWh). The changes in the values of carbon dioxide emissions per one kilometer of the distance travelled in relation to diesel fuel were as follows: rapeseed oil-4%, FAME-7.2%, butanol--0.2%.
The aim of the research was to obtain information, generated by a constructed computer tool using neural networks to simulate driving tests, about CO 2 emissions when using different fuels. Therefore, in the manuscript, the author focused on building a solution which is a computer simulation that would allow to estimate the instantaneous consumption of the various fuels used so as to provide an equal amount of chemical energy contained in the fuels at later stages, in which part of this energy is converted into work. Taking into account the chemical composition of the fuel (including the share of carbon, hydrogen, oxygen) and according to the chemical reactions of the fuel combustion processes, the momentary values of the CO 2 stream are calculated.
The manuscript uses the test results of the Mercedes E350 published by the EPA as a basis for building a computer simulation. Analyses of the work of the developed ALPHA EPA solution made it possible to put forward a hypothesis that it is possible to obtain a quantitative model of specific fuel consumption as a function of engine speed, torque generated by the engine, transmission ratio using neural networks with a reverse error propagation algorithm Levenberg-Marquardt learning algorithm characterized by a high degree of matching to research data. The proposed solution will enable in future research work to develop simplified models for many vehicles and to build large structures to simulate the emissivity and fuel consumption of many vehicles in urban and extra-urban driving conditions, which could affect critical areas of roads with high traffic intensity and its impact on the environment. Learning processes of many neural network structures were carried out, resulting in satisfactory accuracy of quantitative models, comparable to other research projects.
The developed neural model is only a part of the simulation, the results of which are presented in the manuscript. The simulation also has elements that allow for engine calculations based on vehicle dynamics, calculations based on loads corresponding to rolling losses and aerodynamic loads of a moving vehicle in accordance with the assumptions made by the EPA in real driving tests. Data Availability Statement: All data are presented in this article. Data sharing is not applicable to this article.

Conflicts of Interest:
The author declare no conflict of interest.