User:AnomalousPotato/MechComp Gas Turbine Automation
Once you know how this works, it should only take a couple minutes to set up. The purpose of this giant wall of text is to thoroughly explain how to automate the Gas Turbine for the Nuclear Generator using MechComp.
A couple of things:
- Stator load is a measure of how much energy it takes to spin the turbine, a higher stator load makes it harder to spin the turbine, thus lowering RPM.
- Stator load and RPM are inversely proportional, and if you double the stator load, you'll halve the RPM.
Here's how the simple way works:
You will need two splitter components and two arithmetic components, set the splitter components to rpm
and stator
and connect them to the turbine.
rpm / 600 = a a * stator = new stator
To break that down further, you will:
- Connect the turbine to the two splitter components, and set the trigger signals of them to
rpm
andstator
respectively. - Connect the output of the RPM splitter to the first arithmetic component's Set A, and manually set B to 600. Set the mode to
div
for divide. - Connect the output of the stator splitter to the second arithmetic component's Set A, and connect the output of the first arithmetic component to the second arithmetic component's Set B. Set the mode to
mul
for multiply. - Connect the output of the second arithmetic component to the Set Stator Load of the gas turbine.
This has an issue at high stator loads associated with high power however, because the turbine will start outputting the stator load in scientific notation (1.342+e6 or some such) which will not work with the arithmetic component. We can use a counting component setup to avoid using the stator load signal from the turbine at all. However, the turbine must be connected last or the counting component will become out of sync and this setup will not work.
rpm - 600 = a a * b = c (b is a multiplier, the higher it is, the more reactive the stator load will be) Immediately change counter by c Output counter to Set Stator Load
Breaking it down:
You'll need 1 splitter component, 2 arithmetic components, and 1 counting component.
- First, start the engine. This setup cannot work if RPM is 0, so make sure the engine is running in some capacity first. Set the stator load to something reasonable, like 500 kJ for a standard setup. Make sure no one changes it, or the counting component will be out of sync with the turbine and this will not work correctly. It's okay if the turbine complains in the meantime.
- Connect the turbine to the splitter component, and set the trigger signal to
rpm
. Don't output the splitter to anything yet. - On the first arithmetic component, manually Set B to 600, and set mode to
sub
for subtraction. - Connect the output of the first arithmetic component the second arithmetic component's Set A, and manually Set B to the multiplier of your choice. Set mode to
mul
for multiply. (Keep in mind the current stator load: If you set the multiplier extremely high, for example 1000, and you do not have a high energy input to match, your stator load will fluctuate wildly for minor variations in RPM, causing your RPM to fluctuate wildly in turn. A multiplier of 400 is good for basic setup, 1000 is good for high load) - Connect the output of the second arithmetic component to Immediately Change By on the counting component.
- On the counting component, manually set the current value to whatever the stator load of the turbine currently is. The turbine accepts stator load values from MechComp in joules (J), not kilojoules (kJ), so multiply the value by 1000!
- Connect the counting component to Set Stator Load on the gas turbine.
- Connect the output of the splitter component to the first arithmetic component's Set A. This must be done last so that the counting component stays in sync with the actual stator load of the turbine. The order of the rest doesn't matter, the turbine's output will trigger the other components in order, like a row of dominos.