![]() |
Eclipse SUMO - Simulation of Urban MObility
|
Helper methods for HBEFA-based emission computation. More...
#include <HelpersHBEFA.h>
Public Member Functions | |
| double | compute (const SUMOEmissionClass c, const PollutantsInterface::EmissionType e, const double v, const double a, const double slope, const EnergyParams *param) const |
| Computes the emitted pollutant amount using the given speed and acceleration. | |
| HelpersHBEFA () | |
| Constructor (initializes myEmissionClassStrings). | |
Static Private Attributes | |
| static const int | HBEFA_BASE = 1 << 16 |
| static double | myFunctionParameter [42][36] |
| The function parameter. | |
Helper methods for HBEFA-based emission computation.
The parameter are stored per vehicle class; 6*6 parameter are used, sorted by the pollutant (CO2, CO, HC, fuel, NOx, PMx), and the function part (c0, cav1, cav2, c1, c2, c3).
Definition at line 45 of file HelpersHBEFA.h.
| HelpersHBEFA::HelpersHBEFA | ( | ) |
Constructor (initializes myEmissionClassStrings).
Definition at line 134 of file HelpersHBEFA.cpp.
References HBEFA_BASE, and toString().
|
inline |
Computes the emitted pollutant amount using the given speed and acceleration.
As the functions are defining emissions in g/hour, the function's result is normed by 3.6 (seconds in an hour/1000) yielding mg/s. For fuel ml/s is returned. Negative acceleration results directly in zero emission.
| [in] | c | emission class for the function parameters to use |
| [in] | e | the type of emission (CO, CO2, ...) |
| [in] | v | The vehicle's current velocity |
| [in] | a | The vehicle's current acceleration |
| [in] | slope | The road's slope at vehicle's position [deg] |
Definition at line 68 of file HelpersHBEFA.h.
References GRAVITY, HBEFA_BASE, EnergyParams::isEngineOff(), MAX2(), myFunctionParameter, RAD2DEG, and ZERO_SPEED_ACCURACY.
|
staticprivate |
Definition at line 47 of file HelpersHBEFA.h.
Referenced by compute(), and HelpersHBEFA().
|
staticprivate |