We present a discrete element model for simulating, at the grain scale, gas migration in brine-saturated deformable media. We rigorously account for the presence of two fluids in the pore space by incorporating forces on grains due to pore fluid pressures, and surface tension between fluids. This model, which couples multiphase fluid flow with sediment mechanics, permits investigating the upwar...