Dynamic one-dimensional model for biological methanation in a stirred tank reactor