Modeling the gas flux from a Jupiter-family comet nucleus