![]() |
Eclipse SUMO - Simulation of Urban MObility
|
Helper methods for HBEFA3-based emission computation. More...
#include <HelpersHBEFA3.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. | |
| std::string | getAmitranVehicleClass (const SUMOEmissionClass c) const |
| Returns the vehicle class described by this emission class as described in the Amitran interface (Passenger, ...). | |
| SUMOEmissionClass | getClass (const SUMOEmissionClass base, const std::string &vClass, const std::string &fuel, const std::string &eClass, const double weight) const |
| Returns the emission class described by the given parameters. | |
| int | getEuroClass (const SUMOEmissionClass c) const |
| Returns the Euro emission class described by this emission class as described in the Amitran interface (0, ..., 6). | |
| std::string | getFuel (const SUMOEmissionClass c) const |
| Returns the fuel type described by this emission class as described in the Amitran interface (Gasoline, Diesel, ...). | |
| HelpersHBEFA3 () | |
| Constructor (initializes myEmissionClassStrings). | |
Static Private Attributes | |
| static const int | HBEFA3_BASE = 2 << 16 |
| static double | myFunctionParameter [45][6][6] |
| The function parameter. | |
Helper methods for HBEFA3-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 HelpersHBEFA3.h.
| HelpersHBEFA3::HelpersHBEFA3 | ( | ) |
Constructor (initializes myEmissionClassStrings).
Definition at line 448 of file HelpersHBEFA3.cpp.
References HBEFA3_BASE, and StringUtils::to_lower_case().
|
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 if volumetric fuel has been requested. Coasting and an engine which is off by the given param result 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] |
| [in] | param | parameter of the emission model (only used for the coasting deceleration and to determine whether the engine is off) |
Definition at line 97 of file HelpersHBEFA3.h.
References DEG2RAD, getFuel(), GRAVITY, HBEFA3_BASE, EnergyParams::isEngineOff(), MAX2(), myFunctionParameter, and ZERO_SPEED_ACCURACY.
| std::string HelpersHBEFA3::getAmitranVehicleClass | ( | const SUMOEmissionClass | c | ) | const |
Returns the vehicle class described by this emission class as described in the Amitran interface (Passenger, ...).
| [in] | c | the emission class |
Definition at line 517 of file HelpersHBEFA3.cpp.
| SUMOEmissionClass HelpersHBEFA3::getClass | ( | const SUMOEmissionClass | base, |
| const std::string & | vClass, | ||
| const std::string & | fuel, | ||
| const std::string & | eClass, | ||
| const double | weight ) const |
Returns the emission class described by the given parameters.
| [in] | base | the base class giving the default |
| [in] | vClass | the vehicle class as described in the Amitran interface (Passenger, ...) |
| [in] | fuel | the fuel type as described in the Amitran interface (Gasoline, Diesel, ...) |
| [in] | eClass | the emission class as described in the Amitran interface (Euro0, ...) |
| [in] | weight | the vehicle weight in kg as described in the Amitran interface |
Definition at line 474 of file HelpersHBEFA3.cpp.
| int HelpersHBEFA3::getEuroClass | ( | const SUMOEmissionClass | c | ) | const |
Returns the Euro emission class described by this emission class as described in the Amitran interface (0, ..., 6).
| [in] | c | the emission class |
Definition at line 544 of file HelpersHBEFA3.cpp.
| std::string HelpersHBEFA3::getFuel | ( | const SUMOEmissionClass | c | ) | const |
Returns the fuel type described by this emission class as described in the Amitran interface (Gasoline, Diesel, ...).
| [in] | c | the emission class |
Definition at line 533 of file HelpersHBEFA3.cpp.
Referenced by compute().
|
staticprivate |
Definition at line 47 of file HelpersHBEFA3.h.
Referenced by compute(), and HelpersHBEFA3().
|
staticprivate |