Vehicle Emission and Fuel consumption logs in File Output #35
-
Hello Team, Is it possible to get the emission and fuel consumption logs of vehicles through "FileOutput" configurations? If possible, could you please let me know the config required for it? Thanks. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
It is possible to configure the FileOutput to write out fuel/emission values. For example, the <subscription id="VehicleUpdates">
<entries>
<entry>"VEHICLE_EMISSIONS"</entry>
<entry>Time</entry>
<entry>Updated:Name</entry>
<entry>Updated:VehicleEmissions.CurrentEmissions.Co2</entry>
<entry>Updated:VehicleEmissions.CurrentEmissions.Co</entry>
<entry>Updated:VehicleEmissions.CurrentEmissions.Hc</entry>
<entry>Updated:VehicleEmissions.CurrentEmissions.Pmx</entry>
<entry>Updated:VehicleEmissions.CurrentEmissions.Nox</entry>
<entry>Updated:VehicleConsumptions.CurrentConsumptions.Fuel</entry>
<entry>Updated:VehicleEmissions.AllEmissions.Co2</entry>
<entry>Updated:VehicleEmissions.AllEmissions.Co</entry>
<entry>Updated:VehicleEmissions.AllEmissions.Hc</entry>
<entry>Updated:VehicleEmissions.AllEmissions.Pmx</entry>
<entry>Updated:VehicleEmissions.AllEmissions.Nox</entry>
<entry>Updated:VehicleConsumptions.AllConsumptions.Fuel</entry>
</entries>
</subscription> This is of course only an example and can be adapted to your needs. The actual values are not calculated by MOSAIC, but by the traffic simulator SUMO. Consequently, you need to adjust the configuration of SUMO as well. Let's suppose you have various vehicle types configured in your If you use the latest release 20.0, add the following line for each type you want to measure to the *.rou.xml in the <vType id="Car" emissionClass="HBEFA3/PC_G_EU4" /> If you're using the current main branch instead, add the following to the "additionalVehicleTypeParameters": {
"Car": {
"emissionClass" : "HBEFA3/PC_G_EU4"
}
} The emission class should be chosen according to this site. |
Beta Was this translation helpful? Give feedback.
It is possible to configure the FileOutput to write out fuel/emission values. For example, the
output_config.xml
ofthe Barnim scenario already includes such configuration. You would need to add the following entries to your configuration: