Heterogeneous flow in interstellar medium and star formation