![]() |
Eclipse SUMO - Simulation of Urban MObility
|
Helper methods for HBEFA4-based emission computation. More...
#include <HelpersHBEFA4.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, ...). | |
| HelpersHBEFA4 () | |
| Constructor (initializes myEmissionClassStrings). | |
Static Private Attributes | |
| static const int | HBEFA4_BASE = 7 << 16 |
| static double | myFunctionParameter [833][7][7] |
| The function parameter. | |
Helper methods for HBEFA4-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 HelpersHBEFA4.h.
| HelpersHBEFA4::HelpersHBEFA4 | ( | ) |
Constructor (initializes myEmissionClassStrings).
Definition at line 8373 of file HelpersHBEFA4.cpp.
References HBEFA4_BASE.
|
inline |
Computes the emitted pollutant amount using the given speed and acceleration.
For most emissions the function yields 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 96 of file HelpersHBEFA4.h.
References DEG2RAD, getFuel(), GRAVITY, HBEFA4_BASE, EnergyParams::isEngineOff(), MAX2(), myFunctionParameter, and ZERO_SPEED_ACCURACY.
| std::string HelpersHBEFA4::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 10090 of file HelpersHBEFA4.cpp.
| SUMOEmissionClass HelpersHBEFA4::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 10047 of file HelpersHBEFA4.cpp.
| int HelpersHBEFA4::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 10123 of file HelpersHBEFA4.cpp.
| std::string HelpersHBEFA4::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 10106 of file HelpersHBEFA4.cpp.
Referenced by compute().
|
staticprivate |
Definition at line 47 of file HelpersHBEFA4.h.
Referenced by compute(), and HelpersHBEFA4().
|
staticprivate |