Displacing one fluid by another immiscible with it is a phenomenon of greatest importance and exists in various applications from large scale oil productions to small scale microfluidics. Modeling this phenomenon is crucial, particularly, with respect to estimating penetration rates. Although considerable amounts of research works have been conducted to understand the physics involved in this phenomenon, they remain adherent to particular applications. This includes, for example, imbibition scenarios in which a wetting fluid imbibes inside a capillary tube even without the need to initiate the penetration. On the other hand, drainage scenarios, in which a nonwetting fluid displaces a wetting one, requires such initiation by providing external boosting. There are several external factors that influence the rate at which the meniscus advances inside a capillary tube. The most common such forces include pressure force, capillary force, and gravity force. Several of the modeling approaches have considered the case in which the displaced fluids are gases (e.g., air), particularly in applications related to infiltration studies in porous media. This allowed researchers to ignore the frictional resistance of the displaced fluid and only considers the other denser fluid. However, there exists other applications in which this is not correct and it may not be appropriate to ignore the displaced fluid. In this work, a new generalized model is introduced that accounts for all the physics involved in this process and also does not ignore the displaced fluid. For validation, it is shown that the derived model reduces to all the special cases for which analytical solutions exist, (including that of a single-phase flows). Furthermore, comparisons with computational fluid dynamics simulation (CFD) of drainage/imbibition scenarios show very good match with the results of the derived model, which builds confidence in the modeling approach.