Scientists simulated what happens when the pipes and tunnels that divert rainwater fail. In one scenario, 30 percent of local residents couldn’t reach an E.R.