Construction of a global gas-dynamical model for our galaxy