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

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

#include <HelpersHBEFA.h>

Inheritance diagram for HelpersHBEFA:
[legend]
Collaboration diagram for HelpersHBEFA:
[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.
 HelpersHBEFA ()
 Constructor (initializes myEmissionClassStrings).

Static Private Attributes

static const int HBEFA_BASE = 1 << 16
static double myFunctionParameter [42][36]
 The function parameter.

Detailed Description

Helper methods for HBEFA-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 HelpersHBEFA.h.

Constructor & Destructor Documentation

◆ HelpersHBEFA()

HelpersHBEFA::HelpersHBEFA ( )

Constructor (initializes myEmissionClassStrings).

Definition at line 134 of file HelpersHBEFA.cpp.

References HBEFA_BASE, and toString().

Member Function Documentation

◆ compute()

double HelpersHBEFA::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.

As the functions are defining emissions in g/hour, the function's result is normed by 3.6 (seconds in an hour/1000) yielding mg/s. For fuel ml/s is returned. Negative acceleration results 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]
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 68 of file HelpersHBEFA.h.

References GRAVITY, HBEFA_BASE, EnergyParams::isEngineOff(), MAX2(), myFunctionParameter, RAD2DEG, and ZERO_SPEED_ACCURACY.

Field Documentation

◆ HBEFA_BASE

const int HelpersHBEFA::HBEFA_BASE = 1 << 16
staticprivate

Definition at line 47 of file HelpersHBEFA.h.

Referenced by compute(), and HelpersHBEFA().

◆ myFunctionParameter

double HelpersHBEFA::myFunctionParameter
staticprivate

The function parameter.

Definition at line 32 of file HelpersHBEFA.h.

Referenced by compute().


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