1 Introduction

Bubble formation from an orifice submerged in non-Newtonian fluids has many applications in chemical industries such as bubble reactors, wastewater treatment, fermentations, composites and plastic foam processing, and polymer devolatilization. In most of them, the ambient liquid is a non-Newtonian fluid. Determining the bubble formation behavior is essential for the optimal design of gas–liquid equipment, and thus, the study of bubble formation has received great attention [1, 2].

Bubble formation at submerged orifices can be categorized into three bubble regimes: static, dynamic, and turbulent. At very low flow rates, the static regime occurs where the inertial and viscous forces can be neglected. In this regime, the bubble detachment volume is determined by the balance of surface tension and buoyancy forces. In other words, the detached bubble volume is not dependent on the gas flow rate, and increasing (or decreasing) the gas flow rate in this regime only increases (or decreases) the frequency of bubble detachment. The dynamic regime happens at intermediate ranges of gas flow rates. In this regime, each bubble can be considered independent of others and inertial, and viscous forces cannot be neglected. At very high flow rates, this regime changes into turbulent regime in which a gas jet is eventually formed [3]. Oguz and Prosperetti [4] proposed a critical flow rate for the upper bound of quasi-static regime. The present study will focus on the quasi-static bubble growth.

During the last decades, a great progress in computational systems and numerical methods has made it possible to numerically study the complex phenomena such as two-phase systems. In two-phase systems, a common approach is to solve one set of Navier–Stokes equations on a stationery grid for the whole flow field which is categorized as one-fluid approach, and the interface is mostly determined by Eulerian interface-capturing or Lagrangian front-tracking methods. In front-tracking methods based on Unverdi and Tryggvason [5], a set of points are tracked on the Lagrangian interface. These points are advected with the flow, and the interface is determined by connecting these points with lines in 2D and with triangular elements in 3D. In interface-capturing method, the interface is identified by a marker function that is advected by the flow. In this method, the interface is captured implicitly contrary to the front-tracking method where the interface is determined explicitly. The marker function can be volume fraction (volume of fluid method) or distance function (level-set method), etc.

These methods have been extensively developed and used in two-phase systems such as bubble formation and rising. The volume of fluid (VOF) method defines a volume fraction \({\alpha }\) which is 1 for one fluid and 0 for the other one, and the cells including the interface have a value between 0 and 1. \({\alpha }\) is advected with the flow, and in the case of incompressible flow, this leads to the conservation of volume fraction, and thus the VOF method is mass conservative. The reconstruction of interface can be made by geometrical or compressive schemes. For the case of geometrical schemes, the simplest method (SLIC) was introduced by Noh and Woodward [6]. The simple line interface calculation method approximates the interface as lines parallel to the y-axis for x-direction advection and vice versa. Hirt and Nichols [7] presented a slightly different method in which the interface is approximated by lines, but their orientation is the same for both directions of the advection. Also Youngs [8] introduced a piecewise linear interface calculation (PLIC) method in which the interface is approximated by lines, and the orientations of the lines are normal to the interface. Contrary to the geometrical schemes, in compressive schemes, the convective term in the VOF advection equation is discretized by a compressive differencing scheme which is defined for retaining the sharpness of the interface (CICSAM [9], compressive model in \(\hbox {OpenFOAM}^{\circledR }\) [10]). There is no need for any geometrical reconstruction of the interface in algebraic methods, and also their extension to 3D and unstructured meshes is straightforward [11].

Bubble motion and its free rise have received considerable attention and have been extensively investigated using various numerical methods [12,13,14]. However, the formation of the bubble is more challenging because of the large and fast changes in the surface tension force, particularly when the capillary and Bond numbers are low as in this case the magnitude of surface tension is large in comparison with the buoyancy force [15]. Li et al. [16] performed a numerical study (VOF method) of bubble formation behavior at various pressures, which was an early attempt to investigate the bubble deformation by VOF method. They reported that for a given gas flow rate, the effect of pressure on bubble formation is negligible. Valencia et al. [17] investigated the bubble formation using the VOF method implemented in the commercial solver Fluent. They numerically obtained large bubbles in comparison with the theoretical values, which was attributed to the fact that they took into consideration the adhesion of water and wall in the numerical method. The same method and software were used by Ma et al. [18] to investigate the effect of liquid and orifice parameters on the bubble formation in a 2D domain. The level-set method was introduced by Osher and Sethian [19] and was further developed by Sussman et al. [12] for multiphase flows. This method was also used to study the bubble rise[20] or the contact line in the bubble formation simulation [21], where the effect of wettability was inspected. Sussman and Puckett [22] presented CLSVOF (coupled level-set volume of fluid) method for two-phase flows which is a combination of LS and VOF methods. Buwa et al. [23] used CLSVOF to investigate bubble formation regimes. Albadawi et al. [15] examined the characteristics of bubble growth and detachment at low capillary and Bond numbers by using four interface-tracking methods, including VOF-Comp. They reported that for the flow rate of 150 mlph, OpenFOAM underestimates the bubble growth and detachment with an error of 37%, which is due to the greater importance of surface tension force relative to the buoyancy force. The VOF function is a discontinuous function over cells, and the computed normal vector of the interface may generate unphysical spurious currents [24]. Therefore, by increasing the accuracy of the computation of normal vectors, the surface tension force is determined more accurately. Georgoulas et al. [25] used a Laplacian filter to smooth the volume fraction function. They reduced the bubble detachment time error to 10% and investigated the effect of gravity levels. Wu et al. [26]numerically investigated the bubble growth and detachment in the presence of cross flow.

Despite numerous works on bubble formation in Newtonian fluids, there are only few numerical studies associated with the non-Newtonian fluids. Ghosh and Ulbrecht [27] studied theoretically and experimentally the bubble formation in shear-thinning and viscoelastic liquids and proposed a model to determine the bubble growth rate and final bubble size. Terasaka and Tsuge [28] investigated the bubble formation at a single orifice in a viscoelastic fluid and presented a model for non-spherical bubble formation. Li [29] and Li et al. [16] also developed a mathematical model for bubble formation at an orifice in non-Newtonian liquids under constant flow rate conditions.

It seems that further research should be done to obtain a better understanding of bubble formation in non-Newtonian liquids. In the present study, bubble formation in non-Newtonian fluids is studied numerically by using a compressive VOF method. In this research, a Laplacian filter is also implemented to study the bubble formation in power-law liquids. At first, the method is explained, and then it is evaluated using experimental results. Afterward, the effects of liquid properties on the bubble formation and detachment are investigated at low capillary and Bond numbers.

2 Numerical formulation

2.1 Governing equations

The governing equations are Navier–Stokes equations which are written in conservative form as follows:

$$\begin{aligned}&\displaystyle \nabla \cdot {\vec {\mathrm{U}}} = 0\end{aligned}$$
(1)
$$\begin{aligned}&\displaystyle \frac{\partial }{{\partial \mathrm{{t}}}}\left( \rho {{\vec {\mathrm{U}}}} \right) + \nabla \cdot \left( \rho {\vec {\mathrm{U}}}{\vec {\mathrm{U}}} \right) = - \nabla {{p}} + \nabla \cdot \left[ {{\mu }}\left( \nabla {{\vec {\mathrm{U}}}} + \nabla {\vec {\mathrm{U}}}^{\mathrm{T}} \right) \right] + {{\rho }} {{\vec {\mathrm{g}}}} + {{\vec {\mathrm{F}}}}_{\sigma } \end{aligned}$$
(2)

where \({\vec {\mathrm{U}}},{{\rho }},{{\mu }},{{p}}\) and \({\vec {\mathrm{g}}}\) are the fluid velocity, density, viscosity, pressure, and gravitational acceleration, respectively. In addition, \({\vec {\mathrm{F}}}_{\sigma }\) is the surface tension force which is applied at the interface of fluids.

2.2 Interface-capturing method

In two-phase systems, the interface must be tracked. One of the interface-capturing methods is volume of fluid (VOF) method. In this method, volume fraction \({\upalpha }\) is 1 for the cells containing only liquid fluid and 0 for the cells containing only gas fluid, and it is between 0 and 1 for the cells including the interface, and the advection equation is solved for the volume fraction. This equation is as follows:

$$\begin{aligned} \frac{{\partial {{\alpha }}}}{{\partial {{t}}}} + \nabla \cdot \left( {{{\alpha }}} {{{\vec {\mathrm{U}}}}} \right) = 0 \end{aligned}$$
(3)

Density (\({\rho })\) and viscosity (\({\mu })\) in the solution domain are determined as the weighted averages over the two phases:

$$\begin{aligned} {{\rho }}= & {} {{{\rho }}_\mathrm{{l}}}{{\alpha }} + {{{\rho }}_\mathrm{{g}}}\left( {1 - {{\alpha }}} \right) \nonumber \\ {{\upmu }}= & {} {{{\upmu }}_\mathrm{{l}}}{{\alpha }} + {{{\upmu }}_\mathrm{{g}}}\left( {1 - {{\alpha }}} \right) \end{aligned}$$
(4)

where \(\hbox {l}\) and \(\hbox {g}\) indicate liquid and gas, respectively.

For shear-thinning time-independent non-Newtonian fluids, several mathematical models have been suggested to characterize their rheological properties. Carreau model [30] is one of the most accurate models which has a good precision at very low and very high shear rates as well as power-law region at intermediate shear rates. However, in the present study, as the shear rates values are in the intermediate region, the power-law model for its simplicity is used, and the liquid viscosity is calculated by the following power-law model:

$$\begin{aligned} {{{\mu }}_\mathrm{{l}}} = {{k}}{\left( {\dot{\gamma }} \right) ^{{{n}} - 1}} \end{aligned}$$
(5)

in which; k, \({\dot{\gamma }}\) and n are consistency (\(\hbox {Pa}\,\hbox {s}^{{n}})\), shear rate (\(\hbox {s}^{-1})\) and flow behavior index (dimensionless), respectively.

In OpenFOAM, a compressive term is added to the volume fraction equation to sharpen the interface:

$$\begin{aligned} \frac{{\partial {{\alpha }}}}{{\partial {{t}}}} + \nabla \cdot \left( {{{\alpha {\vec {\mathrm{U}}}}}} \right) + \nabla \cdot \left( {{{\alpha }}\left( {1 - {{\alpha }}} \right) {{{\vec {\mathrm{U}}}}_\mathrm{{r}}}} \right) = 0 \end{aligned}$$
(6)

where \({{\vec {\mathrm{U}}}_\mathrm{{r}}} = {{\vec {\mathrm{U}}}_\mathrm{{l}}} - {{\vec {\mathrm{U}}}_\mathrm{{g}}}\) is the compressive velocity which is taken into consideration only in the interface region due to the term \(\left( {{\alpha }\left( {1-{\alpha }} \right) } \right) \) [31]. \(\vec {\mathrm{U}}_\mathrm{r}\) (relative velocity at the faces of the cells) is calculated based on the magnitude of maximum velocity in the interface region, and its direction is the normal vector of the interface as follows:

$$\begin{aligned} {{\vec {\mathrm{U}}}_\mathrm{{r}}} = {{\vec {\mathrm{n}}}_\mathrm{{f}}}\mathrm{{~min}}\left( {{{{C}}_{{\alpha }}}\frac{{\left| \phi \right| }}{{\left| {{{{S}}_\mathrm{{f}}}} \right| }},\mathrm{{max}}\left( {\frac{{\left| \phi \right| }}{{\left| {{{{S}}_\mathrm{{f}}}} \right| }}} \right) } \right) \end{aligned}$$
(7)

where \(\vec {\mathrm{n}}_\mathrm{f}\), \(\phi \), and \({S}_\mathrm{f} \) are the unit normal vector of the cell face, mass flux, and the cell surface area, respectively. Furthermore, the value of \({C}_{\alpha } \) is 1 in the present study. If \({C}_{\alpha } \) is set to zero, the compressive term vanishes, and Eq. (6) simplifies to Eq. (3).

VOF uses CSF model of Brackbill et al. [32] to calculate the surface tension force as follows:

$$\begin{aligned} \overrightarrow{{\mathrm{{F}}_{{\upsigma }}}}= & {} {{\sigma \kappa }}\nabla {{\alpha }} \nonumber \\ {{\kappa }}= & {} \nabla \cdot \left( {\frac{{\nabla {{\alpha }}}}{{\left| {\nabla {{\alpha }}} \right| }}} \right) \end{aligned}$$
(8)

where \({\sigma }\) and \({\kappa }\) are surface tension and curvature, respectively.

2.2.1 VOF smoothing

As mentioned, the VOF function is a discontinuous function over cells and the computed normal vector of the interface which is used in the calculation of the surface tension force may generate unphysical spurious currents [24]. In this study, similar to the approach adopted by Hoang et al. [33] and Georgoulas et al. [25], the spurious currents are suppressed by revising the calculation procedure of interface curvature in OpenFOAM solver (interFoam). In this way, the volume fraction is smoothed with a Laplacian filter before the calculation of curvature as follows:

$$\begin{aligned} {{\tilde{\alpha }}}_\mathrm{p}= & {} \frac{\sum {\alpha }_\mathrm{f} {S}_\mathrm{f} }{\sum {S}_\mathrm{f}}\nonumber \\ {\kappa }= & {} \nabla \cdot \left( {\frac{\nabla {{\tilde{\alpha }}}}{\left| {\nabla {{\tilde{\alpha }}}} \right| }} \right) \end{aligned}$$
(9)

in which subscripts \(\hbox {{f}}\) and \(\hbox {{p}}\) indicate the face and cell index, respectively, and \({\alpha }_\mathrm{f} \) is the value of \({\alpha }\) at the face center which is linearly interpolated. The filter can be repeated more than once to achieve suitable smoothed field. For the present paper, initial trial simulations showed that the five times smoothing is adequate. It should be noted that the smoothed volume fraction is only used in the calculation of curvature, and in other parameters, such as density and viscosity, the volume fraction is non-smoothed.

2.3 Simulation parameters

As mentioned before, the numerical simulation is done by using OpenFOAM (ver. 2.3.1) and by improving (smoothing) the solver “interFoam”. The PISO (pressure implicit with splitting of operators) algorithm is used for pressure–velocity coupling. In the equations, the \(\partial /\partial {t}\) terms are discretized by CrankNicolson 1 scheme. The time step is adaptively determined by the maximum Courant number which is set to 0.1; accordingly, the time step is about \(10^{-6}\,\hbox {s}\) in the present study. In compressive schemes, the maximum Courant number is important [34], and in this research, it is determined by initial trial simulations; the difference between the detachment times for the Courant numbers of 0.1 and 0.01 is less than \(2\%\) ; so the value of 0.1 is selected for the maximum Courant number. In Equation (2), the convection and Laplacian terms are discretized using Gauss limited LinearV 1.0 and Gauss linear corrected schemes, respectively, but in Eq. (6), the convection term \(\nabla .\left( {\alpha {\vec {\mathrm{U}}}} \right) \) is discretized by Gauss vanLeer scheme [35] which has a limiter to preserve the volume fraction in the range of \(\left[ {0,1} \right] \), and the compressive term (\(\nabla \cdot ( {{\alpha }( {1-{\alpha }})\vec {\mathrm{U}}_\mathrm{r}} ))\) is discretized using the Gauss interface compression scheme described by Rusche [36] to provide smoother interface and confirm the boundedness of the volume fraction field.

2.4 Computation setup

Since the bubble formation at an orifice in a stagnant liquid can be assumed to be axisymmetric, in the present study, an axisymmetric computational domain is considered. A 5-degree section of the 3D physical domain (wedge shape) is considered as the computational domain. The schematic of computational domain and boundary conditions are illustrated in Fig. 1.

Fig. 1
figure 1

Schematic of computational domain and boundary conditions

To avoid any effect from the boundaries, the general domain size is assumed to be 10 \(\times \) 20 mm \(\sim 5{R}_{\mathrm {eq}} \times 10{R}_{\mathrm {eq}} \), where \({R}_{\mathrm {eq}} \) is the bubble detachment equivalent radius [15]. Mesh dependency studies showed that with 16 computational cells per orifice radius, the numerical solution can be considered mesh-independent; this result is also in agreement with the earlier similar studies [15, 25]. The quantitative investigation on domain and mesh size for a sample case is given in Table 1 and Fig. 2, respectively. The relative errors are under 4%, and the bubble profiles are almost the same so that the mentioned sizes are chosen for further simulations.

Table 1 Domain and mesh independency for the case \(\hbox {Bo}=0.5,\,\hbox {Ca}=10^{-1}\)
Fig. 2
figure 2

Bubble profiles at detachment time for the case \(\hbox {Bo}=0.5,\,\hbox {Ca}=10^{-1}\): a current domain (red solid line) and double of the current domain (blue dash line), b Newtonian \((n = 1)\) with 16 cells per radius (red solid line) versus 32 cells per radius (blue dash line), c non-Newtonian \((n = 0.2)\) with 16 cells per radius (red solid line) versus 32 cells per radius (blue dash line) (color figure online)

The front and back faces have wedge boundary condition. At the inlet, the flow is supposed to be fully developed and the inflow velocity profile is parabolic. The magnitude of the axial velocity is \({u}={u}_{\mathrm {max}} \left( {1-\left( {{x}/{R}_\mathrm{o} } \right) ^{2}} \right) \)in which \({x}=0\) is the axis of symmetry where the velocity is maximum and \({x}={R}_\mathrm{o} \) is orifice radius where the velocity turns into zero. The value of maximum velocity is determined by the flow rate Q and it is equal to \({u}_{\mathrm {max}} =2{Q}/\left( {{\uppi {R}}_\mathrm{o}^2 } \right) \). For the pressure, fixed-flux pressure boundary condition is used to adjust the pressure gradient in a way that the flux on the boundary is equal to that determined by the velocity boundary condition. For volume fraction, a constant boundary condition is applied. At the outlet, the outflow condition is used and the pressure is adjusted to atmospheric pressure; also, for the volume fraction, the zero gradient boundary condition is imposed. At the walls, the no-slip and zero gradient boundary conditions are applied for the velocity and pressure, respectively. At the bottom wall, for volume fraction, the static contact angle is set to \({\theta }_\mathrm{s} =20^{\circ }\) [15]. To model the wall adhesion, Brackbill et al. [32] defined the normal to the interface at the wall (\({\vec {\mathrm{n}}})\) as follows:

$$\begin{aligned} {\vec {\mathrm{n}}} = {{\vec {\mathrm{n}}}_{\mathrm{{wall}}}}\cos {{{\theta }}_\mathrm{{s}}} + {{\vec {\mathrm{n}}}_\mathrm{{t}}}\mathrm{{~}}\sin {{{\theta }}_\mathrm{{s}}}, \end{aligned}$$
(10)

where \({\theta }_\mathrm{s} \), \(\vec {{\mathrm{n}}}_\mathrm{wall}\) and \(\vec {\mathrm{n}}_\mathrm{t}\) are the static contact angle, the unit normal vector directed to the wall pointing to the wall, and the unit vector tangential to the wall pointing toward the liquid, respectively. From a numerical point of view, Gerlach et al. [37] reported that the imposed static contact angle influences the bubble formation process; however, below a critical value of the contact angle, bubble is pinned to the orifice rim, and therefore, the contact angle does not affect the volume of the detached bubble. The value of \(20^{\circ }\) is selected for the static contact angle in order to keep the bubble at the orifice, as experimentally observed by Albadawi et al. [15].

3 Numerical method validation

Before investigating the bubble formation in shear-thinning liquids, at first the numerical simulation is validated with the previous studies. It should be mentioned that although the validation problem is examined in a Newtonian fluid, the method can be used for non-Newtonian liquids as well, because the interface-capturing method (VOF-smooth) works independently of viscosity.

At first, in order to validate the solver for the bubble problem, the widely used Brackbill’s test case [38] is applied. In this test case, initially, a cuboidal bubble is set in the middle of a stationary liquid domain which has different viscosity and density, and it is let to reach its equilibrium state while zero gravity is applied. At the final state, a bubble with spherical shape with a pressure difference with the surrounding liquid (Laplace pressure) should be in the center of the computational domain. The numerical results and theoretical value obtained from the Laplace equation are presented in fallowing figure. Figure 3 shows that the improved solver has a better prediction of the theoretical pressure difference and the relative pressure difference obtained from VOF (OpenFOAM), VOF-smooth with theoretical value are 10% and 5% respectively.

Fig. 3
figure 3

Numerical and theoretical results for Laplace pressure difference (Brackbill’s test case)

3.1 Problem definition

With the purpose of verifying the numerical model, the recent study of Albadawi et al. [15] and Georgoulas et al. [25] was selected which has adequate information to reproduce it numerically. The problem is the formation of air bubbles at an orifice in a quiescent water. The air is injected at a constant flow rate Q which is small enough so that the bubble formation regime is quasi-static. Albadawi et al. [15] investigated the problem experimentally and numerically using interFoam solver, and Georgoulas et al. [25] used interFoam solver with filter.

The experimental facility of Albadawi et al. [15] involved a stainless steel surface with an orifice of 1.6 mm diameter which was put to a depth of 20 mm under the water surface in a glass tank with a cross-sectional area of 50 \(\times \) 50 mm. A combination of a Hamilton (Gastight 1002 series) 2.5-ml syringe and a kdScientific (KDS 200 cz) infusion pump controlled the rate of gas flow. To capture images, a single NAC Hi-Dcam II high-speed (frame rate of 1000 Hz) digital video camera was used with an exposure time of 0.5 ms to have sharp images. The bubble was illuminated with a diffused backlight containing six 300-lm LED bulbs. The tank was filled with ultra-pure water which was purified with a Millipore purification system. To detect the boundary of the bubble, an image processing code was developed, which according to the authors, the uncertainty in detecting the boundary of the bubble was ±1 pixel, which corresponded to a value of ± 0.0134 mm. More information about the validation case has been presented in the study of Albadawi et al. [15]. The liquid/gas properties and other parameters are given in Table 2. The orifice radius is \(0.8\,\hbox {mm}\), and as mentioned before, 16 computational cells per orifice radius are needed; therefore, the uniform grid size is 200 \(\times \) 400 cells.

Table 2 Physical properties of fluids in validation case [15]

3.2 Validation results

In Fig. 4, the numerical and experimental results are compared. Albadawi et al. [15] reported the bubble shape at six different frames \({t}^{{*}}={t}/{t}_{\mathrm {det}} \sim 0,0.2,0.4,0.6,0.8,1\). It should be noted that at \({t}^{{*}}=0\), a hemisphere bubble was patched numerically in the present work as well as Albadawi et al. [15]. As can be seen from Fig. 4, the present numerical results are in excellent agreement with the experimental data even at detachment time. The detachment time and the volume of the bubble at the moment of detachment are tabulated and compared with that in the previous studies in Table 3. \({t}_{\mathrm {det}} \), \(\hbox {CG}\), and \({V}_{\mathrm {det}} \) stand for time of detachment, center of gravity, and volume of detachment, respectively. The errors (\(\hbox {Et}_{\mathrm {det}} and \hbox {ECG and EV}_{\mathrm {det}} )\) are relative errors; for instance, \(\hbox {Et}_{\mathrm {det}} \) is computed as \(\hbox {Et}_{\mathrm {det}} =\left( {{t}_{\mathrm {num}} -{t}_{\mathrm {exp}} } \right) /{t}_{\mathrm {exp}} \times 100\) where \(\hbox {num}\) and \(\hbox {exp}\) indicate numerical and experimental values, respectively. As it is observed in Table 3, by smoothing, the relative error decreases from 37 to 9.8% in Georgoulas et al. [25] and to 6.7% in the present work. The reason is that by smoothing, the surface tension force is computed more accurately. There are two differences between the Georgoulas et al. [25] study and the present research that cause this study to have a lower error. First, the number of smoothing was 5 in the present study, and it was 2 in Georgoulas et al. [25]. Furthermore, as mentioned before, the maximum Courant number is an important parameter in a compressive scheme, and its value was 0.1 in this research. However, it was 0.2 in Georgoulas et al. [25] work. Consequently, the relative errors are adequately low for the purpose of studying bubble formation characteristics.

Fig. 4
figure 4

Comparison of the present numerical simulation results and experimental data of Albadawi et al. [15]. The background bubble is the experimental bubble shape and the dashed line indicates our numerical simulation

4 Results and discussion

In this section, the process of bubble formation in non-Newtonian shear-thinning liquids is investigated. At first, the overall process and then the formation parameters are studied.

4.1 Non-Newtonian bubble formation

In this part, the shear-thinning effect is examined. To have more universal results, the results are shown by non-dimensional numbers such as Bond number, \(\hbox {Bo}=\frac{{\rho {gR}}_\mathrm{o}^2 }{{\upsigma }}\), and capillary number, \(\hbox {Ca}=\frac{{\upmu {v}}_\mathrm{g} }{{\upsigma }}\), where \({\rho }_\mathrm{l} ,{\upmu }_\mathrm{l} ,{R}_\mathrm{o} ,{v}_\mathrm{g} \) and \(\vec {\mathrm{g}}\) are liquid density, liquid viscosity, orifice radius, gas velocity magnitude, and gravitational acceleration, respectively. \(\hbox {Bo}\) number demonstrates the ratio of buoyancy force to surface tension force and \(\hbox {Ca}\) number shows the ratio of viscous force to surface tension force.

As discussed earlier, in this research, the focus is on low Bond and capillary numbers. Therefore, these numbers were investigated in the present study: \(\hbox {Bo}=0.05,0.1,0.5\) and \(\hbox {Ca}=10^{-1},10^{-2},10^{-3},10^{-4}\). The parameters were set as follows: \({g}=9.8\frac{\hbox {m}}{\hbox {s}^{2}},{ R}_\mathrm{o} = 0.8\hbox { mm},{ Q}=150\hbox { mlph and }\sigma =0.028\frac{\hbox {N}}{\hbox {m}}\) . Also, the viscosity and density were chosen so that the Bond and capillary numbers matched the mentioned values (\(226 \le {\rho }\le 2261\frac{\hbox {kg}}{\hbox {m}^{3}}\) and \(1.37\times 10^{-4}\le \mu \le 1.37\times 10^{-1} \hbox {kg}/\left( {\hbox {m s}} \right) )\). The orifice radius effect is considered in many studies (such as [39,40,41]) and in the current study is kept constant.

For instance, Fig. 5 displays the bubble formation sequences for the case \(\hbox {Bo}=0.5,\hbox { Ca}=10^{-2},\hbox { n}=0.2\) at various moments, including initial state, expansion, necking, and detachment.

Table 3 Comparison of bubble detachment volumes and bubble detachment times obtained from the experimental and numerical results
Fig. 5
figure 5

Bubble formation sequences for the case \(\hbox {Bo}=0.5,\hbox {Ca}=10^{-2},{n}=0.2\), \({t}^{{*}}={t}/{t}_{\mathrm {det}} .\) In this case, \({t}_{\mathrm {det}} =119\,\hbox {ms}\)

Fig. 6
figure 6

Center of gravity of the bubble until the detachment point for \(\hbox {Bo}=0.5\). a\(\hbox {Ca}=10^{-4}\), b\(\hbox {Ca}=10^{-3}\), c\(\hbox {Ca}=10^{-2}\) and d\(\hbox {Ca}=10^{-1}\)

Figure 6 shows the center of gravity of the bubble during its formation for \(\hbox {Bo }=0.5\) and various \(\hbox {Ca}\) numbers. As it is observed, for some Ca numbers, there is no difference between the results of the Newtonian and non-Newtonian liquids (Fig. 6a, b). However, in some cases (Fig. 6c, d), they are different. For Newtonian liquids, the detachment time and consequently the detachment volume generally increase with increasing the capillary number. As mentioned above, by increasing the capillary number, or in other words, by increasing the viscosity, the magnitude of the resistance force rises. Consequently, the buoyancy force must be greater in order to detach the bubble from the orifice and as a result, the bubble detachment volume increases. When the Newtonian liquid is changed to a shear-thinning non-Newtonian fluid, the viscosity around the bubble decreases locally due to the shear rate, which results in lower resistance force and lower detachment volume. This phenomenon is better understood from Fig. 6d, in which the bubble detachment time and volume are reduced by increasing the shear-thinning effect (i.e., by decreasing n). The local viscosity in this case is shown in Fig. 7. In the Newtonian case \((n =1)\), the viscosity is constant during the bubble formation. When the liquid is shear-thinning (\({n}=0.8\hbox { or } n=0.2)\), at \({t}^{{*}}=0\), because of no shear rate the viscosity is constant and the same as the Newtonian one. After that, due to the presence of shear rate around the bubble, the local viscosity decreases and this reduction is higher for \({n}=0.2\) than for \({n}=0.8\) as expected. One of the regions of high shear rate is on the top of the bubble tip, as can be seen in Fig. 7. The reason is that as the bubble expansion occurs, the liquid is pushed up by the tip of the bubble. In addition, in the necking stage, the neck region experiences large variations just before the detachment which means high shear rate and low viscosity; this can be seen at \({t}^{{*}}=1.0\hbox { for }n=0.8\hbox { or }0.2\).

Fig. 7
figure 7

The viscosity contours for case \(\hbox {Bo}=0.5\,\hbox {and Ca}=10^{-1}\) and for Newtonian (\(n =1\)) and non-Newtonian (\(n = 0.8\) and \(n = 0.2\)) liquids at frames: \({t}^{{*}}={t}/{t}_{\mathrm {det}} =0,0.2,0.5,0.9\hbox { and }1.0\)

Fig. 8
figure 8

Ratio of bubble detachment volume for \({n}=0.2\) to that for \({n}=1.0\)

In Fig. 8, the ratio of bubble detachment volume for \({n}=0.2\) to that for \({n}=1.0\) (i.e., the ratio of detachment volume for shear-thinning non-Newtonian fluid to that for Newtonian fluid) is shown. For non-Newtonian fluid, if the apparent viscosity falls below a limiting value, it practically loses its effect on bubble formation, and the buoyancy force balances only with the surface tension force. In these cases, there is no difference between the results of Newtonian and non-Newtonian liquids. Thus, bubble detachment volumes and times are like each other.

According to the results, it seems that for a given Bond number, there is a critical capillary number below which there is no difference between the detachment volumes. In addition, for non-Newtonian fluid, if apparent capillary number obtained by apparent viscosity is lower than the critical capillary number, the detachment volume is the same as the corresponding Newtonian case. By initial trial simulations, the critical capillary numbers for \(\hbox {Bo}=0.5,0.1\hbox { and }0.05\) were found to be about \(1.5\times 10^{-3},1.5\times 10^{-2}\hbox { and }1.0\times 10^{-2}\) respectively. For this matter, in Fig. 6a, b, the capillary number is less than \(1.5\times 10^{-3}\) and consequently, the plots coincide with each other.

4.2 Bubble velocity

The velocity of the bubble during its formation can be obtained by differentiating the position graph. For instance, for the case \(\hbox {Bo}=0.5\hbox { and Ca}=10^{-1}\), the velocity is presented in Fig. 9a. The bubble velocity gradually increases and accelerates before the detachment. As the shear-thinning effect increases, the viscosity decreases, and therefore, the drag force is reduced. As a result, the velocity at the moment of detachment increases and the bubble starts to rise with a higher velocity. If velocity is plotted as a function of \({t}^{{*}}={t}/{t}_{\mathrm {det}} \) (Fig. 9b), it can be interestingly seen that the velocities are almost the same up to 70% of the formation process. This point (which can be observed later in Fig. 11b) is the start of elongation and necking stages, which means that the shear-thinning effect does not affect the bubble velocity in the expansion stage.

Fig. 9
figure 9

a The velocity of the bubble during its formation for the case \(\hbox {Bo}=0.5,\hbox { Ca}=10^{-1}\), b the velocity plots when time is non-dimensionalized by the detachment time: \({t}^{{*}}={t}/{t}_{\mathrm {det}} \)

4.3 Contact angle

The instantaneous contact angle (the angle between the wall and bubble interface as illustrated in Fig. 10) varies during the process of bubble formation. In the first stage of growth, as the shape of the bubble changes from hemispherical to truncated spherical shape, the angle decreases over time, and it remains nearly constant until the start of necking. Afterward, the bubble is elongated along the vertical direction, and consequently, the instantaneous contact angle grows gradually with time. Just before the detachment, the angle increases rapidly and the bubble detachment occurs. The same behavior has been described by Di Bari et al. [42] and Albadawi et al. [15].

Fig. 10
figure 10

Illustration of instantaneous contact angle and neck radius

In Fig. 11a, instantaneous contact angle for Newtonian (\({n}=1.0)\), low shear thinning (\({n}=0.8)\) and high shear thinning (\({n}=0.2)\) fluids is shown as a function of time for \(\hbox {Bo}=0.5\) and \(\hbox {Ca}=10^{-1}\). As mentioned before, by increasing the shear-thinning effect, the detachment time decreases. However, for all liquids, the graphs in the figure follow the same trend which was previously discussed. This can be better seen in Fig. 11b, in which the contact angle is presented as a function of non-dimensional time. In the region in which the contact angle is nearly constant and the bubble shape is spherical, the contact angle for the Newtonian fluid has the least value; this can be justified as follows: when the shear-thinning effect decreases, the local viscosity rises, and as a result, the viscous force increases and pushes the bubble down, and consequently, the instantaneous contact angle is reduced.

Fig. 11
figure 11

a instantaneous contact angle versus time for the case \(\hbox {Bo}=0.5\) and \(\hbox {Ca}=10^{-1}\), b instantaneous contact angle versus non-dimensional time (\({t}^{{*}}={t}/{t}_{\mathrm {det}} )\) for the case \(\hbox {Bo}=0.5\) and \(\hbox {Ca}=10^{-1}\)

4.4 Detachment process

In the expansion stage, the bubble grows spherically and the buoyancy force increases. When the bubble volume is reached near the detachment volume, the buoyancy becomes comparable to the bounded surface tension force and the collapse stage (necking stage) occurs. Until the start of necking stage, the minimum bubble radius is equal to the orifice radius and in the necking stage, the minimum bubble radius which is also called “necking radius” (\({R}_\mathrm{n} )\) decreases. In this stage, the gas velocity increases under constant flow conditions and the pressure decreases as a result of the Bernoulli effect. The pressure difference between the inside and outside of the neck accelerates the bubble neck pinching. In the literature [43, 44], it has been confirmed that a power-law \({R}_\mathrm{n} \propto {\tau }^{{\eta }}\) can be used to characterize the rate of reduction of neck radius just before detachment, where \({\tau }\) is the time until detachment (\({\tau }={t}_{\mathrm {det}} -{t})\). Using experimental observations, Thoroddsen et al. [43] found that \({\eta }\) is about 0.57 for air/water systems. Moreover, based on potential flow numerical simulations, Gordillo et al. [44] reported that the exponent varies from 1/2 to 1/3 and is equal to 1/3 when the gas inertia has a large value. Albadawi et al. [11] reported the value of 0.36 using numerical simulation with VOF method. The present value (Fig. 12a) for the air/water case (\({\eta }=0.34)\) is consistent with previous results especially with the results of Albadawi et al. [11]. In Fig. 12b, for \(\hbox {Bo}=0.5\) and \(\hbox {Ca}=10^{-1}\), the non-dimensional ratio of neck radius to orifice radius is presented for Newtonian (\({n}=1.0)\), low shear-thinning (\({n}=0.8)\), and high shear-thinning (\({n}=0.2)\) liquids. Burton et al. [45] reported that when the viscosity is in the range \(10\hbox { cP}<\mu <100\,cP\), the exponent varies between 1 / 2 and 1. For the case n=1, the viscosity is \(137\hbox { cP}\) and the exponent is 0.99, which is in good agreement with the results of Burton et al. [45]. By increasing the shear-thinning effect, the local viscosity decreases and the exponent (\({\eta })\) is also reduced. It is good to note that in Fig. 6, the formation process for \(\hbox {Bo}=0.5\), \(\hbox {Ca}=10^{-1}\) and \({n}=0.2\) nearly matches that for \(\hbox {Bo}=0.5\), \(\hbox {Ca}=10^{-3}\) and \({n}=1.0\) and the viscosity in the latter case has the same order of magnitude as the water viscosity. Consequently, the exponent (\({\eta }=0.45)\) is consistent with the literature.

Fig. 12
figure 12

a Non-dimensional ratio of neck radius to orifice radius as a function of time until detachment for water, b non-dimensional ratio of neck radius to orifice radius as a function of time until detachment for \(\hbox {Bo}=0.5\) and \(\hbox {Ca}=10^{-1}\)

4.5 Bubble rise

The bubble continues its ascension after the detachment, as a result of buoyancy force. In Fig. 13, the bubble motion for a sample case is shown for Newtonian and non-Newtonian liquid. In Fig. 13a, b the bubble deforms into an ellipsoidal shape just after detachment and its shape remains constant. So, it is expected that the bubble reaches to its terminal velocity. By increasing the shear-thinning effect and decreasing the liquid viscosity around the bubble, the bubble enters the wobbling region and its shape has fluctuations.

Fig. 13
figure 13

Bubble motion after the detachment for the case \(\hbox {Bo}=0.5,\hbox { Ca}=10^{-1}\): a Newtonian (\({n}=1\)), b non-Newtonian (\({n}=0.8\)), c non-Newtonian (\({n}=0.2\))

In Fig. 14 the bubble (center of gravity) velocity is presented. As expected, by decreasing the power-law index (n) and decreasing the liquid viscosity around the bubble, the velocity of the bubble increases. The terminal velocity for the Newtonian case is 59.5 mm/s which has about 3.5% error with the velocity (57.5 mm/s) obtained from Bhaga and Weber [46] map which is reasonable.

Fig. 14
figure 14

Bubble center of gravity velocity for the case \(\hbox {Bo}=0.5, \hbox {Ca}=10^{-1}\)

5 Conclusion

In the present study, the bubble formation and detachment in a stagnant shear-thinning liquid were investigated numerically at low capillary and Bond numbers. The VOF solver of OpenFOAM\(^{\circledR }\) (v. 2.3.1) was improved and used to examine the characteristics of bubble formation. The results obtained from the enhanced model were validated quantitatively which were in excellent agreement with the experimental results in the literature. In addition, the bubble formation in Newtonian and non-Newtonian power-law liquids was modeled to investigate the detachment volume and time as well as other parameters such as instantaneous contact angle and necking radius.

For Newtonian liquids, by increasing the capillary number, the detachment time and consequently the detachment volume generally increased due to the presence of large viscous force. For shear-thinning non-Newtonian liquids, the bubble detachment volume and time were reduced with increasing the shear-thinning effect (i.e., by decreasing “n”). However, it was observed that for Newtonian fluids, there is a critical capillary number for a given Bond number below which there is no change in the volume of detachment. Similarly, the results indicated that in non-Newtonian fluids, if apparent capillary number obtained by apparent viscosity is less than critical capillary number, the detachment volume is the same as the corresponding Newtonian case.

For non-Newtonian fluids, by increasing the shear-thinning effect, the bubble was detached with a higher velocity. However, during bubble formation, the shear-thinning effect did not influence the velocity in the expansion stage.

In the bubble formation process, the instantaneous contact angle first decreased and then remained nearly constant and afterward, it increased until the bubble detachment. For shear-thinning liquids, the trend of the contact angle was the same as that for the Newtonian liquids. Furthermore, the maximum values of contact angle were the same as each other. However, in the region in which the contact angle was nearly constant, by decreasing the shear-thinning effect (i.e., by increasing “n”), the minimum value of contact angle increased. The reason was that the local viscosity increased and accordingly, the viscous force increased. As a result, the bubble was pushed down and the contact angle decreased.

The variation of neck radius with relative time was modeled using a power relation (\({R}_{n} \propto {\tau }^{{\eta }})\), where the exponent (\({\eta })\) depended on the viscosity. For shear-thinning liquid, by decreasing the flow behavior index (n), the local viscosity around the bubble decreased and consequently, the exponent (\({\eta })\) was reduced.