Cold phase fluid model of the longitudinal dynamics of space-charged dominated beams