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

This helper class allows the PollutantsInterface to load and use different MMPEVEMs. More...

#include <HelpersMMPEVEM.h>

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

Public Member Functions

double compute (const SUMOEmissionClass, const PollutantsInterface::EmissionType e, const double v, const double a, const double slope, const EnergyParams *ptr_energyParams) const
 Compute the amount of emitted pollutants for an emission class in a given state.
std::string getFuel (const SUMOEmissionClass) const
 Returns the fuel type described by this emission class as described in the Amitran interface (Gasoline, Diesel, ...).
double getWeight (const SUMOEmissionClass) const
 Returns a reference weight in kg described by this emission class This implementation returns the default mass for this model.
 HelpersMMPEVEM ()
 Constructor.

Static Private Attributes

static const int MMPEVEM_BASE = 5 << 16

Detailed Description

This helper class allows the PollutantsInterface to load and use different MMPEVEMs.

Definition at line 43 of file HelpersMMPEVEM.h.

Constructor & Destructor Documentation

◆ HelpersMMPEVEM()

HelpersMMPEVEM::HelpersMMPEVEM ( )

Constructor.

Definition at line 171 of file HelpersMMPEVEM.cpp.

References MMPEVEM_BASE.

Member Function Documentation

◆ compute()

double HelpersMMPEVEM::compute ( const SUMOEmissionClass c,
const PollutantsInterface::EmissionType e,
const double v,
const double a,
const double slope,
const EnergyParams * ptr_energyParams ) const

Compute the amount of emitted pollutants for an emission class in a given state.

This method returns 0 for all emission types but electric power consumption.

Parameters
[in]cAn emission class
[in]eAn emission type
[in]vCurrent vehicle velocity [m/s]
[in]aCurrent acceleration of the vehicle [m/s^2]
[in]slopeSlope of the road at the vehicle's current position [deg]
Returns
The electric power consumption [Wh/s] or 0 for all other emission types

This method returns 0 for all emission types but electric power consumption.

Parameters
[in]cAn emission class
[in]eAn emission type
[in]vCurrent vehicle velocity [m/s]
[in]aCurrent acceleration of the vehicle [m/s^2]
[in]slopeSlope of the road at the vehicle's current position [deg]
[in]ptr_energyParamsVehicle parameters
Returns
The electric power consumption [Wh/s] or 0 for all other emission types

Definition at line 192 of file HelpersMMPEVEM.cpp.

References calcPowerConsumption(), EnergyParams::getCharacteristicMap(), EnergyParams::getDoubleOptional(), EnergyParams::getTotalMass(), getWeight(), SUMO_ATTR_AIRDRAGCOEFFICIENT, SUMO_ATTR_CONSTANTPOWERINTAKE, SUMO_ATTR_FRONTSURFACEAREA, SUMO_ATTR_GEAREFFICIENCY, SUMO_ATTR_GEARRATIO, SUMO_ATTR_INTERNALBATTERYRESISTANCE, SUMO_ATTR_INTERNALMOMENTOFINERTIA, SUMO_ATTR_MAXIMUMPOWER, SUMO_ATTR_MAXIMUMRECUPERATIONPOWER, SUMO_ATTR_MAXIMUMRECUPERATIONTORQUE, SUMO_ATTR_MAXIMUMTORQUE, SUMO_ATTR_NOMINALBATTERYVOLTAGE, SUMO_ATTR_POWERLOSSMAP, SUMO_ATTR_ROLLDRAGCOEFFICIENT, SUMO_ATTR_WHEELRADIUS, and TS.

◆ getFuel()

std::string HelpersMMPEVEM::getFuel ( const SUMOEmissionClass ) const
inline

Returns the fuel type described by this emission class as described in the Amitran interface (Gasoline, Diesel, ...).

Parameters
[in]cthe emission class
Returns
always "Electricity"

Definition at line 58 of file HelpersMMPEVEM.h.

◆ getWeight()

double HelpersMMPEVEM::getWeight ( const SUMOEmissionClass ) const
inline

Returns a reference weight in kg described by this emission class This implementation returns the default mass for this model.

Parameters
[in]cthe emission class
Returns
a reference weight

Definition at line 67 of file HelpersMMPEVEM.h.

Referenced by compute().

Here is the caller graph for this function:

Field Documentation

◆ MMPEVEM_BASE

const int HelpersMMPEVEM::MMPEVEM_BASE = 5 << 16
staticprivate

Definition at line 45 of file HelpersMMPEVEM.h.

Referenced by HelpersMMPEVEM().


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