![]() |
Eclipse SUMO - Simulation of Urban MObility
|
This helper class allows the PollutantsInterface to load and use different MMPEVEMs. More...
#include <HelpersMMPEVEM.h>
Public Member Functions | |
| double | compute (const SUMOEmissionClass, const PollutantsInterface::EmissionType e, const double v, const double a, const double slope, const EnergyParams *ptr_energyParams) const |
| Compute the amount of emitted pollutants for an emission class in a given state. | |
| std::string | getFuel (const SUMOEmissionClass) const |
| Returns the fuel type described by this emission class as described in the Amitran interface (Gasoline, Diesel, ...). | |
| double | getWeight (const SUMOEmissionClass) const |
| Returns a reference weight in kg described by this emission class This implementation returns the default mass for this model. | |
| HelpersMMPEVEM () | |
| Constructor. | |
Static Private Attributes | |
| static const int | MMPEVEM_BASE = 5 << 16 |
This helper class allows the PollutantsInterface to load and use different MMPEVEMs.
Definition at line 43 of file HelpersMMPEVEM.h.
| HelpersMMPEVEM::HelpersMMPEVEM | ( | ) |
| double HelpersMMPEVEM::compute | ( | const SUMOEmissionClass | c, |
| const PollutantsInterface::EmissionType | e, | ||
| const double | v, | ||
| const double | a, | ||
| const double | slope, | ||
| const EnergyParams * | ptr_energyParams ) const |
Compute the amount of emitted pollutants for an emission class in a given state.
This method returns 0 for all emission types but electric power consumption.
| [in] | c | An emission class |
| [in] | e | An emission type |
| [in] | v | Current vehicle velocity [m/s] |
| [in] | a | Current acceleration of the vehicle [m/s^2] |
| [in] | slope | Slope of the road at the vehicle's current position [deg] |
This method returns 0 for all emission types but electric power consumption.
| [in] | c | An emission class |
| [in] | e | An emission type |
| [in] | v | Current vehicle velocity [m/s] |
| [in] | a | Current acceleration of the vehicle [m/s^2] |
| [in] | slope | Slope of the road at the vehicle's current position [deg] |
| [in] | ptr_energyParams | Vehicle parameters |
Definition at line 192 of file HelpersMMPEVEM.cpp.
References calcPowerConsumption(), EnergyParams::getCharacteristicMap(), EnergyParams::getDoubleOptional(), EnergyParams::getTotalMass(), getWeight(), SUMO_ATTR_AIRDRAGCOEFFICIENT, SUMO_ATTR_CONSTANTPOWERINTAKE, SUMO_ATTR_FRONTSURFACEAREA, SUMO_ATTR_GEAREFFICIENCY, SUMO_ATTR_GEARRATIO, SUMO_ATTR_INTERNALBATTERYRESISTANCE, SUMO_ATTR_INTERNALMOMENTOFINERTIA, SUMO_ATTR_MAXIMUMPOWER, SUMO_ATTR_MAXIMUMRECUPERATIONPOWER, SUMO_ATTR_MAXIMUMRECUPERATIONTORQUE, SUMO_ATTR_MAXIMUMTORQUE, SUMO_ATTR_NOMINALBATTERYVOLTAGE, SUMO_ATTR_POWERLOSSMAP, SUMO_ATTR_ROLLDRAGCOEFFICIENT, SUMO_ATTR_WHEELRADIUS, and TS.
|
inline |
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 58 of file HelpersMMPEVEM.h.
|
inline |
Returns a reference weight in kg described by this emission class This implementation returns the default mass for this model.
| [in] | c | the emission class |
Definition at line 67 of file HelpersMMPEVEM.h.
Referenced by compute().
|
staticprivate |
Definition at line 45 of file HelpersMMPEVEM.h.
Referenced by HelpersMMPEVEM().