This was originally posted at the engineering stack exchange.
I am currently modeling a high fidelity simulation of the Boeing 747-200 for a flight simulator, and I am now at the stage of programming what is essentially the HVAC system for the aircraft.
I will try to keep aviation jargon out...