The scientific design of exhaust and intake systems