Multiphase flow modeling of gas intrusion in oil-based drilling mud