A Connectivity-Based Modeling Approach for Representing Hysteresis in Macroscopic Two-Phase Flow Properties