Implementation and Validation of Gravity Effects in a Pore-Network Solver