Molecular gas-flow on upper atmosphere satellites: mathematical modelling and heat transfer calculation