Toward a unified network flow framework: from conservation principles to fluid dynamics models