This paper combined experiments with a theoretical model to simulate the behavior between a foam and heavy oil during contact pressing, separation, and adsorption. We discuss the changes in the elasticity and adsorption forces during the pressing and adsorption of the two fluids. The influence of the changes in temperature and pressure, the concentration of the sodium dodecyl sulfate surfactant, the heavy oil viscosity, and the addition of partially hydrolyzed polyacrylamide and hydrophobic SiO 2 nanoparticles was studied. The results showed that the overall increase in the elasticity and adsorption forces between the foam at 1 wt % surfactant and heavy oil was more than 2 times greater than those of the foam with 0.2 wt % surfactant. The increase in viscosity of heavy oil also increased various forces. The overall improvement in the adsorption force between fluids caused by nanoparticles during separation and adsorption stages reached 1.8 times, which was better than that obtained using the polymer (1.65 times). However, the polymer showed a 1.4 times higher elastic force during the fluid pressing stage than the nanoparticles and about 4 times higher than the control foam, and the increase in temperature greatly weakened the effect of the force, while the change in pressure did not cause much impact. An analytical model was built based on fluid mechanics, and the calculation results were consistent with the experimental data with an error of about 5−12%, suggesting that this model provides a good reference value.