Skip to content

Commit

Permalink
fixing traction formula so it's with respect to the speed in m/s. refs
Browse files Browse the repository at this point in the history
  • Loading branch information
namdre committed Feb 29, 2024
1 parent d14f1c4 commit 9639a64
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/microsim/cfmodels/MSCFModel_Rail.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ MSCFModel_Rail::TrainParams::getResistance(double speed) const {
double
MSCFModel_Rail::TrainParams::getTraction(double speed) const {
if (maxPower != INVALID_DOUBLE) {
return MIN2(maxPower / speed * 3.6, maxTraction); // kN
return MIN2(maxPower / speed, maxTraction); // kN
} else {
return getInterpolatedValueFromLookUpMap(speed, &traction); // kN
}
Expand Down

0 comments on commit 9639a64

Please sign in to comment.