SUMO - Simulation of Urban MObility
|
Helper methods for PHEMlight-based emission computation. More...
#include <HelpersPHEMlight.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 | 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 HelpersPHEMlight.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 53 of file HelpersPHEMlight.cpp.
References PHEMCEP::CalcPower(), PHEMCEPHandler::GetCep(), PHEMCEP::GetEmission(), PHEMCEPHandler::getHandlerInstance(), and SECONDS_PER_HOUR.
Referenced by PollutantsInterface::computeCO(), and PollutantsInterface::computeDefaultCO().
|
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 61 of file HelpersPHEMlight.cpp.
References PHEMCEP::CalcPower(), PHEMCEPHandler::GetCep(), PHEMCEP::GetEmission(), PHEMCEPHandler::getHandlerInstance(), and SECONDS_PER_HOUR.
Referenced by PollutantsInterface::computeCO2(), and PollutantsInterface::computeDefaultCO2().
|
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 93 of file HelpersPHEMlight.cpp.
References PHEMCEP::CalcPower(), PHEMCEPHandler::GetCep(), PHEMCEP::GetEmission(), PHEMCEPHandler::getHandlerInstance(), PHEMCEP::GetVehicleFuelType(), and SECONDS_PER_HOUR.
Referenced by PollutantsInterface::computeDefaultFuel(), and PollutantsInterface::computeFuel().
|
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 69 of file HelpersPHEMlight.cpp.
References PHEMCEP::CalcPower(), PHEMCEPHandler::GetCep(), PHEMCEP::GetEmission(), PHEMCEPHandler::getHandlerInstance(), and SECONDS_PER_HOUR.
Referenced by PollutantsInterface::computeDefaultHC(), and PollutantsInterface::computeHC().
|
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 77 of file HelpersPHEMlight.cpp.
References PHEMCEP::CalcPower(), PHEMCEPHandler::GetCep(), PHEMCEP::GetEmission(), PHEMCEPHandler::getHandlerInstance(), and SECONDS_PER_HOUR.
Referenced by PollutantsInterface::computeDefaultNOx(), and PollutantsInterface::computeNOx().
|
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 85 of file HelpersPHEMlight.cpp.
References PHEMCEP::CalcPower(), PHEMCEPHandler::GetCep(), PHEMCEP::GetEmission(), PHEMCEPHandler::getHandlerInstance(), and SECONDS_PER_HOUR.
Referenced by PollutantsInterface::computeDefaultPMx(), and PollutantsInterface::computePMx().
|
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 HelpersPHEMlight.cpp.
References PHEMCEPHandler::GetCep(), PHEMCEPHandler::getHandlerInstance(), and PHEMCEP::GetMaxAccel().
Referenced by PollutantsInterface::getMaxAccel().