Simulation of gastrointestinal tract: mechanics and absorption