A Numerical Model to Study the Unsteady Flow in Multibranched Liquid Circuits with Hydraulic Devices and Machines