Lindsayts, on 05 September 2013 - 01:38 PM, said:
SteamUsageLBpS = .6f * SteamUsageLBpS + .4f * speed * SteamUsageFactor * (cutoff + .07f) * (CylinderSteamDensity[CylinderPressurePSI] - CylinderSteamDensity[BackPressurePSI]);
The constants .6f and .4f are part of a smoothing function and are likley to have no real effect other than to delay any change.
As far as I can see the steamconsumption issue currently with OR is caused by the effect of the pressuredrop in the steam piping is included with the ForceFactor2 table this is causing the code to calculate the steam consumption incorrectly as although caculation actually correctly uses CylinderPressurePSI as its input but the steam piping pressure drop is included in the ForceFactor2 calculations. So the steam consumption calculations are effectively using the boiler pressure so the consumption is way to high. The data included in the my ForceFactor2 and CylinderPressureDrop code portion in the other thread should correct this issue.
Someone may wish to give this data a try, it will not blow up the world, burn down your house or make the dog start barking all night :)
Lindsay
I did after all say I have probably missed seeing where the steam usage is modified by the cut-off. Looking at the line in question we have steamusage * speed * cutoff * (forcefactor1- forcefactor2) disregarding the smoothing constants. ForceFactor1 is the positive side of the equation and ForceFactor2 is the negative side of the equation therefore ForceFactor2 cannot include the boiler to cylinder pressure drop because it is generating the back pressure which is the steam compressed on the opposite side of the piston to that which is generating the power. Looking at how the figures behave in the HUD this line is behaving as it should. which brings us back to the line which generates the initial steam usage figure.
SteamUsageFactor = 2 * NumCylinders * 3.281f * CylinderDiameterM / 2 * 3.281f * CylinderDiameterM / 2 * 3.281f * CylinderStrokeM / (2 * DriverWheelRadiusM)
I am convinced that the way this line is working is giving the high initial figures. Using the Flying Scotsman starting at Carlisle on the S&C using 52% each throttle and reverser usage outstrips generation within a few feet of starting. Using 100% throttle and 52% reverser causes usage to be double generation within one turn of the wheels.