[posila] [1.0.0] Nonlinear fluid usage with scale_fluid_usage=true
Posted: Wed Aug 19, 2020 1:50 pm
Mods: krastorio-2 (1.0.3), Creative Mod (1.5.1)(for testing purposes, bug appears without it too)
Krastorio have gas-power-station, it burns petroleum gas and biomethanol to produce energy.
Lets burn some biomethanol, which have 750kJ fuel value.
When gas-power-station producing max of it power output (4.5MW) it consumes max of it fluid consumption (6/s)
But when load is lower, 15 laser turrets with 100kW drain each for example (1.5MW, 1/3 of it's max), it is expected to fluid consumption to be 2/s proportionally, but instead we have 0.7/s consumption. Btw pollution scales linearly to 1/3 of it's max.
Setting scale_fluid_usage = false for gas-power-stations makes scaling linear and it consumes expected 2/s of fluid under 1.5MW load.
EDIT:
Reproduced in almost vanilla with test mod:
9MW out of 30MW = 0.3, 0.3^2 = 0.09, 30 * 0.09 = 2.7 fluid/second as is on screenshot.
With scale_fluid_usage = false it consumes 9 fluid/second.
I don't know why you need this: Test mod: Save:
Krastorio have gas-power-station, it burns petroleum gas and biomethanol to produce energy.
Lets burn some biomethanol, which have 750kJ fuel value.
When gas-power-station producing max of it power output (4.5MW) it consumes max of it fluid consumption (6/s)
But when load is lower, 15 laser turrets with 100kW drain each for example (1.5MW, 1/3 of it's max), it is expected to fluid consumption to be 2/s proportionally, but instead we have 0.7/s consumption. Btw pollution scales linearly to 1/3 of it's max.
Setting scale_fluid_usage = false for gas-power-stations makes scaling linear and it consumes expected 2/s of fluid under 1.5MW load.
EDIT:
Reproduced in almost vanilla with test mod:
Code: Select all
data.raw.fluid["water"].fuel_value = "1000KJ"
data.raw.generator["steam-engine"].fluid_box.filter = "water"
data.raw.generator["steam-engine"].fluid_box.minimum_temperature = 15.0
data.raw.generator["steam-engine"].maximum_temperature = 15
data.raw.generator["steam-engine"].burns_fluid = true
data.raw.generator["steam-engine"].scale_fluid_usage = true
9MW out of 30MW = 0.3, 0.3^2 = 0.09, 30 * 0.09 = 2.7 fluid/second as is on screenshot.
With scale_fluid_usage = false it consumes 9 fluid/second.
I don't know why you need this: Test mod: Save: