Flow System Modeling With Applications To Fuel Cell Systems