Detailed Simulation of Complex Hydraulic Problems with Macroscopic and Mesoscopic Mathematical Methods