Gas Harvester V3 – Fork

If you liked this item, please rate it up on Steam Workshop page.

Author: Whompratt

Last revision: 6 Aug, 2023 at 12:09 UTC

File size: 247.81 KB

On Steam Workshop

Description:
This is a fork of CowsAreEvils Gas Harvester V3.

Original workshop item can be found here: Gas Harvester V3

The reason for forking and uploading this updated version is to fix a few small issues present in the original.

Instructions for use:
Setup the pins as follows:

d0: Gas storage tank
d1: Filtration device
d2: Pipe analyzer
d3: First diode (optional)
d4: Second diode (optional)
d5: Alarm (optional)

Configuration

Change MINTEMP, MAXTEMP, and MAXPRESSURE as required.
The type of gas being filtered will determine the settings you use.
Gases that condense easily, like N2O will require a higher temp and/or lower pressure, whereas gases like Nitrogen are much harder to condense and can have a wider range of temps and higher MAXPRESSURE.

Default are set to:

MINTEMP
273K (0C)

MAXTEMP
323K (50C)

MAXPRESSURE
50000kpa

On line 125, change 1.0 to whatever minimum molar count you desire
This is highly dependent on your setup. If you have a high pressure differential across your filtration devices, you can set this quite high (e.g. 50.0), and when the device toggles on it will clear a large percentage of the present gas, and will result in the filtration machine staying off for longer between runs. In this setup, having a minimum mole count of 1.0 will most likely result in the machine toggling on and off every single tick, which can waste power.
Best thing to do here is to play with the number until you find something that works for you
Caution: A high minimum mole value on every gas will result in a higher pressure in your input line than a lower value

Change the device used to check temperature as required.
On line 48, the default device to check temperature is the pipe analyzer, however this can be changed to use the tank itself as required.

i.e. change

l r1 analyzer Temperature

to

l r1 tank Temperature

The decision to do this will depend on your setup, in particular your method of cooling.
Given some gases require very delicate temperature management (e.g. N2O, Volatiles) it may be better to ensure your storage is a safe temp, so set to tank. However, this setup requires that you manage the temperature in the tank specifically to ensure that extreme temps are handled properly, enabling the filtration device to run.
Some gases are safer to store at larger temperature variances (e.g. Nitrogen) and have less risk just checking the temperature of the input gas, will will (eventually) regulate the temperature in the tank.

Some example setups for different gases

Be warned, my knowledge is limited and this advice will become exponentially less reliable with each patch

Gas
MINTEMP
MAXTEMP
MAXPRESSURE (structure)
MAXPRESSURE (portable)
Temperature Device

Carbon Dioxide (CO2)
265K
323K
50000pka
8000kpa
Pipe Analyzer

Nitrogen (N2)
265K
323K
50000pka
8000kpa
Pipe Analyzer

Nitrous Oxide (N2O)
288K
308K
1000pka
1000kpa
Tank

Oxygen (O2)
162K
323K
50000pka
8000kpa
Pipe Analyzer

Pollutant (X)
288K
323K
50000pka
8000kpa
Tank

Volatiles (H2)
283K
313K
50000pka
8000kpa
Pipe Analyzer

Water (H2O)
Just
Use
A
Liquid
Tank

Note: N2O is a pain due to condensation temps and it’s autoignition temp of 323K (50C). Take special care.
Note: Given Volatiles (H2) and Oxygen are both used for fuel, I recommend a tighter temp range to avoid auto-ignition.
Note: Pollutant is functionally useless (condenses easily so useless as a coolant), with no other practical applications, so can be safely vented. If not vented, a fluid drain can easily deal with any issues given the remaining gas will warm out of condensation range as some condenses.

Changelog:

06/08/2023:
– Fixed mole calculation: original used waste pipe pressure instead of total moles.
– Changed all references to "analyser" to "analyzer"
– Updated code comments to provide better usage instructions
– Changed default min and max temps to 273K (0C) and 323K (50C) respectively
– Changed default max pressure to 50000kpa
– Changed safe temp check to read from gas pipe analyzer instead of tank by default.