21 #ifndef HelpersHBEFA_h 22 #define HelpersHBEFA_h 81 const double kmh = v * 3.6;
85 return (
double)
MAX2((f[0] + f[3] * kmh + f[4] * kmh * kmh + f[5] * kmh * kmh * kmh) / scale, 0.);
91 const double alpha = asin(a / 9.81) * 180. /
M_PI;
92 return (
double)
MAX2((f[0] + f[1] * alpha * kmh + f[2] * alpha * alpha * kmh + f[3] * kmh + f[4] * kmh * kmh + f[5] * kmh * kmh * kmh) / scale, 0.);
EmissionType
Enumerating all emission types, including fuel.
static double myFunctionParameter[42][36]
The function parameter.
#define UNUSED_PARAMETER(x)
static const int ZERO_EMISSIONS
the first class in each model representing a zero emission vehicle
abstract superclass for the model helpers
HelpersHBEFA()
Constructor (initializes myEmissionClassStrings)
Helper methods for HBEFA-based emission computation.
double compute(const SUMOEmissionClass c, const PollutantsInterface::EmissionType e, const double v, const double a, const double slope, const std::map< int, double > *param) const
Computes the emitted pollutant amount using the given speed and acceleration.
Helper methods for PHEMlight-based emission computation.