Eclipse SUMO - Simulation of Urban MObility
Loading...
Searching...
No Matches
HelpersHBEFA4 Class Reference

Helper methods for HBEFA4-based emission computation. More...

#include <HelpersHBEFA4.h>

Inheritance diagram for HelpersHBEFA4:
[legend]
Collaboration diagram for HelpersHBEFA4:
[legend]

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.

Detailed Description

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.

Constructor & Destructor Documentation

◆ HelpersHBEFA4()

HelpersHBEFA4::HelpersHBEFA4 ( )

Constructor (initializes myEmissionClassStrings).

Definition at line 8373 of file HelpersHBEFA4.cpp.

References HBEFA4_BASE.

Member Function Documentation

◆ compute()

double HelpersHBEFA4::compute ( const SUMOEmissionClass c,
const PollutantsInterface::EmissionType e,
const double v,
const double a,
const double slope,
const EnergyParams * param ) const
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.

Parameters
[in]cemission class for the function parameters to use
[in]ethe type of emission (CO, CO2, ...)
[in]vThe vehicle's current velocity
[in]aThe vehicle's current acceleration
[in]slopeThe road's slope at vehicle's position [deg]
[in]paramparameter of the emission model (only used for the coasting deceleration and to determine whether the engine is off)
Returns
The amount emitted by the given emission class when moving with the given velocity and acceleration [mg/s or ml/s]

Definition at line 96 of file HelpersHBEFA4.h.

References DEG2RAD, getFuel(), GRAVITY, HBEFA4_BASE, EnergyParams::isEngineOff(), MAX2(), myFunctionParameter, and ZERO_SPEED_ACCURACY.

◆ getAmitranVehicleClass()

std::string HelpersHBEFA4::getAmitranVehicleClass ( const SUMOEmissionClass c) const

Returns the vehicle class described by this emission class as described in the Amitran interface (Passenger, ...).

Parameters
[in]cthe emission class
Returns
the name of the vehicle class

Definition at line 10090 of file HelpersHBEFA4.cpp.

◆ getClass()

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.

Parameters
[in]basethe base class giving the default
[in]vClassthe vehicle class as described in the Amitran interface (Passenger, ...)
[in]fuelthe fuel type as described in the Amitran interface (Gasoline, Diesel, ...)
[in]eClassthe emission class as described in the Amitran interface (Euro0, ...)
[in]weightthe vehicle weight in kg as described in the Amitran interface
Returns
the class described by the parameters

Definition at line 10047 of file HelpersHBEFA4.cpp.

◆ getEuroClass()

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

Parameters
[in]cthe emission class
Returns
the Euro class

Definition at line 10123 of file HelpersHBEFA4.cpp.

◆ getFuel()

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

Parameters
[in]cthe emission class
Returns
the fuel type

Definition at line 10106 of file HelpersHBEFA4.cpp.

Referenced by compute().

Here is the caller graph for this function:

Field Documentation

◆ HBEFA4_BASE

const int HelpersHBEFA4::HBEFA4_BASE = 7 << 16
staticprivate

Definition at line 47 of file HelpersHBEFA4.h.

Referenced by compute(), and HelpersHBEFA4().

◆ myFunctionParameter

double HelpersHBEFA4::myFunctionParameter
staticprivate

The function parameter.

Definition at line 36 of file HelpersHBEFA4.h.

Referenced by compute().


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