EnergySimulationPart
var full = $.Max * $.Factor if ($.Heat < full && #Fuel.$.Gas > $.Max * dt && #HeatStorage.$.Energy < 0.3 * #HeatStorage.$.Max) { var gas = $.Max * dt #Fuel.$.Gas -= gas $.Heat += gas } var delta = ($.Heat / $.Factor) * dt if ($.Heat > 2 * $.Max && #HeatStorage.$.Energy < #HeatStorage.$.Max ) { $.Heat -= delta #HeatStorage.$.Energy += 0.8 * delta } else { $.Heat -= 0.2 * delta }

Heat: 1.99 [kW/s] Stopped: false Factor: 10 Max: 5 [kW]