N2 Control

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

Author: Jubs

Last revision: 22 Nov, 2024 at 10:13 UTC

File size: 252.29 KB

On Steam Workshop

Description:

This code manages a nitrogen (N₂) filtration system, ensuring it operates efficiently and safely based on the nitrogen concentration in a gas stream and the pressure in an N₂ storage tank. Here’s what it does:

Monitoring Nitrogen Levels:

The system reads the nitrogen concentration from a pipe analyzer.
If the nitrogen ratio falls below 0.1%, the filtration system is turned off, as the nitrogen content is too low for effective filtration.
Monitoring Tank Pressure:

The system checks the pressure in the nitrogen storage tank.
If the pressure reaches or exceeds 20 MPa (the upper safety limit), the filtration system is turned off to prevent overpressurization.
If the pressure drops below 15 MPa, the filtration system is turned on to replenish the tank, provided the nitrogen ratio is sufficient.
Continuous Operation:

The system continuously loops, checking the nitrogen ratio and tank pressure. Based on these values, it adjusts the state of the filtration system (on or off).
Control Actions:

Turn Off Filtration: Deactivates the filtration system when the nitrogen ratio is too low or the tank pressure is too high.
Turn On Filtration: Activates the filtration system when the tank pressure is too low and the nitrogen ratio is adequate.
This ensures the nitrogen filtration system operates safely, conserving resources while maintaining proper tank pressure.