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

#include <RealisticEngineModel.h>

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

Public Member Functions

void getEngineData (double speed_mps, int &gear, double &rpm)
 
virtual double getRealAcceleration (double speed_mps, double accel_mps2, double reqAccel_mps2, SUMOTime timeStep=0)
 
void loadParameters ()
 
 RealisticEngineModel ()
 
void setMaximumAcceleration (double maxAcc)
 
void setMaximumDeceleration (double maxDec)
 
virtual void setParameter (const std::string parameter, const std::string &value)
 
virtual void setParameter (const std::string parameter, double value)
 
virtual void setParameter (const std::string parameter, int value)
 
virtual ~RealisticEngineModel ()
 

Protected Member Functions

double airDrag_N (double speed_mps)
 
double airDrag_N (double speed_mps, double cAir, double a_m2, double rho_kgpm3)
 
double getEngineTimeConstant_s (double rpm)
 
double getRealBrakingAcceleration (double speed_mps, double accel_mps2, double reqAccel_mps2, SUMOTime t)
 
double gravityForce_N ()
 
double gravityForce_N (double mass_kg, double slope)
 
double maxEngineAcceleration_mps2 (double speed_mps)
 
double maxNoSlipAcceleration_mps2 ()
 
double maxNoSlipAcceleration_mps2 (double slope, double frictionCoefficient)
 
double opposingForce_N (double speed_mps)
 
double opposingForce_N (double speed_mps, double mass_kg, double slope, double cAir, double a_m2, double rho_kgpm3, double cr1, double cr2)
 
void parseParameter (const Parameterised::Map &parameters, std::string parameter, double &value)
 
void parseParameter (const Parameterised::Map &parameters, std::string parameter, int &value)
 
void parseParameter (const Parameterised::Map &parameters, std::string parameter, std::string &value)
 
int performGearShifting (double speed_mps, double acceleration_mps2)
 
void printParameterError (std::string parameter, std::string value)
 
double rollingResistance_N (double speed_mps)
 
double rollingResistance_N (double speed_mps, double mass_kg, double cr1, double cr2)
 
double rpmToPower_hp (double rpm)
 
double rpmToPower_hp (double rpm, const struct EngineParameters::PolynomialEngineModelRpmToHp *engineMapping)
 
double rpmToSpeed_mps (double rpm)
 
double rpmToSpeed_mps (double rpm, double wheelDiameter_m, double differentialRatio, double gearRatio)
 
double speed_mpsToPower_hp (double speed_mps)
 
double speed_mpsToPower_hp (double speed_mps, const struct EngineParameters::PolynomialEngineModelRpmToHp *engineMapping, double wheelDiameter_m, double differentialRatio, double gearRatio)
 
double speed_mpsToRpm (double speed_mps)
 
double speed_mpsToRpm (double speed_mps, double gearRatio)
 
double speed_mpsToRpm (double speed_mps, double wheelDiameter_m, double differentialRatio, double gearRatio)
 
double speed_mpsToThrust_N (double speed_mps)
 
double speed_mpsToThrust_N (double speed_mps, const struct EngineParameters::PolynomialEngineModelRpmToHp *engineMapping, double wheelDiameter_m, double differentialRatio, double gearRatio, double engineEfficiency)
 
double thrust_NToAcceleration_mps2 (double thrust_N)
 

Protected Attributes

std::string className
 
int currentGear
 
double dt_s
 
EngineParameters ep
 
double maxAcceleration_mpsps
 
double maxDeceleration_mpsps
 
double minSpeed_mps
 
std::string vehicleType
 
std::string xmlFile
 

Detailed Description

This class implements a detailed engine and braking model which takes into account engine characteristics, gear ratios, external forces due to air drag, etc. This class uses a particular notation for variables to take into account both name and unit, to avoid confusion and mistakes. We write the name in camel case, then an underscore, then the unit of measure. For example, engine force in newton (kg * m / s^2) we use

double engineForce_kgmps2

so units which are multiplied are just one next to the other (kgm), "p" denotes "per", while the exponent is just a number attached to the unit (s2). The same notation is used for functions that compute quantities

Definition at line 47 of file RealisticEngineModel.h.

Constructor & Destructor Documentation

◆ RealisticEngineModel()

◆ ~RealisticEngineModel()

RealisticEngineModel::~RealisticEngineModel ( )
virtual

Definition at line 45 of file RealisticEngineModel.cpp.

Member Function Documentation

◆ airDrag_N() [1/2]

double RealisticEngineModel::airDrag_N ( double  speed_mps)
protected

Computes air drag resistance using stored values

Parameters
[in]speed_mpsvehicle speed in meters per second
Returns
air drag force in N

Definition at line 130 of file RealisticEngineModel.cpp.

References EngineParameters::__airFrictionCoefficient, and ep.

◆ airDrag_N() [2/2]

double RealisticEngineModel::airDrag_N ( double  speed_mps,
double  cAir,
double  a_m2,
double  rho_kgpm3 
)
protected

Computes air drag resistance

Parameters
[in]speed_mpsvehicle speed in meters per second
[in]cAirdrag coefficient
[in]a_m2maximum vehicle section in square meters
[in]rho_kgpm3air density in kilograms per cubic meter
Returns
air drag force in N

Definition at line 125 of file RealisticEngineModel.cpp.

Referenced by opposingForce_N(), and opposingForce_N().

Here is the caller graph for this function:

◆ getEngineData()

void RealisticEngineModel::getEngineData ( double  speed_mps,
int &  gear,
double &  rpm 
)

Returns current engine RPM and gear

Parameters
[in]speed_mpscurrent speed
[out]gearcurrent gear
[out]rpmengine's rpm

Definition at line 250 of file RealisticEngineModel.cpp.

References currentGear, and speed_mpsToRpm().

Referenced by MSCFModel_CC::getParameter().

Here is the caller graph for this function:

◆ getEngineTimeConstant_s()

double RealisticEngineModel::getEngineTimeConstant_s ( double  rpm)
protected

Computes the engine actuation time constant as function of the rpm

Parameters
[in]rpmengine rpm
Returns
engine time constant in seconds

Definition at line 205 of file RealisticEngineModel.cpp.

References EngineParameters::__engineTau1, EngineParameters::__engineTau2, EngineParameters::__engineTauDe_s, ep, EngineParameters::fixedTauBurn, TAU_MAX, and EngineParameters::tauEx_s.

Referenced by getRealAcceleration().

Here is the caller graph for this function:

◆ getRealAcceleration()

double RealisticEngineModel::getRealAcceleration ( double  speed_mps,
double  accel_mps2,
double  reqAccel_mps2,
SUMOTime  timeStep = 0 
)
virtual

Computes real vehicle acceleration given current speed, current acceleration, and requested acceleration. If the requested acceleration is negative, then the braking model is invoked

Parameters
[in]speed_mpscurrent speed in meters per second
[in]accel_mps2current acceleration in meters per squared second
[in]reqAccel_mps2requested acceleration in meters per squared second
[in]timeStepcurrent simulation timestep. needed for debugging purposes only
Returns
the real acceleration that the vehicle applies

Implements GenericEngineModel.

Definition at line 222 of file RealisticEngineModel.cpp.

References EngineParameters::dt, ep, getEngineTimeConstant_s(), getRealBrakingAcceleration(), maxEngineAcceleration_mps2(), maxNoSlipAcceleration_mps2(), minSpeed_mps, opposingForce_N(), performGearShifting(), speed_mpsToRpm(), and thrust_NToAcceleration_mps2().

◆ getRealBrakingAcceleration()

double RealisticEngineModel::getRealBrakingAcceleration ( double  speed_mps,
double  accel_mps2,
double  reqAccel_mps2,
SUMOTime  t 
)
protected

Computes real vehicle deceleration

Parameters
[in]speed_mpscurrent speed in meters per second
[in]accel_mps2current vehicle acceleration in meters per squared second
[in]reqAccel_mps2the requested deceleration in meters per squared second. Notice that this value must be negative
[in]thereal deceleration in meters per squared second. Notice that the returned value is an acceleration, you should not invert it

Definition at line 256 of file RealisticEngineModel.cpp.

References EngineParameters::__brakesAlpha, EngineParameters::__brakesOneMinusAlpha, ep, maxNoSlipAcceleration_mps2(), opposingForce_N(), thrust_NToAcceleration_mps2(), and UNUSED_PARAMETER.

Referenced by getRealAcceleration().

Here is the caller graph for this function:

◆ gravityForce_N() [1/2]

double RealisticEngineModel::gravityForce_N ( )
protected

Computes gravitational force using stored values

Returns
gravitational force in N

Definition at line 150 of file RealisticEngineModel.cpp.

References EngineParameters::__gravity, and ep.

Referenced by opposingForce_N(), and opposingForce_N().

Here is the caller graph for this function:

◆ gravityForce_N() [2/2]

double RealisticEngineModel::gravityForce_N ( double  mass_kg,
double  slope = 0 
)
protected

Computes gravitational force due to slope

Parameters
[in]mass_kgvehicle mass in kg
[in]sloperoad slope in degrees
Returns
gravitational force in N

Definition at line 145 of file RealisticEngineModel.cpp.

References GRAVITY_MPS2, and M_PI.

◆ loadParameters()

void RealisticEngineModel::loadParameters ( )

Load parameters from xml file

Definition at line 270 of file RealisticEngineModel.cpp.

References EngineParameters::computeCoefficients(), EngineParameters::differentialRatio, EngineParameters::dt, dt_s, ep, EngineParameters::gearRatios, VehicleEngineHandler::getEngineParameters(), EngineParameters::minRpm, minSpeed_mps, rpmToSpeed_mps(), XMLSubSys::runParser(), vehicleType, EngineParameters::wheelDiameter_m, and xmlFile.

Referenced by setParameter().

Here is the caller graph for this function:

◆ maxEngineAcceleration_mps2()

double RealisticEngineModel::maxEngineAcceleration_mps2 ( double  speed_mps)
protected

Computes maximum vehicle acceleration. This function computes the maximum acceleration at the wheel, considering tires friction but without considering air friction, rolling resistance, and road slope.

Parameters
[in]speed_mpscurrent speed in meters per second
Returns
the maximum engine acceleration at the wheel, as provided by the engine, if no tire slip occur

Definition at line 200 of file RealisticEngineModel.cpp.

References EngineParameters::__maxAccelerationCoefficient, ep, and speed_mpsToThrust_N().

Referenced by getRealAcceleration().

Here is the caller graph for this function:

◆ maxNoSlipAcceleration_mps2() [1/2]

double RealisticEngineModel::maxNoSlipAcceleration_mps2 ( )
protected

Computes maximum acceleration without slipping tires using stored values

Returns
maximum acceleration without slipping tires in meters per squared second

Definition at line 174 of file RealisticEngineModel.cpp.

References EngineParameters::__maxNoSlipAcceleration, and ep.

Referenced by getRealAcceleration(), and getRealBrakingAcceleration().

Here is the caller graph for this function:

◆ maxNoSlipAcceleration_mps2() [2/2]

double RealisticEngineModel::maxNoSlipAcceleration_mps2 ( double  slope,
double  frictionCoefficient 
)
protected

Computes maximum acceleration without slipping tires

Parameters
[in]sloperoad slope in degrees
[in]frictionCoefficienttires friction coefficient
Returns
maximum acceleration without slipping tires in meters per squared second

Definition at line 169 of file RealisticEngineModel.cpp.

References GRAVITY_MPS2, and M_PI.

◆ opposingForce_N() [1/2]

double RealisticEngineModel::opposingForce_N ( double  speed_mps)
protected

Computes total opposing force, using stored values

Parameters
[in]speed_mpsspeed in meters per second
Returns
total opposing force in N

Definition at line 164 of file RealisticEngineModel.cpp.

References airDrag_N(), gravityForce_N(), and rollingResistance_N().

◆ opposingForce_N() [2/2]

double RealisticEngineModel::opposingForce_N ( double  speed_mps,
double  mass_kg,
double  slope,
double  cAir,
double  a_m2,
double  rho_kgpm3,
double  cr1,
double  cr2 
)
protected

Computes total opposing force, i.e., air drag, rolling resistance, and gravity

Parameters
[in]speed_mpsspeed in meters per second
[in]mass_kgvehicle mass in kg
[in]sloperoad slope in degrees
[in]cAirdrag coefficient
[in]a_m2maximum vehicle section in square meters
[in]rho_kgpm3air density in kilograms per cubic meter
[in]cr1tires parameter
[in]cr2tires parameter
Returns
total opposing force in N

Definition at line 155 of file RealisticEngineModel.cpp.

References airDrag_N(), gravityForce_N(), and rollingResistance_N().

Referenced by getRealAcceleration(), and getRealBrakingAcceleration().

Here is the caller graph for this function:

◆ parseParameter() [1/3]

void GenericEngineModel::parseParameter ( const Parameterised::Map parameters,
std::string  parameter,
double &  value 
)
protectedinherited

Parses a value from the parameter map

Definition at line 32 of file GenericEngineModel.cpp.

References GenericEngineModel::printParameterError(), and StringUtils::toDouble().

Referenced by FirstOrderLagModel::loadParameters().

Here is the caller graph for this function:

◆ parseParameter() [2/3]

void GenericEngineModel::parseParameter ( const Parameterised::Map parameters,
std::string  parameter,
int &  value 
)
protectedinherited

◆ parseParameter() [3/3]

void GenericEngineModel::parseParameter ( const Parameterised::Map parameters,
std::string  parameter,
std::string &  value 
)
protectedinherited

Definition at line 52 of file GenericEngineModel.cpp.

◆ performGearShifting()

int RealisticEngineModel::performGearShifting ( double  speed_mps,
double  acceleration_mps2 
)
protected

Computes current gear according to gear shifting rules

Parameters
[in]speed_mpscurrent speed in meters per second
[in]acceleration_mps2current acceleration in meters per squared second
Returns
current gear (0 based)

Definition at line 184 of file RealisticEngineModel.cpp.

References currentGear, EngineParameters::GearShiftingRules::deltaRpm, ep, EngineParameters::gearRatios, EngineParameters::nGears, EngineParameters::GearShiftingRules::rpm, EngineParameters::shiftingRule, and speed_mpsToRpm().

Referenced by getRealAcceleration().

Here is the caller graph for this function:

◆ printParameterError()

void GenericEngineModel::printParameterError ( std::string  parameter,
std::string  value 
)
protectedinherited

Prints a parameter error

Definition at line 28 of file GenericEngineModel.cpp.

References GenericEngineModel::className.

Referenced by GenericEngineModel::parseParameter(), and GenericEngineModel::parseParameter().

Here is the caller graph for this function:

◆ rollingResistance_N() [1/2]

double RealisticEngineModel::rollingResistance_N ( double  speed_mps)
protected

Computes rolling resistance using stored values

Parameters
[in]speed_mpsvehicle speed in meters per second
Returns
rolling resistance in N

Definition at line 140 of file RealisticEngineModel.cpp.

References EngineParameters::__cr1, EngineParameters::__cr2, and ep.

◆ rollingResistance_N() [2/2]

double RealisticEngineModel::rollingResistance_N ( double  speed_mps,
double  mass_kg,
double  cr1,
double  cr2 
)
protected

Computes rolling resistance

Parameters
[in]speed_mpsvehicle speed in meters per second
[in]mass_kgmass of the vehicle in kg
[in]cr1tires parameter
[in]cr2tires parameter
Returns
rolling resistance in N

Definition at line 135 of file RealisticEngineModel.cpp.

References GRAVITY_MPS2.

Referenced by opposingForce_N(), and opposingForce_N().

Here is the caller graph for this function:

◆ rpmToPower_hp() [1/2]

double RealisticEngineModel::rpmToPower_hp ( double  rpm)
protected

Computes the available power (hp) using stored values

Parameters
[in]rpmengine speed in rpm
Returns
available horsepower

Definition at line 84 of file RealisticEngineModel.cpp.

References EngineParameters::PolynomialEngineModelRpmToHp::degree, EngineParameters::engineMapping, ep, EngineParameters::maxRpm, and EngineParameters::PolynomialEngineModelRpmToHp::x.

◆ rpmToPower_hp() [2/2]

double RealisticEngineModel::rpmToPower_hp ( double  rpm,
const struct EngineParameters::PolynomialEngineModelRpmToHp engineMapping 
)
protected

Given an engine mapping computes the available power (hp) given current engine speed in rpm

Parameters
[in]rpmengine speed in rpm
[in]engineMappingengine mapping from rpm to hp
Returns
available horsepower

Definition at line 75 of file RealisticEngineModel.cpp.

References EngineParameters::PolynomialEngineModelRpmToHp::degree, and EngineParameters::PolynomialEngineModelRpmToHp::x.

Referenced by speed_mpsToPower_hp(), and speed_mpsToPower_hp().

Here is the caller graph for this function:

◆ rpmToSpeed_mps() [1/2]

double RealisticEngineModel::rpmToSpeed_mps ( double  rpm)
protected

Computes vehicle speed in mps using stored values

Parameters
[in]rpmengine rotation speed in rpm
Returns
vehicle speed in meters per second

Definition at line 54 of file RealisticEngineModel.cpp.

References EngineParameters::__rpmToSpeedCoefficient, currentGear, ep, and EngineParameters::gearRatios.

◆ rpmToSpeed_mps() [2/2]

double RealisticEngineModel::rpmToSpeed_mps ( double  rpm,
double  wheelDiameter_m = 0.94,
double  differentialRatio = 4.6,
double  gearRatio = 4.5 
)
protected

Given engine rotation in rpm, tracting wheels diameter, differential ratio, and gear ratio, computes vehicle speed in mps

Parameters
[in]rpmengine rotation speed in rpm
[in]wheelDiameter_mtracting wheels diameter in m
[in]differentialRatiodifferential ratio
[in]gearRatiogear ratio
Returns
vehicle speed in meters per second

Definition at line 48 of file RealisticEngineModel.cpp.

References M_PI.

Referenced by loadParameters(), and RealisticEngineModel().

Here is the caller graph for this function:

◆ setMaximumAcceleration()

void GenericEngineModel::setMaximumAcceleration ( double  maxAcc)
inherited

Sets maximum acceleration value

Parameters
[in]maximumacceleration in meters per second squared

Definition at line 58 of file GenericEngineModel.cpp.

References GenericEngineModel::maxAcceleration_mpsps.

Referenced by MSCFModel_CC::createVehicleVariables(), and MSCFModel_CC::setParameter().

Here is the caller graph for this function:

◆ setMaximumDeceleration()

void GenericEngineModel::setMaximumDeceleration ( double  maxDec)
inherited

Sets maximum deceleration value

Parameters
[in]maximumdeceleration (positive value) in meters per second squared

Definition at line 61 of file GenericEngineModel.cpp.

References GenericEngineModel::maxDeceleration_mpsps.

Referenced by MSCFModel_CC::createVehicleVariables(), and MSCFModel_CC::setParameter().

Here is the caller graph for this function:

◆ setParameter() [1/3]

void RealisticEngineModel::setParameter ( const std::string  parameter,
const std::string &  value 
)
virtual

Sets a single parameter value

Parameters
[in]parameterthe name of the parameter
[in]valuethe value for the parameter

Implements GenericEngineModel.

Definition at line 284 of file RealisticEngineModel.cpp.

References ENGINE_PAR_VEHICLE, ENGINE_PAR_XMLFILE, loadParameters(), vehicleType, and xmlFile.

◆ setParameter() [2/3]

void RealisticEngineModel::setParameter ( const std::string  parameter,
double  value 
)
virtual

Implements GenericEngineModel.

Definition at line 297 of file RealisticEngineModel.cpp.

References dt_s, and ENGINE_PAR_DT.

◆ setParameter() [3/3]

void RealisticEngineModel::setParameter ( const std::string  parameter,
int  value 
)
virtual

Implements GenericEngineModel.

Definition at line 304 of file RealisticEngineModel.cpp.

References UNUSED_PARAMETER.

◆ speed_mpsToPower_hp() [1/2]

double RealisticEngineModel::speed_mpsToPower_hp ( double  speed_mps)
protected

Computes the available power at the current speed using stored values

Parameters
[in]speed_mpsvehicle speed in meters per second
Returns
available horsepower

Definition at line 105 of file RealisticEngineModel.cpp.

References rpmToPower_hp(), and speed_mpsToRpm().

◆ speed_mpsToPower_hp() [2/2]

double RealisticEngineModel::speed_mpsToPower_hp ( double  speed_mps,
const struct EngineParameters::PolynomialEngineModelRpmToHp engineMapping,
double  wheelDiameter_m,
double  differentialRatio,
double  gearRatio 
)
protected

Given vehicle speed in mps, and the rpm to hp mapping, computes the available power at the current speed

Parameters
[in]speed_mpsvehicle speed in meters per second
[in]engineMappingengine mapping from rpm to hp
[in]wheelDiameter_mtracting wheels diameter in m
[in]differentialRatiodifferential ratio
[in]gearRatiogear ratio
Returns
available horsepower

Definition at line 96 of file RealisticEngineModel.cpp.

References rpmToPower_hp(), and speed_mpsToRpm().

Referenced by speed_mpsToThrust_N(), and speed_mpsToThrust_N().

Here is the caller graph for this function:

◆ speed_mpsToRpm() [1/3]

double RealisticEngineModel::speed_mpsToRpm ( double  speed_mps)
protected

Computes engine rotation speed in rpm using stored values

Parameters
[in]speed_mpsvehicle speed in meters per second
Returns
engine rotation speed in rpm

Definition at line 65 of file RealisticEngineModel.cpp.

References EngineParameters::__speedToRpmCoefficient, currentGear, ep, and EngineParameters::gearRatios.

◆ speed_mpsToRpm() [2/3]

double RealisticEngineModel::speed_mpsToRpm ( double  speed_mps,
double  gearRatio 
)
protected

Computes engine rotation speed in rpm using stored values and given gear ratio

Parameters
[in]speed_mpsvehicle speed in meters per second
[in]gearRatiogear ratio
Returns
engine rotation speed in rpm

Definition at line 70 of file RealisticEngineModel.cpp.

References EngineParameters::__speedToRpmCoefficient, and ep.

◆ speed_mpsToRpm() [3/3]

double RealisticEngineModel::speed_mpsToRpm ( double  speed_mps,
double  wheelDiameter_m,
double  differentialRatio,
double  gearRatio 
)
protected

Given vehicle speed in mps, tracting wheels diameter, differential ratio, and gear ratio, computes engine rotation speed in rpm

Parameters
[in]speed_mpsvehicle speed in meters per second
[in]wheelDiameter_mtracting wheels diameter in m
[in]differentialRatiodifferential ratio
[in]gearRatiogear ratio
Returns
engine rotation speed in rpm

Definition at line 59 of file RealisticEngineModel.cpp.

References M_PI.

Referenced by getEngineData(), getRealAcceleration(), performGearShifting(), speed_mpsToPower_hp(), and speed_mpsToPower_hp().

Here is the caller graph for this function:

◆ speed_mpsToThrust_N() [1/2]

double RealisticEngineModel::speed_mpsToThrust_N ( double  speed_mps)
protected

Computes the available maximum thrust at current speed using stored values

Parameters
[in]speed_mpsvehicle speed in meters per second
Returns
available maximum thrust

Definition at line 119 of file RealisticEngineModel.cpp.

References EngineParameters::__speedToThrustCoefficient, ep, and speed_mpsToPower_hp().

◆ speed_mpsToThrust_N() [2/2]

double RealisticEngineModel::speed_mpsToThrust_N ( double  speed_mps,
const struct EngineParameters::PolynomialEngineModelRpmToHp engineMapping,
double  wheelDiameter_m,
double  differentialRatio,
double  gearRatio,
double  engineEfficiency 
)
protected

Given vehicle speed in mps, and the rpm to hp mapping, computes the available maximum thrust at current speed

Parameters
[in]speed_mpsvehicle speed in meters per second
[in]engineMappingengine mapping from rpm to hp
[in]wheelDiameter_mtracting wheels diameter in m
[in]differentialRatiodifferential ratio
[in]gearRatiogear ratio
[in]engineEfficiencyengine efficiency
Returns
available horsepower

Definition at line 110 of file RealisticEngineModel.cpp.

References HP_TO_W, and speed_mpsToPower_hp().

Referenced by maxEngineAcceleration_mps2().

Here is the caller graph for this function:

◆ thrust_NToAcceleration_mps2()

double RealisticEngineModel::thrust_NToAcceleration_mps2 ( double  thrust_N)
protected

Computes the acceleration for a certain thrust, using stored values of mass

Parameters
[in]thrust_Nthrust in N
Returns
the acceleration for the vehicle mass in meters per squared second

Definition at line 179 of file RealisticEngineModel.cpp.

References EngineParameters::__maxAccelerationCoefficient, and ep.

Referenced by getRealAcceleration(), and getRealBrakingAcceleration().

Here is the caller graph for this function:

Field Documentation

◆ className

std::string GenericEngineModel::className
protectedinherited

◆ currentGear

int RealisticEngineModel::currentGear
protected

◆ dt_s

double RealisticEngineModel::dt_s
protected

Definition at line 57 of file RealisticEngineModel.h.

Referenced by loadParameters(), RealisticEngineModel(), and setParameter().

◆ ep

◆ maxAcceleration_mpsps

double GenericEngineModel::maxAcceleration_mpsps
protectedinherited

◆ maxDeceleration_mpsps

double GenericEngineModel::maxDeceleration_mpsps
protectedinherited

◆ minSpeed_mps

double RealisticEngineModel::minSpeed_mps
protected

◆ vehicleType

std::string RealisticEngineModel::vehicleType
protected

Definition at line 61 of file RealisticEngineModel.h.

Referenced by loadParameters(), and setParameter().

◆ xmlFile

std::string RealisticEngineModel::xmlFile
protected

Definition at line 59 of file RealisticEngineModel.h.

Referenced by loadParameters(), RealisticEngineModel(), and setParameter().


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