User:RA2lover/Sandbox/Thermodynamics machinery notes/Combustion Processors
From Stationeers Community Wiki
More actions
Both the Combustion Centrifuge and Combustion Deep Miner share the same Internal Combustion engine, running these stages each tick:
Game Tick Combustion
Performed during game tick before all following actions.
Manual Combust
- Stores Game Tick combustion energy
- Force-combusts internal atmosphere on top of existing combustion (Combustion limiter^2 * 75%), clamped between 0.1% and 100%
- Because maximum combustion limiter setting is 100%, this limits maximum force-combustion to 75% of whatever fuel mix was in the atmosphere after game tick combustion.
- Because the combustion limiter is clamped into 10% increments, this leads to the following force-combustion percentages:
| Combustion Limiter setting | Combustion Percentage |
|---|---|
| 0% | 0.1% |
| 10% | 0.75% |
| 20% | 3% |
| 30% | 6.75% |
| 40% | 12% |
| 50% | 18.75% |
| 60% | 27% |
| 70% | 36.75% |
| 80% | 48% |
| 90% | 60.75% |
| 100% | 75% |
Speed Tick
- Target a 4000 kPa internal chamber pressure. Excess pressure is sent into exhaust during gas output stage.
- If internal atmosphere is above 300°C and total energy combusted combining game tick combustion and manual combustion exceeds 30 J:
- Increase RPM by Internal atmosphere temperature(in Kelvin) / 5000 K (clamped between 0 and 12 RPM/tick)
- Remove 30 J * RPM gained from internal atmosphere.
- Decrease RPM by 1%
- Check net RPM gain/loss after the previous steps.
- If RPM difference compared to is less than 1/ Lerp(0.8, 2, (Current RPM-300) / 1200 ), decrease stress percentage by 0.5, to a minimum of 0.
- Otherwise, increase stress percentage by (RPM difference - 1) * Lerp(0.8, 2, (Current RPM-300) / 1200 )
- If stress percentage is at 100% or more, decrease RPM by 40 and enter shutdown state.
Shutdown state
(Only runs if the machine is powered off or if it has been overstressed to a shutdown state)
- Decrease RPM by 15.
- Target a RPM*4 kPa chamber pressure (limited to 4000 kPa). Excess pressure is sent into exhaust during gas output stage.
Gas Output Stage
- If internal chamber pressure is less than target, skip this stage.
- Otherwise, remove the smaller of:
- PressurePerTick * 10 L at chamber temperature
- 10% of Excess pressure(in kPa) * Internal atmosphere volume at chamber temperature
- Send removed contents into exhaust network.
Gas Input Stage
- If on, powered and not in a stress shutdown/error state:
- Remove 0..0.01 mols from input network and move into combustion network, scaled from 0 to full throttle and add into internal atmosphere, to be combusted during next tick.