An investigation of the gas flow mechanics in longwall goafs