A transient fluid and thermodynamic model of a compressed air system