24 mass_kg(1300), cAir(0.3), a_m2(2.7), rho_kgpm3(1.2), cr1(0.0136), cr2(5.18e-7),
25 slope(0.), tiresFrictionCoefficient(0.7), engineEfficiency(0.8),
26 massFactor(1.089), cylinders(4), dt(0.01), minRpm(1000), maxRpm(7000),
27 brakesTau_s(0.2), tauEx_s(0.1), tauBurn_s(-1), fixedTauBurn(false) {
49 nGears(other.nGears), differentialRatio(other.differentialRatio), wheelDiameter_m(other.wheelDiameter_m),
50 mass_kg(other.mass_kg), cAir(other.cAir), a_m2(other.a_m2), rho_kgpm3(other.rho_kgpm3), cr1(other.cr1), cr2(other.cr2),
51 slope(other.slope), tiresFrictionCoefficient(other.tiresFrictionCoefficient), engineEfficiency(other.engineEfficiency),
52 massFactor(other.massFactor), cylinders(other.cylinders), dt(other.dt), minRpm(other.minRpm), maxRpm(other.maxRpm),
53 brakesTau_s(other.brakesTau_s), tauEx_s(other.tauEx_s), tauBurn_s(other.tauBurn_s), fixedTauBurn(other.fixedTauBurn) {
56 for (
int i = 0; i <
nGears; i++) {
88 for (
int i = 0; i <
nGears; i++) {
127 out <<
"ID: " <<
id.c_str() << std::endl;
130 out <<
"\tGears number: " << (int)
nGears << std::endl;
131 for (
int i = 0; i <
nGears; i++) {
132 out << std::setprecision(4) <<
"\tRatio of gear " << (i + 1) <<
": " <<
gearRatios[i] << std::endl;
134 out << std::setprecision(4) <<
"\tFinal drive ratio: " <<
differentialRatio << std::endl;
137 out << std::setprecision(3) <<
"\tDiameter: " <<
wheelDiameter_m <<
" m\n";
139 out << std::setprecision(10) <<
"\tcr1: " <<
cr1 << std::endl;
140 out << std::setprecision(10) <<
"\tcr2: " <<
cr2 << std::endl;
143 out << std::setprecision(2) <<
"\tMass: " <<
mass_kg <<
" kg\n";
144 out << std::setprecision(4) <<
"\tMass factor: " <<
massFactor << std::endl;
146 out <<
"Air drag:\n";
147 out << std::setprecision(4) <<
"\tDrag coefficient: " <<
cAir << std::endl;
148 out << std::setprecision(3) <<
"\tMax section: " <<
a_m2 <<
" m^2\n";
152 out <<
"\tCylinders: " <<
cylinders << std::endl;
153 out <<
"\tMinimum rpm: " <<
minRpm << std::endl;
154 out <<
"\tMaximum rpm: " <<
maxRpm << std::endl;
157 out <<
"\t\tMapping coefficient x" << i <<
": " <<
engineMapping.
x[i] << std::endl;
163 out <<
"\tTime constant (s): " <<
brakesTau_s << std::endl;
165 out <<
"Vehicle unrelated parameters:\n";
166 out << std::setprecision(4) <<
"\tAir density: " <<
rho_kgpm3 <<
" kg/m^3\n";
167 out <<
"\tRoad slope: " <<
slope <<
" degrees\n";
168 out << std::setprecision(3) <<
"\tSimulation sampling time: " <<
dt <<
" s\n";