Eclipse SUMO - Simulation of Urban MObility
|
#include <config.h>
#include <utils/common/SUMOTime.h>
#include <utils/common/StringUtils.h>
#include <utils/geom/GeomHelper.h>
#include <utils/emissions/CharacteristicMap.h>
#include <utils/emissions/HelpersMMPEVEM.h>
Go to the source code of this file.
Functions | |
bool | calcPowerConsumption (double m, double r_wheel, double Theta, double c_rr, double c_d, double A_front, double i_gear, double eta_gear, double M_max, double P_max, double M_recup_max, double P_recup_max, double R_battery, double U_battery_0, double P_const, const CharacteristicMap &ref_powerLossMap, double dt, double v, double a, double alpha, double &ref_powerConsumption) |
Compute the power consumption of an EV powertrain in a certain state. | |
Definition in file HelpersMMPEVEM.cpp.
bool calcPowerConsumption | ( | double | m, |
double | r_wheel, | ||
double | Theta, | ||
double | c_rr, | ||
double | c_d, | ||
double | A_front, | ||
double | i_gear, | ||
double | eta_gear, | ||
double | M_max, | ||
double | P_max, | ||
double | M_recup_max, | ||
double | P_recup_max, | ||
double | R_battery, | ||
double | U_battery_0, | ||
double | P_const, | ||
const CharacteristicMap & | ref_powerLossMap, | ||
double | dt, | ||
double | v, | ||
double | a, | ||
double | alpha, | ||
double & | ref_powerConsumption | ||
) |
Compute the power consumption of an EV powertrain in a certain state.
The model assumes that the driver recuperates as much energy as possible, meaning that he perfectly employs the mechanical brakes such that only what lies beyond the motor's capabilities is dissipated. If the new state is invalid, that is the demanded acceleration exceeds what the electric motor can manage or the power loss map is not defined for a given point, the torque and/or power are capped to the motor's limits or the power loss is set to zero.
[in] | m | Vehicle mass [kg] |
[in] | r_wheel | Wheel radius [m] |
[in] | Theta | Moment of inertia [kg*m^2] |
[in] | c_rr | Rolling resistance coefficient [1] |
[in] | c_d | Drag coefficient [1] |
[in] | A_front | Cross-sectional area of the front of the car [m^2] |
[in] | i_gear | Gear ratio (i_gear = n_motor/n_wheel) [1] |
[in] | eta_gear | Gear efficiency [1] |
[in] | M_max | Maximum torque of the EM [Nm] |
[in] | P_max | Maximum power of the EM [W] |
[in] | M_recup_max | Maximum recuperation torque [Nm] |
[in] | P_recup_max | Maximum recuperation power [W] |
[in] | R_battery | Internal battery resistance [Ohm] |
[in] | U_battery_0 | Nominal battery voltage [V] |
[in] | P_const | Constant power consumption of ancillary devices [W] |
[in] | ref_powerLossMap | Power loss map of the EM + inverter |
[in] | dt | Simulation timestep [s] |
[in] | v | Vehicle speed at the end of a timestep [m/s] |
[in] | a | Constant acceleration during a timestep [m/s^2] |
[in] | alpha | Constant incline during a timestep [deg] |
[out] | ref_powerConsumption | Power consumption during the last timestep [W] |
Definition at line 72 of file HelpersMMPEVEM.cpp.
References DEG2RAD, CharacteristicMap::eval(), GRAVITY, and M_PI.
Referenced by HelpersMMPEVEM::compute().