So, I was wondering how I might go about doing something. What I would like to do, ultimately, is create an atmospherics type system for a spaceship, which includes keeping track of how much air there is in any given room.
How would you go about doing this? If there is a hull breach, then obviously the air would get sucked out of the room. But how about pumping air back into it (assuming there are appropriate pipe connections)?
What makes it a bit more complicated is the fact that if a door to a room is open to, say, a hallway, and a hull breach occurs inside the room, it should suck all of the air out of the room AND hallway, but if the door is sealed, then only the hallway should re-pressurize.
Any tips on how to go about such a system would be greatly appreciated. Thanks!