A hydraulic model of a livestock waste flushing system