SUMO - Simulation of Urban MObility
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
HelpersPHEMlight Class Reference

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...
 

Detailed Description

Helper methods for PHEMlight-based emission computation.

Definition at line 48 of file HelpersPHEMlight.h.

Member Function Documentation

SUMOReal HelpersPHEMlight::computeCO ( SUMOEmissionClass  c,
double  v,
double  a,
double  slope 
)
static

Returns the amount of emitted CO given the vehicle type and state (in mg/s)

Parameters
[in]cThe vehicle emission class
[in]vThe vehicle's current velocity
[in]aThe vehicle's current acceleration
[in]slopeThe road's slope at vehicle's position [°]
Returns
The amount of CO emitted by the given vehicle class when moving with the given velocity and acceleration [mg/s]

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().

SUMOReal HelpersPHEMlight::computeCO2 ( SUMOEmissionClass  c,
double  v,
double  a,
double  slope 
)
static

Returns the amount of emitted CO2 given the vehicle type and state (in mg/s)

Parameters
[in]cThe vehicle emission class
[in]vThe vehicle's current velocity
[in]aThe vehicle's current acceleration
[in]slopeThe road's slope at vehicle's position [°]
Returns
The amount of CO2 emitted by the given vehicle class when moving with the given velocity and acceleration [mg/s]

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().

SUMOReal HelpersPHEMlight::computeFuel ( SUMOEmissionClass  c,
double  v,
double  a,
double  slope 
)
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)

Parameters
[in]cThe vehicle emission class
[in]vThe vehicle's current velocity
[in]aThe vehicle's current acceleration
[in]slopeThe road's slope at vehicle's position [°]
Returns
The amount of fuel consumed by the given vehicle class when moving with the given velocity and acceleration [ml/s]

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().

SUMOReal HelpersPHEMlight::computeHC ( SUMOEmissionClass  c,
double  v,
double  a,
double  slope 
)
static

Returns the amount of emitted HC given the vehicle type and state (in mg/s)

Parameters
[in]cThe vehicle emission class
[in]vThe vehicle's current velocity
[in]aThe vehicle's current acceleration
[in]slopeThe road's slope at vehicle's position [°]
Returns
The amount of HC emitted by the given vehicle class when moving with the given velocity and acceleration [mg/s]

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().

SUMOReal HelpersPHEMlight::computeNOx ( SUMOEmissionClass  c,
double  v,
double  a,
double  slope 
)
static

Returns the amount of emitted NOx given the vehicle type and state (in mg/s)

Parameters
[in]cThe vehicle emission class
[in]vThe vehicle's current velocity
[in]aThe vehicle's current acceleration
[in]slopeThe road's slope at vehicle's position [°]
Returns
The amount of NOx emitted by the given vehicle class when moving with the given velocity and acceleration [mg/s]

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().

SUMOReal HelpersPHEMlight::computePMx ( SUMOEmissionClass  c,
double  v,
double  a,
double  slope 
)
static

Returns the amount of emitted PMx given the vehicle type and state (in mg/s)

Parameters
[in]cThe vehicle emission class
[in]vThe vehicle's current velocity
[in]aThe vehicle's current acceleration
[in]slopeThe road's slope at vehicle's position [°]
Returns
The amount of PMx emitted by the given vehicle class when moving with the given velocity and acceleration [mg/s]

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().

SUMOReal HelpersPHEMlight::getMaxAccel ( SUMOEmissionClass  c,
double  v,
double  a,
double  slope 
)
static

Returns the maximum possible acceleration.

Parameters
[in]cThe vehicle emission class
[in]vThe vehicle's current velocity
[in]aThe vehicle's current acceleration
[in]slopeThe road's slope at vehicle's position [°]
Returns
The maximum possible acceleration

Definition at line 46 of file HelpersPHEMlight.cpp.

References PHEMCEPHandler::GetCep(), PHEMCEPHandler::getHandlerInstance(), and PHEMCEP::GetMaxAccel().

Referenced by PollutantsInterface::getMaxAccel().


The documentation for this class was generated from the following files: