Eclipse SUMO - Simulation of Urban MObility
|
#include <EngineParameters.h>
Data Structures | |
struct | GearShiftingRules |
struct | PolynomialEngineModelRpmToHp |
Public Member Functions | |
void | computeCoefficients () |
void | dumpParameters (std::ostream &out) |
EngineParameters () | |
EngineParameters (const EngineParameters &other) | |
EngineParameters & | operator= (const EngineParameters &other) |
virtual | ~EngineParameters () |
Data Fields | |
double | __airFrictionCoefficient |
double | __brakesAlpha |
double | __brakesOneMinusAlpha |
double | __cr1 |
double | __cr2 |
double | __engineTau1 |
double | __engineTau2 |
double | __engineTauDe_s |
double | __gravity |
double | __maxAccelerationCoefficient |
double | __maxNoSlipAcceleration |
double | __rpmToSpeedCoefficient |
double | __speedToRpmCoefficient |
double | __speedToThrustCoefficient |
double | a_m2 |
double | brakesTau_s |
double | cAir |
double | cr1 |
double | cr2 |
int | cylinders |
double | differentialRatio |
double | dt |
double | engineEfficiency |
struct PolynomialEngineModelRpmToHp | engineMapping |
bool | fixedTauBurn |
double * | gearRatios |
std::string | id |
double | mass_kg |
double | massFactor |
double | maxRpm |
double | minRpm |
double | minSpeed |
int | nGears |
double | rho_kgpm3 |
struct GearShiftingRules | shiftingRule |
double | slope |
double | tauBurn_s |
double | tauEx_s |
double | tiresFrictionCoefficient |
double | wheelDiameter_m |
Definition at line 35 of file EngineParameters.h.
EngineParameters::EngineParameters | ( | ) |
Definition at line 27 of file EngineParameters.cpp.
References computeCoefficients(), EngineParameters::PolynomialEngineModelRpmToHp::degree, EngineParameters::GearShiftingRules::deltaRpm, engineMapping, gearRatios, nGears, EngineParameters::GearShiftingRules::rpm, shiftingRule, and EngineParameters::PolynomialEngineModelRpmToHp::x.
EngineParameters::EngineParameters | ( | const EngineParameters & | other | ) |
Definition at line 52 of file EngineParameters.cpp.
References computeCoefficients(), EngineParameters::PolynomialEngineModelRpmToHp::degree, EngineParameters::GearShiftingRules::deltaRpm, engineMapping, gearRatios, id, nGears, EngineParameters::GearShiftingRules::rpm, shiftingRule, and EngineParameters::PolynomialEngineModelRpmToHp::x.
|
virtual |
Definition at line 109 of file EngineParameters.cpp.
References gearRatios.
void EngineParameters::computeCoefficients | ( | ) |
Computes the precomputed coefficients used to speedup the model
Definition at line 113 of file EngineParameters.cpp.
References __airFrictionCoefficient, __brakesAlpha, __brakesOneMinusAlpha, __cr1, __cr2, __engineTau1, __engineTau2, __engineTauDe_s, __gravity, __maxAccelerationCoefficient, __maxNoSlipAcceleration, __rpmToSpeedCoefficient, __speedToRpmCoefficient, __speedToThrustCoefficient, a_m2, brakesTau_s, cAir, cr1, cr2, cylinders, differentialRatio, dt, engineEfficiency, GRAVITY_MPS2, HP_TO_W, M_PI, mass_kg, massFactor, rho_kgpm3, slope, tauBurn_s, tauEx_s, tiresFrictionCoefficient, and wheelDiameter_m.
Referenced by EngineParameters(), EngineParameters(), RealisticEngineModel::loadParameters(), VehicleEngineHandler::myEndElement(), and operator=().
void EngineParameters::dumpParameters | ( | std::ostream & | out | ) |
Writes the parameter to an output stream, for debugging purposes
Definition at line 130 of file EngineParameters.cpp.
References a_m2, brakesTau_s, cAir, cr1, cr2, cylinders, EngineParameters::PolynomialEngineModelRpmToHp::degree, EngineParameters::GearShiftingRules::deltaRpm, differentialRatio, dt, engineEfficiency, engineMapping, gearRatios, mass_kg, massFactor, maxRpm, minRpm, nGears, rho_kgpm3, EngineParameters::GearShiftingRules::rpm, shiftingRule, slope, tiresFrictionCoefficient, wheelDiameter_m, and EngineParameters::PolynomialEngineModelRpmToHp::x.
EngineParameters & EngineParameters::operator= | ( | const EngineParameters & | other | ) |
Definition at line 71 of file EngineParameters.cpp.
References a_m2, brakesTau_s, cAir, computeCoefficients(), cr1, cr2, cylinders, EngineParameters::PolynomialEngineModelRpmToHp::degree, EngineParameters::GearShiftingRules::deltaRpm, differentialRatio, dt, engineEfficiency, engineMapping, fixedTauBurn, gearRatios, id, mass_kg, massFactor, maxRpm, minRpm, nGears, rho_kgpm3, EngineParameters::GearShiftingRules::rpm, shiftingRule, slope, tauBurn_s, tauEx_s, tiresFrictionCoefficient, wheelDiameter_m, and EngineParameters::PolynomialEngineModelRpmToHp::x.
double EngineParameters::__airFrictionCoefficient |
Definition at line 77 of file EngineParameters.h.
Referenced by RealisticEngineModel::airDrag_N(), and computeCoefficients().
double EngineParameters::__brakesAlpha |
Definition at line 118 of file EngineParameters.h.
Referenced by computeCoefficients(), and RealisticEngineModel::getRealBrakingAcceleration().
double EngineParameters::__brakesOneMinusAlpha |
Definition at line 119 of file EngineParameters.h.
Referenced by computeCoefficients(), and RealisticEngineModel::getRealBrakingAcceleration().
double EngineParameters::__cr1 |
Definition at line 81 of file EngineParameters.h.
Referenced by computeCoefficients(), and RealisticEngineModel::rollingResistance_N().
double EngineParameters::__cr2 |
Definition at line 81 of file EngineParameters.h.
Referenced by computeCoefficients(), and RealisticEngineModel::rollingResistance_N().
double EngineParameters::__engineTau1 |
Definition at line 115 of file EngineParameters.h.
Referenced by computeCoefficients(), and RealisticEngineModel::getEngineTimeConstant_s().
double EngineParameters::__engineTau2 |
Definition at line 116 of file EngineParameters.h.
Referenced by computeCoefficients(), and RealisticEngineModel::getEngineTimeConstant_s().
double EngineParameters::__engineTauDe_s |
Definition at line 117 of file EngineParameters.h.
Referenced by computeCoefficients(), and RealisticEngineModel::getEngineTimeConstant_s().
double EngineParameters::__gravity |
Definition at line 85 of file EngineParameters.h.
Referenced by computeCoefficients(), and RealisticEngineModel::gravityForce_N().
double EngineParameters::__maxAccelerationCoefficient |
Definition at line 114 of file EngineParameters.h.
Referenced by computeCoefficients(), RealisticEngineModel::maxEngineAcceleration_mps2(), and RealisticEngineModel::thrust_NToAcceleration_mps2().
double EngineParameters::__maxNoSlipAcceleration |
Definition at line 89 of file EngineParameters.h.
Referenced by computeCoefficients(), and RealisticEngineModel::maxNoSlipAcceleration_mps2().
double EngineParameters::__rpmToSpeedCoefficient |
Definition at line 111 of file EngineParameters.h.
Referenced by computeCoefficients(), and RealisticEngineModel::rpmToSpeed_mps().
double EngineParameters::__speedToRpmCoefficient |
Definition at line 112 of file EngineParameters.h.
Referenced by computeCoefficients(), RealisticEngineModel::speed_mpsToRpm(), and RealisticEngineModel::speed_mpsToRpm().
double EngineParameters::__speedToThrustCoefficient |
Definition at line 113 of file EngineParameters.h.
Referenced by computeCoefficients(), and RealisticEngineModel::speed_mpsToThrust_N().
double EngineParameters::a_m2 |
Definition at line 75 of file EngineParameters.h.
Referenced by computeCoefficients(), dumpParameters(), VehicleEngineHandler::myStartElement(), and operator=().
double EngineParameters::brakesTau_s |
Definition at line 105 of file EngineParameters.h.
Referenced by computeCoefficients(), dumpParameters(), VehicleEngineHandler::myStartElement(), and operator=().
double EngineParameters::cAir |
Definition at line 75 of file EngineParameters.h.
Referenced by computeCoefficients(), dumpParameters(), VehicleEngineHandler::myStartElement(), and operator=().
double EngineParameters::cr1 |
Definition at line 79 of file EngineParameters.h.
Referenced by computeCoefficients(), dumpParameters(), VehicleEngineHandler::myStartElement(), and operator=().
double EngineParameters::cr2 |
Definition at line 79 of file EngineParameters.h.
Referenced by computeCoefficients(), dumpParameters(), VehicleEngineHandler::myStartElement(), and operator=().
int EngineParameters::cylinders |
Definition at line 99 of file EngineParameters.h.
Referenced by computeCoefficients(), dumpParameters(), VehicleEngineHandler::myStartElement(), and operator=().
double EngineParameters::differentialRatio |
Definition at line 69 of file EngineParameters.h.
Referenced by computeCoefficients(), dumpParameters(), RealisticEngineModel::loadParameters(), VehicleEngineHandler::myStartElement(), operator=(), and RealisticEngineModel::RealisticEngineModel().
double EngineParameters::dt |
Definition at line 101 of file EngineParameters.h.
Referenced by computeCoefficients(), dumpParameters(), RealisticEngineModel::getRealAcceleration(), RealisticEngineModel::loadParameters(), and operator=().
double EngineParameters::engineEfficiency |
Definition at line 95 of file EngineParameters.h.
Referenced by computeCoefficients(), dumpParameters(), VehicleEngineHandler::myStartElement(), and operator=().
struct PolynomialEngineModelRpmToHp EngineParameters::engineMapping |
Definition at line 91 of file EngineParameters.h.
Referenced by dumpParameters(), EngineParameters(), EngineParameters(), VehicleEngineHandler::myStartElement(), operator=(), and RealisticEngineModel::rpmToPower_hp().
bool EngineParameters::fixedTauBurn |
Definition at line 109 of file EngineParameters.h.
Referenced by RealisticEngineModel::getEngineTimeConstant_s(), VehicleEngineHandler::myStartElement(), and operator=().
double* EngineParameters::gearRatios |
Definition at line 67 of file EngineParameters.h.
Referenced by dumpParameters(), EngineParameters(), EngineParameters(), RealisticEngineModel::loadParameters(), VehicleEngineHandler::myEndElement(), operator=(), RealisticEngineModel::performGearShifting(), RealisticEngineModel::RealisticEngineModel(), RealisticEngineModel::rpmToSpeed_mps(), RealisticEngineModel::speed_mpsToRpm(), and ~EngineParameters().
std::string EngineParameters::id |
Definition at line 63 of file EngineParameters.h.
Referenced by EngineParameters(), VehicleEngineHandler::myStartElement(), and operator=().
double EngineParameters::mass_kg |
Definition at line 73 of file EngineParameters.h.
Referenced by computeCoefficients(), dumpParameters(), VehicleEngineHandler::myStartElement(), and operator=().
double EngineParameters::massFactor |
Definition at line 97 of file EngineParameters.h.
Referenced by computeCoefficients(), dumpParameters(), VehicleEngineHandler::myStartElement(), and operator=().
double EngineParameters::maxRpm |
Definition at line 103 of file EngineParameters.h.
Referenced by dumpParameters(), VehicleEngineHandler::myStartElement(), operator=(), and RealisticEngineModel::rpmToPower_hp().
double EngineParameters::minRpm |
Definition at line 103 of file EngineParameters.h.
Referenced by dumpParameters(), RealisticEngineModel::loadParameters(), VehicleEngineHandler::myStartElement(), operator=(), and RealisticEngineModel::RealisticEngineModel().
double EngineParameters::minSpeed |
Definition at line 121 of file EngineParameters.h.
int EngineParameters::nGears |
Definition at line 65 of file EngineParameters.h.
Referenced by dumpParameters(), EngineParameters(), EngineParameters(), VehicleEngineHandler::myEndElement(), operator=(), and RealisticEngineModel::performGearShifting().
double EngineParameters::rho_kgpm3 |
Definition at line 75 of file EngineParameters.h.
Referenced by computeCoefficients(), dumpParameters(), and operator=().
struct GearShiftingRules EngineParameters::shiftingRule |
Definition at line 93 of file EngineParameters.h.
Referenced by dumpParameters(), EngineParameters(), EngineParameters(), VehicleEngineHandler::myStartElement(), operator=(), and RealisticEngineModel::performGearShifting().
double EngineParameters::slope |
Definition at line 83 of file EngineParameters.h.
Referenced by computeCoefficients(), dumpParameters(), and operator=().
double EngineParameters::tauBurn_s |
Definition at line 107 of file EngineParameters.h.
Referenced by computeCoefficients(), VehicleEngineHandler::myStartElement(), and operator=().
double EngineParameters::tauEx_s |
Definition at line 107 of file EngineParameters.h.
Referenced by computeCoefficients(), RealisticEngineModel::getEngineTimeConstant_s(), VehicleEngineHandler::myStartElement(), and operator=().
double EngineParameters::tiresFrictionCoefficient |
Definition at line 87 of file EngineParameters.h.
Referenced by computeCoefficients(), dumpParameters(), VehicleEngineHandler::myStartElement(), and operator=().
double EngineParameters::wheelDiameter_m |
Definition at line 71 of file EngineParameters.h.
Referenced by computeCoefficients(), dumpParameters(), RealisticEngineModel::loadParameters(), VehicleEngineHandler::myStartElement(), operator=(), and RealisticEngineModel::RealisticEngineModel().