Modelling anaerobic digesters in three dimensions: integration of biochemistry with computational fluid dynamics