We want to study the influence of bubbles on the viscosity of suspensions with a computational approach that also accounts for the arrangement of the bubbles due to shearing flow. This requires a large number of bubbles to properly simulate and requires a large amount of computational resources. Here we develop a set of equations to define the viscosity ratio from the simulation results to show the influence of the bubbles on the viscosity as a function of the volume fraction. One application of this work has been used to study a specific type of cement that has bubbles injected into the slurry while it is still fluid. The bubbles are added to reduce the density but they also improve the properties of the cement with the increase in viscosity. We show that the computed results match the few experimental results that have been reported.