A bypass transition model based on the intermittency function