28 mass_kg(1300), cAir(0.3), a_m2(2.7), rho_kgpm3(1.2), cr1(0.0136), cr2(5.18e-7),
29 slope(0.), tiresFrictionCoefficient(0.7), engineEfficiency(0.8),
30 massFactor(1.089), cylinders(4), dt(0.01), minRpm(1000), maxRpm(7000),
31 brakesTau_s(0.2), tauEx_s(0.1), tauBurn_s(-1), fixedTauBurn(false) {
53 nGears(other.nGears), differentialRatio(other.differentialRatio), wheelDiameter_m(other.wheelDiameter_m),
54 mass_kg(other.mass_kg), cAir(other.cAir), a_m2(other.a_m2), rho_kgpm3(other.rho_kgpm3), cr1(other.cr1), cr2(other.cr2),
55 slope(other.slope), tiresFrictionCoefficient(other.tiresFrictionCoefficient), engineEfficiency(other.engineEfficiency),
56 massFactor(other.massFactor), cylinders(other.cylinders), dt(other.dt), minRpm(other.minRpm), maxRpm(other.maxRpm),
57 brakesTau_s(other.brakesTau_s), tauEx_s(other.tauEx_s), tauBurn_s(other.tauBurn_s), fixedTauBurn(other.fixedTauBurn) {
60 for (
int i = 0; i <
nGears; i++) {
131 out <<
"ID: " <<
id.c_str() << std::endl;
134 out <<
"\tGears number: " << (int)
nGears << std::endl;
135 for (
int i = 0; i <
nGears; i++) {
136 out << std::setprecision(4) <<
"\tRatio of gear " << (i + 1) <<
": " <<
gearRatios[i] << std::endl;
138 out << std::setprecision(4) <<
"\tFinal drive ratio: " <<
differentialRatio << std::endl;
141 out << std::setprecision(3) <<
"\tDiameter: " <<
wheelDiameter_m <<
" m\n";
143 out << std::setprecision(10) <<
"\tcr1: " <<
cr1 << std::endl;
144 out << std::setprecision(10) <<
"\tcr2: " <<
cr2 << std::endl;
147 out << std::setprecision(2) <<
"\tMass: " <<
mass_kg <<
" kg\n";
148 out << std::setprecision(4) <<
"\tMass factor: " <<
massFactor << std::endl;
150 out <<
"Air drag:\n";
151 out << std::setprecision(4) <<
"\tDrag coefficient: " <<
cAir << std::endl;
152 out << std::setprecision(3) <<
"\tMax section: " <<
a_m2 <<
" m^2\n";
156 out <<
"\tCylinders: " <<
cylinders << std::endl;
157 out <<
"\tMinimum rpm: " <<
minRpm << std::endl;
158 out <<
"\tMaximum rpm: " <<
maxRpm << std::endl;
161 out <<
"\t\tMapping coefficient x" << i <<
": " <<
engineMapping.
x[i] << std::endl;
167 out <<
"\tTime constant (s): " <<
brakesTau_s << std::endl;
169 out <<
"Vehicle unrelated parameters:\n";
170 out << std::setprecision(4) <<
"\tAir density: " <<
rho_kgpm3 <<
" kg/m^3\n";
171 out <<
"\tRoad slope: " <<
slope <<
" degrees\n";
172 out << std::setprecision(3) <<
"\tSimulation sampling time: " <<
dt <<
" s\n";