Divide rail button CD by instance count, since it gets multiplied by instance count up in BarrowmanCalculator.

This commit is contained in:
JoePfeiffer 2023-03-14 08:05:49 -06:00
parent 14db274d42
commit e9b7ff8249

View File

@ -96,6 +96,10 @@ public class RailButtonCalc extends RocketComponentCalc {
// add to CDmul
CDmul += cd;
}
// since we'll be multiplying by the instance count up in BarrowmanCalculator,
// we want to return the mean CD instead of the total
CDmul /= button.getInstanceCount();
return CDmul * stagnationCD * refArea / conditions.getRefArea();
}