A mathematical model for a hybrid anaerobic reactor.