SUMO - Simulation of Urban MObility
|
Helper methods for PHEMlight-based emission computation. More...
#include <PollutantsInterface.h>
Static Public Member Functions | |
static SUMOReal | computeCO (SUMOEmissionClass c, double v, double a, double slope) |
Returns the amount of emitted CO given the vehicle type and state (in mg/s) More... | |
static SUMOReal | computeCO2 (SUMOEmissionClass c, double v, double a, double slope) |
Returns the amount of emitted CO2 given the vehicle type and state (in mg/s) More... | |
static SUMOReal | computeDefaultCO (SUMOEmissionClass c, double v, double a, double slope, SUMOReal tt) |
Returns the amount of emitted CO given the vehicle type and default values for the state (in mg) More... | |
static SUMOReal | computeDefaultCO2 (SUMOEmissionClass c, double v, double a, double slope, SUMOReal tt) |
Returns the amount of emitted CO2 given the vehicle type and default values for the state (in mg) More... | |
static SUMOReal | computeDefaultFuel (SUMOEmissionClass c, double v, double a, double slope, SUMOReal tt) |
Returns the amount of fuel given the vehicle type and default values for the state (in ml) More... | |
static SUMOReal | computeDefaultHC (SUMOEmissionClass c, double v, double a, double slope, SUMOReal tt) |
Returns the amount of emitted HC given the vehicle type and default values for the state (in mg) More... | |
static SUMOReal | computeDefaultNOx (SUMOEmissionClass c, double v, double a, double slope, SUMOReal tt) |
Returns the amount of emitted NOx given the vehicle type and default values for the state (in mg) More... | |
static SUMOReal | computeDefaultPMx (SUMOEmissionClass c, double v, double a, double slope, SUMOReal tt) |
Returns the amount of emitted PMx given the vehicle type and default values for the state (in mg) More... | |
static SUMOReal | computeFuel (SUMOEmissionClass c, double v, double a, double slope) |
Returns the amount of consumed fuel given the vehicle type and state (in ml/s) More... | |
static SUMOReal | computeHC (SUMOEmissionClass c, double v, double a, double slope) |
Returns the amount of emitted HC given the vehicle type and state (in mg/s) More... | |
static SUMOReal | computeNOx (SUMOEmissionClass c, double v, double a, double slope) |
Returns the amount of emitted NOx given the vehicle type and state (in mg/s) More... | |
static SUMOReal | computePMx (SUMOEmissionClass c, double v, double a, double slope) |
Returns the amount of emitted PMx given the vehicle type and state (in mg/s) More... | |
static SUMOReal | getMaxAccel (SUMOEmissionClass c, double v, double a, double slope) |
Returns the maximum possible acceleration. More... | |
Helper methods for PHEMlight-based emission computation.
Definition at line 48 of file PollutantsInterface.h.
|
static |
Returns the amount of emitted CO given the vehicle type and state (in mg/s)
[in] | c | The vehicle emission class |
[in] | v | The vehicle's current velocity |
[in] | a | The vehicle's current acceleration |
[in] | slope | The road's slope at vehicle's position [°] |
Definition at line 58 of file PollutantsInterface.cpp.
References HelpersHBEFA::computeCO(), HelpersPHEMlight::computeCO(), SVE_META_HBEFA21_END, and SVE_META_PHEMLIGHT_END.
Referenced by ROEdge::buildTimeLines(), MSVehicle::getCOEmissions(), main(), MSDevice_Emissions::notifyMove(), MSMeanData_Emissions::MSLaneMeanDataValues::notifyMoveInternal(), and single().
|
static |
Returns the amount of emitted CO2 given the vehicle type and state (in mg/s)
[in] | c | The vehicle emission class |
[in] | v | The vehicle's current velocity |
[in] | a | The vehicle's current acceleration |
[in] | slope | The road's slope at vehicle's position [°] |
Definition at line 70 of file PollutantsInterface.cpp.
References HelpersHBEFA::computeCO2(), HelpersPHEMlight::computeCO2(), SVE_META_HBEFA21_END, and SVE_META_PHEMLIGHT_END.
Referenced by ROEdge::buildTimeLines(), MSVehicle::getCO2Emissions(), main(), MSDevice_Emissions::notifyMove(), MSMeanData_Emissions::MSLaneMeanDataValues::notifyMoveInternal(), and single().
|
static |
Returns the amount of emitted CO given the vehicle type and default values for the state (in mg)
[in] | c | The vehicle emission class |
[in] | v | The vehicle's average velocity |
[in] | a | The vehicle's average acceleration |
[in] | slope | The road's slope at vehicle's position [°] |
in] | tt the time the vehicle travels |
Definition at line 132 of file PollutantsInterface.cpp.
References HelpersHBEFA::computeCO(), HelpersPHEMlight::computeCO(), SVE_META_HBEFA21_END, and SVE_META_PHEMLIGHT_END.
Referenced by ROEdge::getCOEffort(), and MSMeanData_Emissions::MSLaneMeanDataValues::write().
|
static |
Returns the amount of emitted CO2 given the vehicle type and default values for the state (in mg)
[in] | c | The vehicle emission class |
[in] | v | The vehicle's average velocity |
[in] | a | The vehicle's average acceleration |
[in] | slope | The road's slope at vehicle's position [°] |
in] | tt the time the vehicle travels |
Definition at line 144 of file PollutantsInterface.cpp.
References HelpersHBEFA::computeCO2(), HelpersPHEMlight::computeCO2(), SVE_META_HBEFA21_END, and SVE_META_PHEMLIGHT_END.
Referenced by ROEdge::getCO2Effort(), and MSMeanData_Emissions::MSLaneMeanDataValues::write().
|
static |
Returns the amount of fuel given the vehicle type and default values for the state (in ml)
[in] | c | The vehicle emission class |
[in] | v | The vehicle's average velocity |
[in] | a | The vehicle's average acceleration |
[in] | slope | The road's slope at vehicle's position [°] |
in] | tt the time the vehicle travels |
Definition at line 192 of file PollutantsInterface.cpp.
References HelpersHBEFA::computeFuel(), HelpersPHEMlight::computeFuel(), SVE_META_HBEFA21_END, and SVE_META_PHEMLIGHT_END.
Referenced by ROEdge::getFuelEffort(), and MSMeanData_Emissions::MSLaneMeanDataValues::write().
|
static |
Returns the amount of emitted HC given the vehicle type and default values for the state (in mg)
[in] | c | The vehicle emission class |
[in] | v | The vehicle's average velocity |
[in] | a | The vehicle's average acceleration |
[in] | slope | The road's slope at vehicle's position [°] |
in] | tt the time the vehicle travels |
Definition at line 156 of file PollutantsInterface.cpp.
References HelpersHBEFA::computeHC(), HelpersPHEMlight::computeHC(), SVE_META_HBEFA21_END, and SVE_META_PHEMLIGHT_END.
Referenced by ROEdge::getHCEffort(), and MSMeanData_Emissions::MSLaneMeanDataValues::write().
|
static |
Returns the amount of emitted NOx given the vehicle type and default values for the state (in mg)
[in] | c | The vehicle emission class |
[in] | v | The vehicle's average velocity |
[in] | a | The vehicle's average acceleration |
[in] | slope | The road's slope at vehicle's position [°] |
in] | tt the time the vehicle travels |
Definition at line 168 of file PollutantsInterface.cpp.
References HelpersHBEFA::computeNOx(), HelpersPHEMlight::computeNOx(), SVE_META_HBEFA21_END, and SVE_META_PHEMLIGHT_END.
Referenced by ROEdge::getNOxEffort(), and MSMeanData_Emissions::MSLaneMeanDataValues::write().
|
static |
Returns the amount of emitted PMx given the vehicle type and default values for the state (in mg)
[in] | c | The vehicle emission class |
[in] | v | The vehicle's average velocity |
[in] | a | The vehicle's average acceleration |
[in] | slope | The road's slope at vehicle's position [°] |
in] | tt the time the vehicle travels |
Definition at line 180 of file PollutantsInterface.cpp.
References HelpersHBEFA::computePMx(), HelpersPHEMlight::computePMx(), SVE_META_HBEFA21_END, and SVE_META_PHEMLIGHT_END.
Referenced by ROEdge::getPMxEffort(), and MSMeanData_Emissions::MSLaneMeanDataValues::write().
|
static |
Returns the amount of consumed fuel given the vehicle type and state (in ml/s)
As the general function returns mg/s, this implementation scales with 790 (average density of fuel)
[in] | c | The vehicle emission class |
[in] | v | The vehicle's current velocity |
[in] | a | The vehicle's current acceleration |
[in] | slope | The road's slope at vehicle's position [°] |
Definition at line 118 of file PollutantsInterface.cpp.
References HelpersHBEFA::computeFuel(), HelpersPHEMlight::computeFuel(), SVE_META_HBEFA21_END, and SVE_META_PHEMLIGHT_END.
Referenced by ROEdge::buildTimeLines(), MSVehicle::getFuelConsumption(), main(), MSDevice_Emissions::notifyMove(), MSMeanData_Emissions::MSLaneMeanDataValues::notifyMoveInternal(), and single().
|
static |
Returns the amount of emitted HC given the vehicle type and state (in mg/s)
[in] | c | The vehicle emission class |
[in] | v | The vehicle's current velocity |
[in] | a | The vehicle's current acceleration |
[in] | slope | The road's slope at vehicle's position [°] |
Definition at line 82 of file PollutantsInterface.cpp.
References HelpersHBEFA::computeHC(), HelpersPHEMlight::computeHC(), SVE_META_HBEFA21_END, and SVE_META_PHEMLIGHT_END.
Referenced by ROEdge::buildTimeLines(), MSVehicle::getHCEmissions(), main(), MSDevice_Emissions::notifyMove(), MSMeanData_Emissions::MSLaneMeanDataValues::notifyMoveInternal(), and single().
|
static |
Returns the amount of emitted NOx given the vehicle type and state (in mg/s)
[in] | c | The vehicle emission class |
[in] | v | The vehicle's current velocity |
[in] | a | The vehicle's current acceleration |
[in] | slope | The road's slope at vehicle's position [°] |
Definition at line 94 of file PollutantsInterface.cpp.
References HelpersHBEFA::computeNOx(), HelpersPHEMlight::computeNOx(), SVE_META_HBEFA21_END, and SVE_META_PHEMLIGHT_END.
Referenced by ROEdge::buildTimeLines(), MSVehicle::getNOxEmissions(), main(), MSDevice_Emissions::notifyMove(), MSMeanData_Emissions::MSLaneMeanDataValues::notifyMoveInternal(), and single().
|
static |
Returns the amount of emitted PMx given the vehicle type and state (in mg/s)
[in] | c | The vehicle emission class |
[in] | v | The vehicle's current velocity |
[in] | a | The vehicle's current acceleration |
[in] | slope | The road's slope at vehicle's position [°] |
Definition at line 106 of file PollutantsInterface.cpp.
References HelpersHBEFA::computePMx(), HelpersPHEMlight::computePMx(), SVE_META_HBEFA21_END, and SVE_META_PHEMLIGHT_END.
Referenced by ROEdge::buildTimeLines(), MSVehicle::getPMxEmissions(), main(), MSDevice_Emissions::notifyMove(), MSMeanData_Emissions::MSLaneMeanDataValues::notifyMoveInternal(), and single().
|
static |
Returns the maximum possible acceleration.
[in] | c | The vehicle emission class |
[in] | v | The vehicle's current velocity |
[in] | a | The vehicle's current acceleration |
[in] | slope | The road's slope at vehicle's position [°] |
Definition at line 46 of file PollutantsInterface.cpp.
References HelpersPHEMlight::getMaxAccel(), SVE_META_HBEFA21_END, and SVE_META_PHEMLIGHT_END.