Modelling of physical and chemical processes in the small intestine