<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE article  PUBLIC "-//NLM//DTD Journal Publishing DTD v3.0 20080202//EN" "http://dtd.nlm.nih.gov/publishing/3.0/journalpublishing3.dtd"><article xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:xlink="http://www.w3.org/1999/xlink" dtd-version="3.0" xml:lang="en" article-type="research article"><front><journal-meta><journal-id journal-id-type="publisher-id">AJCM</journal-id><journal-title-group><journal-title>American Journal of Computational Mathematics</journal-title></journal-title-group><issn pub-type="epub">2161-1203</issn><publisher><publisher-name>Scientific Research Publishing</publisher-name></publisher></journal-meta><article-meta><article-id pub-id-type="doi">10.4236/ajcm.2017.71005</article-id><article-id pub-id-type="publisher-id">AJCM-75170</article-id><article-categories><subj-group subj-group-type="heading"><subject>Articles</subject></subj-group><subj-group subj-group-type="Discipline-v2"><subject>Physics&amp;Mathematics</subject></subj-group></article-categories><title-group><article-title>
 
 
  Computational Modeling and Dynamics of the Oil and Water Flow Using the Galerkin Approximation
 
</article-title></title-group><contrib-group><contrib contrib-type="author" xlink:type="simple"><name name-style="western"><surname>Ferdusee</surname><given-names>Akter</given-names></name><xref ref-type="aff" rid="aff1"><sup>1</sup></xref></contrib><contrib contrib-type="author" xlink:type="simple"><name name-style="western"><surname>Ujjwal</surname><given-names>Kumar Deb</given-names></name><xref ref-type="aff" rid="aff2"><sup>2</sup></xref></contrib></contrib-group><aff id="aff1"><addr-line>Department of Physical and Mathematical Sciences, Chittagong Veterinary and Animal Sciences University, Chittagong, Bangladesh</addr-line></aff><aff id="aff2"><addr-line>Department of Mathematics, Chittagong University of Engineering &amp;amp; Technology, Chittagong, Bangladesh</addr-line></aff><pub-date pub-type="epub"><day>23</day><month>03</month><year>2017</year></pub-date><volume>07</volume><issue>01</issue><fpage>58</fpage><lpage>69</lpage><history><date date-type="received"><day>18,</day>	<month>January</month>	<year>2017</year></date><date date-type="rev-recd"><day>28,</day>	<month>March</month>	<year>2017</year>	</date><date date-type="accepted"><day>31,</day>	<month>March</month>	<year>2017</year></date></history><permissions><copyright-statement>&#169; Copyright  2014 by authors and Scientific Research Publishing Inc. </copyright-statement><copyright-year>2014</copyright-year><license><license-p>This work is licensed under the Creative Commons Attribution International License (CC BY). http://creativecommons.org/licenses/by/4.0/</license-p></license></permissions><abstract><p>
 
 
  A Computational Fluid Dynamic (CFD) model is presented to analyze the flow dynamics of a two phase incompressible flow in the application sectors of different industries. The Finite Element method (FEM) which is based on the Galerkin approximation, has been implemented for this two phase flow model. Generally, two-phase flows can occur in different forms like gas-liquid, liquid-liquid and solid-liquid forms. The Oil and Water two-phase flow is an important phenomenon in petroleum industry for crude oil production and transportation. In our study, a laminar flow of liquid-liquid phase is considered to simulate the flow dynamics where the liquid phases are water and oil. The COMSOL Multiphysics software is used to perform the simulation including velocity profile, volume fraction, shear rate, pressure distributions and interfacial thicknesses at different times. A typical circular tube domain with radius 0.05 m and length 8 m is assumed for our simulation.
 
</p></abstract><kwd-group><kwd>Two-phase Flow</kwd><kwd> CFD</kwd><kwd> Galerkin Method</kwd><kwd> FEM</kwd><kwd> Simulation</kwd></kwd-group></article-meta></front><body><sec id="s1"><title>1. Introduction</title><p>The two-phase flows are found widely in the nature and in a whole range of industrial applications. The two-phase material is often called the mixture [<xref ref-type="bibr" rid="scirp.75170-ref1">1</xref>] . In a single phase flow, the design parameter can be modeled easily but the presence of a secondary phase increases the complexity of the fluid flow. The two phase flow phenomena is still difficult to understand because of their complex behavior [<xref ref-type="bibr" rid="scirp.75170-ref2">2</xref>] . With the progress of science and technology, the study of mathematical models which may describe the two-phase flow phenomena has taken an increasing attention and becomes a challenge to the researcher [<xref ref-type="bibr" rid="scirp.75170-ref3">3</xref>] [<xref ref-type="bibr" rid="scirp.75170-ref4">4</xref>] [<xref ref-type="bibr" rid="scirp.75170-ref5">5</xref>] .</p><p>A variety of two-phase flows can occur depending on the combination of two-phases such as gas-liquid, liquid-solid, liquid-liquid and gas-solid. Generally, we see these two phase flows in transport of oil-gas mixtures in the pipeline system, air conditioning and refrigeration system, crystallization system, clay extraction, oil water mixture flow in pipelines and fuel combustion etc.</p><p>There are various studies which have been done on two phase flow. Aparallel streamline Upwind Petrov-Galerkin model using the Finite Element method for two-phase flow in a T-junction showed that the primary phase accumulates at the middle of the pipe and top of the wall while the secondary phase accumulates near the wall after the junction [<xref ref-type="bibr" rid="scirp.75170-ref6">6</xref>] . In an air-oil flow, it was found that oil was concentrating at the lower portion of pipe’s cross section due to gravity. A wave of oil and air mixture was present at the middle that covers the whole pipe cross section area and a new wave of the mixture was just entering the pipe segment [<xref ref-type="bibr" rid="scirp.75170-ref7">7</xref>] . A mathematical model of gas liquid incompressible fluid flow was introduced to explore the feature of fluid under certain centrifugal force in vertical centrifugal casting using the projection level set method and showed that the free surface near the wall was higher compared to other parts of the domain. The distribution of liquid phase calculated by the projection level set method coincided with the physical truth and the pressure distribution was found a parabola [<xref ref-type="bibr" rid="scirp.75170-ref8">8</xref>] . So many types of flow patterns were predicted at different phase velocities of the flow of two immiscible liquids through the horizontal pipelines using volume of fluid method. The slug flow appeared at low velocities while in annular flow, the total pressure of the mixture decreases with the increases of the oil velocity. It is found that the volume fraction of oil is maximum at the centre in a core annular flow and at the upper side of the pipe in case of stratified flow [<xref ref-type="bibr" rid="scirp.75170-ref2">2</xref>] . In a stratified oil-water two-phase flow the pressure gradient increases as the velocity increases [<xref ref-type="bibr" rid="scirp.75170-ref9">9</xref>] . The water phase accumulates at the bottom of the pipe for low velocities in a horizontal pipe [<xref ref-type="bibr" rid="scirp.75170-ref10">10</xref>] . Solid phase velocity profile is asymmetrical about the central axis and maximum velocity position moves toward the top of the pipe in a solid-liquid slurry flow [<xref ref-type="bibr" rid="scirp.75170-ref11">11</xref>] . The high velocity region is observed at the outer side of the pipe in a CFD simulation of two-phase flow in helical pipe using population balanced model [<xref ref-type="bibr" rid="scirp.75170-ref12">12</xref>] . The radial velocity of a dispersed phase is larger than that of a gaseous phase. Also lighter and smaller ash particles move faster than corundum particles of same mass [<xref ref-type="bibr" rid="scirp.75170-ref13">13</xref>] . For different inlet velocities, pressure loss was different in two-phase flow of vertical pipe and increasing gas velocity reduced the total pressure loss in the pipe [<xref ref-type="bibr" rid="scirp.75170-ref14">14</xref>] .</p><p>Nowadays CFD has become an essential tool in simulation studies. In our study, a two-phase flow model is solved by using the Finite Element approximation based on the Galerkin method. The two-phases are considered as oil and water respectively. The Finite Element method is a numerical technique to obtain an approximate solution to boundary value problems and the method has a distinct advantage that it allows naturally for handling complex arbitrary geometries so that it can be applied using irregular grid of various shapes. It also provides a set of functions which give the variation of differential equations between the grid points [<xref ref-type="bibr" rid="scirp.75170-ref15">15</xref>] .</p><p>The oil-water flow is very common in the petroleum industries. Generally the oil phase is transported in a multiphase flow condition as water and oil are normally produced together. The presence of water has a significant effect during the transportation of oil. The complex interfacial structure of oil water flow makes it difficult to predict the hydrodynamics of the fluid flow [<xref ref-type="bibr" rid="scirp.75170-ref10">10</xref>] [<xref ref-type="bibr" rid="scirp.75170-ref16">16</xref>] . A comparison was done for the different shape of photo bioreactor for Microalgae culture and we considered the tubular one is better [<xref ref-type="bibr" rid="scirp.75170-ref17">17</xref>] .</p><p>In literature, we found different models for two-phase flows including the Petrov-Galerkin method, the projection level set method, the volume of fluid method, and the population balanced model.</p><p>In our study, we considered a FEM model for two-phase flow using the Galerkin method and an oil-water mixture flow is taken to simulate according to our model. To investigate the velocity profile, the volume fraction and the pressure distribution of the oil-water two-phase flow through a circular tube we applied boundary and initial condition in the inlet, outlet and wall of a typical computational domain.</p></sec><sec id="s2"><title>2. Mathematical Model Formulation</title><p>In this section, a mathematical model will be developed to discuss the two-phase flow. A computational domain will also be constructed to simulate the fluid flow. A suitable mesh design is considered as the computational domain. The initial and boundary conditions are for the oil-water two-phase flow in a phase field platform.</p><sec id="s2_1"><title>2.1. Governing Equations</title><p>In this study, we consider a two-phase incompressible Newtonian flow in which the phases are liquid and the flow mixture is laminar. Therefore, the governing equation of the problem becomes as follows along with Boundary Conditions (BC) and Initial conditions (IC) in the computational domain Ω ,</p><p>∇ ⋅ u = 0 (1)</p><p>ρ ( ∂ u ∂ t + u ⋅ ∇ u ) = − ∇ p + ∇ ⋅ ( μ ( ∇ u + ∇ u T ) ) + ρ g + F s t     , (2)</p><p>where u denotes the velocity of the mixture, ρ and μ are its density and viscosity respectively, g is the gravity and F s t is the surface tension force. The phase field variable [<xref ref-type="bibr" rid="scirp.75170-ref18">18</xref>] φ is governed by the following partial differential equation (PDE)</p><p>∂ φ ∂ t + u ⋅ ∇ φ = ​   ∇ ⋅ γ ∇ G , (3)</p><p>where G is the chemical potential.</p><p>The following equation is used to track the interface in the Phase field method obtained from the Cahn-Hilliard equation [<xref ref-type="bibr" rid="scirp.75170-ref19">19</xref>] which describes the two-phases.</p><p>∂ φ ∂ t + u ⋅ ∇ φ = ∇ ⋅ γ λ ε 2 ∇ ψ , (4)</p><p>ψ = − ∇ ⋅ ε 2 ∇ φ + ( φ 2 − 1 ) φ + ( ε 2 λ ) ∂ f ∂ φ , (5)</p><p>where φ is the dimensionless phase field variable, γ is the mobility, ε is a</p><p>controlling interface parameter, λ is the mixing energy density, the term ∂ f ∂ φ</p><p>denotes the φ derivative of external free energy and χ is the mobility tuning parameter. The density and viscosity of the mixture are the function of volume</p><p>fraction of water V w . The volume fraction of water and oil are V w = 1 + φ 2 and V o = 1 − φ 2 respectively. The density and dynamic viscosity of the two-phase</p><p>model are calculated over the interface according to</p><p>ρ = ρ o + ( ρ w − ρ o ) V w (6)</p><p>μ = μ o + ( μ w − μ o ) V w , (7)</p><p>where the subscript w and o are used for water and oil respectively. The surface tension force for the method is applied as a body force</p><p>F s t = G ∇ φ . (8)</p><p>The chemical potential G is given by the following equation related to the phase field variable and the interface controlling parameter.</p><p>G = λ [ − ∇ 2 φ + φ ( φ 2 − 1 ) ε 2 ] . (9)</p></sec><sec id="s2_2"><title>2.2. Initial and Boundary Conditions for the Simulation</title><p>As the mixture of oil and water is incompressible, the flow is assumed to be laminar two-phase flow where the volume fraction of water and oil are considered 0.91 and 0.09 respectively [<xref ref-type="bibr" rid="scirp.75170-ref20">20</xref>] . The phase field method gives better interface than other methods. In phase field method, the interfacial layer is governed by a phase field variable which is obtained from the Cahn-Hilliard equation. The COMSOL Multiphysics software is used for the CFD simulation. At the inlet we considered velocity | u | = u 0 , a no slip boundary condition on the wall and the traction boundary condition were imposed at the outlet which are given by</p><p>u = 0 (10)</p><p>T = σ ⋅ n = T &#175; , where   σ = − p I + μ ( ∇ u + ∇ u T ) (11)</p></sec><sec id="s2_3"><title>2.3. Computational Domain and Mesh Design</title><p>Atypical circular tube domain as in <xref ref-type="fig" rid="fig1">Figure 1</xref> is considered in our study with 8 m length and 0.05 m radius while the working volume and surface area are 0.0618 m<sup>3</sup> and 2.518 m<sup>2</sup> respectively. As the mesh design plays a significant role in accuracy of numerical results, we considered a suitable mesh design for our simulation with 81,143 elements and 619,748 degrees of freedom according to <xref ref-type="fig" rid="fig2">Figure 2</xref>.</p></sec></sec><sec id="s3"><title>3. Finite Element Approximation</title><p>The variational statement of a boundary value problem is the integral representation of the problem. We can obtain the variational statement by setting the total weighted residual error to zero. When the local residual error is multiplied by a weighting function and then integrating over the domain, the weighted residual error is obtained [<xref ref-type="bibr" rid="scirp.75170-ref15">15</xref>] . The aim is to find an approximate solution such that the total weighted residual error vanishes. If the weighting functions are same as the basis functions, the method is known as Galerkin method. The finite element method is used to calculate the basis functions for the Galerkin approximation of the boundary value problem.</p><sec id="s3_1"><title>3.1. Variational Statement</title><p>r ( x , t ) = ρ ( ∂ u ∂ t + u ⋅ ∇ u ) + ∇ p − ∇ ⋅ ( μ ( ∇ u + ∇ u T ) ) − ρ g − F s t (12)</p><p>According to weighted residual method [<xref ref-type="bibr" rid="scirp.75170-ref15">15</xref>] there is ( u , p ) ∈ V &#215; Q such that for every t ∈ I</p><p>( r , v ) = 0     ∀ v ∈ V and v = 0 on Γ u (13)</p><p>( ∇ ⋅ u , q ) = 0 , ∀ q ∈ Q (14)</p><p>u ( x , 0 ) = u 0 in Ω (15)</p><p>u = u &#175;     in     Γ u (16)</p><p>where V and Q are velocity and pressure spaces and the inner product is defined by</p><p>( a , b ) = ∫ Ω a ⋅ b   d Ω   (17)</p><p>The integral representation of (13) is presented as follows</p><p>∫ Ω ρ D u D t ⋅ v d Ω + ∫ Ω ( − p ∇ ⋅ v + μ ( ∇ u + ∇ u T ) ∇ v )   d Ω − ∫ Ω ρ g ⋅ v d Ω − ∫ Ω F s t ⋅ v d Ω = ∫ ∂ Ω T &#175; ⋅ v d s (18)</p><p>Since ∂ Ω = Γ u ∪ Γ t and u is specified on Γ u and v is chosen to be zero on Γ u .</p><p>The variational statement of the problem is,</p><p></p><p>This variational statement is also known as the weak formulation of a two-phase Newtonian incompressible flow in a computational domain Ω .</p></sec><sec id="s3_2"><title>3.2. The Galerkin Finite Element Approximation</title><p>To find the Finite Element approximation, let V h ⊂ V be a N-Dimensional subspace of V with basis functions { ϕ 1 , ϕ 2 , ⋯ , ϕ N } . Approximating v and q in (19) by</p><p>v h = ∑ k = 1 N ϕ k v k and q = ∑ p = 1 M θ p q p</p><p>∑ k = 1 N { ( ρ D u D t , ϕ k ) − ( p ,   ∇ ⋅ ϕ k ) + ( μ ( ∇ u + ∇ u T )   , ∇ ϕ k ) − ( ρ g   , ϕ k ) − ( F s t   , ϕ k ) − b ( T &#175; , ϕ k ) } v k = 0 (20)</p><p>∑ p = 1 M ( ∇ ⋅ u ,   θ p )   q p = 0   (21)</p><p>which can be written as</p><p>( ρ ∂ u ∂ t , ϕ k ) + ( ρ u ⋅ ∇ u , ϕ k ) − ( p , ∇ ⋅ ϕ k ) + ( μ ( ∇ u + ∇ u T ) , ∇ ϕ k ) = ( ρ g , ϕ k ) − ( F s t , φ k ) − b ( T &#175; , ϕ k ) (22)</p><p>( ∇ ⋅ u   ,   θ p ) = 0 (23)</p><p>Now approximating u and p respectively by</p><p>u h = ∑ l = 1 N ϕ l u l and p h = ∑ p = 1 M ω p p p</p><p>Therefore, we get from (22) and (23) that</p><p>∑ l = 1 N { ( ρ ϕ l , ϕ k ) u ˙ l + ( ρ   ϕ l ⋅ ∇ ϕ l , ϕ k ) u l + ( μ ∇ ϕ l , ∇ ϕ k ) u l + ( μ ∇ ϕ l T , ∇ ϕ k )   u l T } − ∑ p = 1 M ( ω p , ∇ ⋅ ϕ k ) p p = ( ρ g , ϕ k ) + ( F s t , ϕ k ) + b ( T &#175; , ϕ k ) (24)</p><p>∑ k = 1 N ( ∇ ⋅ ϕ k , ω p )   u k = 0 (25)</p><p>which can be represented by</p><p>M U ˙ + A U − C P = F − C 1 T U 1 − C 2 T U 2 − C 3 T U 3 = 0</p><p>using M = ( m k l ) with m k l = ( ρ ϕ k , ϕ l )</p><p>D = ( D k l ) with D k l = ( ρ ϕ l ⋅ ∇ ϕ l , ϕ k )</p><p>K i j = K i j k l = ( μ ∇ ϕ k , ∇ ϕ l )</p><p>A = K i j + D</p><p>C = C i k p with C i k p = ( ω p , ∇ ⋅ ϕ k )</p><p>F = F i k with F i k = ( ρ g , ϕ k ) + ( F s t , ϕ k ) + b ( T &#175; , ϕ k )</p><p>k , l = ( 1 ,   2 ,   ⋯ , N ) and i , j = 1 , 2 , 3</p></sec></sec><sec id="s4"><title>4. Numerical Results and Discussion</title><p>In our study, COMSOL Multiphysics version 4.2 has been used to simulate the oil-water two-phase flows. Properties of the fluid phases and parameters values are given in <xref ref-type="table" rid="table1">Table 1</xref> [<xref ref-type="bibr" rid="scirp.75170-ref9">9</xref>] and <xref ref-type="table" rid="table2">Table 2</xref> [<xref ref-type="bibr" rid="scirp.75170-ref18">18</xref>] respectively. The zero normal stress is considered at the outlet in our simulation. We have analyzed the velocity magnitude, the volume fractions of fluids, the pressure and the shear rate distributions for this two-phase flow mixture. It is also notable that as we simulated a two-phase flow, the interface thickness is an important criterion to understand the general state of the mixture. In this part we discuss about the oil-water interfaces for different times.</p><table-wrap id="table1" ><label><xref ref-type="table" rid="table1">Table 1</xref></label><caption><title> Physical properties of fluid phases</title></caption><table><tbody><thead><tr><th align="center" valign="middle" >Property</th><th align="center" valign="middle" >Symbol</th><th align="center" valign="middle" >Water phase</th><th align="center" valign="middle" >Oil phase</th></tr></thead><tr><td align="center" valign="middle" >Density</td><td align="center" valign="middle" ><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1100577x84.png" xlink:type="simple"/></inline-formula></td><td align="center" valign="middle" >998.2 kg/m<sup>3</sup></td><td align="center" valign="middle" >780 kg/m<sup>3</sup></td></tr><tr><td align="center" valign="middle" >Dynamic viscosity</td><td align="center" valign="middle" ><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1100577x85.png" xlink:type="simple"/></inline-formula></td><td align="center" valign="middle" >0.001003 Pa∙s</td><td align="center" valign="middle" >0.00157 Pa∙s</td></tr><tr><td align="center" valign="middle" >Oil-water Interfacial Tension</td><td align="center" valign="middle" ><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1100577x86.png" xlink:type="simple"/></inline-formula></td><td align="center" valign="middle" >0.17 N/m at 20˚C</td><td align="center" valign="middle" ></td></tr></tbody></table></table-wrap><p>The <xref ref-type="fig" rid="fig3">Figure 3</xref>(a) shows the slices of the velocity magnitude while the <xref ref-type="fig" rid="fig3">Figure 3</xref>(b) represents their corresponding line graph at three different cross sections of the horizontal pipe at x = 1 m , x = 4 m and x = 7 m respectively. It is found that velocity magnitude is generally higher at the middle part of the tube and the lowest at the boundary of the tube. The velocity profiles form a parabolic shape showing the maximum velocity at the center.</p><table-wrap id="table2" ><label><xref ref-type="table" rid="table2">Table 2</xref></label><caption><title> Parameters value used for simulation</title></caption><table><tbody><thead><tr><th align="center" valign="middle" >Symbol</th><th align="center" valign="middle" >Quantity</th><th align="center" valign="middle" >Values</th></tr></thead><tr><td align="center" valign="middle" ><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1100577x90.png" xlink:type="simple"/></inline-formula></td><td align="center" valign="middle" >Inlet initial velocity</td><td align="center" valign="middle" >0.024 m/s</td></tr><tr><td align="center" valign="middle" ><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1100577x91.png" xlink:type="simple"/></inline-formula></td><td align="center" valign="middle" >Phi-derivative of external free energy</td><td align="center" valign="middle" >0.01 J/m</td></tr><tr><td align="center" valign="middle" ><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1100577x92.png" xlink:type="simple"/></inline-formula></td><td align="center" valign="middle" >Parameter controlling interface thickness</td><td align="center" valign="middle" >0.01 m</td></tr><tr><td align="center" valign="middle" ><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1100577x93.png" xlink:type="simple"/></inline-formula></td><td align="center" valign="middle" >Mobility tuning parameter</td><td align="center" valign="middle" >1 m∙s/kg</td></tr><tr><td align="center" valign="middle" ><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1100577x94.png" xlink:type="simple"/></inline-formula></td><td align="center" valign="middle" >Gravity</td><td align="center" valign="middle" >9.8 m/s<sup>2</sup></td></tr></tbody></table></table-wrap><p>In case of fluid flow inside a tube domain the shear stress can be found on the wall of the domain. We investigated the shear rate distribution for the entire domain which is shown in <xref ref-type="fig" rid="fig4">Figure 4</xref>. It shows the shear rate decreases gradually with small fluctuations along the domain.</p><p>One of the important parameters used to characterize the two-phase flow is the volume fraction of different phases. <xref ref-type="fig" rid="fig5">Figure 5</xref>(a) and <xref ref-type="fig" rid="fig5">Figure 5</xref>(b) shows the volume fraction of the oil and the water phase respectively along the horizontal pipe. We see that in the mixture the volume of the oil phase sharply increased while the water phase decreased at the same ratio.</p><p><xref ref-type="fig" rid="fig6">Figure 6</xref> represents the pressure drop along the pipe. A linear pressure drop is observed from the inlet to the outlet though there is a sudden drop near the inlet. This indicates the velocity of the mixture is increased initially and it keeps remain until the end of the tube.</p><p>The <xref ref-type="fig" rid="fig7">Figure 7</xref> represents the oil-water interfaces at different times of our simulation. At the beginning of the mixture, the two-phases are mixed completely</p><p>except for a small change around zero of the value of the phase field variable. The phases have started to separate (<xref ref-type="fig" rid="fig7">Figure 7</xref>(b)) at t = 1 s. After that the oil and water phases have started to form different phases (<xref ref-type="fig" rid="fig7">Figure 7</xref>(c) and <xref ref-type="fig" rid="fig7">Figure 7</xref>(d)) according to the phase field variable and we observed the two-phases exist separately. Gradually, the phases formed large phase domains by creating an interface to separate the phases. This shows that the two fluids tend to separate into distinct phases.</p></sec><sec id="s5"><title>5. Conclusion</title><p>A CFD model is proposed based on the Galerkin Finite Element approximation to simulate the two-phase flows. According to the Galerkin FEM, we obtained the variational statement of the fluid flow problem by setting the total weighted residual error to zero. A computational domain with 8 m length and 0.05 m radius respectively is constructed to simulate an oil-water two-phase flow. The velocity magnitude has been observed higher at the middle of the tube and the lowest at the boundary of the tube. The shear rate decreased with small fluctuation along the domain. The Oil phase volume fraction increased consequently the water phase decreased at the same ratio. From the inlet to the outlet, a linear pressure drop is observed. It is also notable that the fluids tend to separate into two distinct phases.</p></sec><sec id="s6"><title>Acknowledgements</title><p>The authors gratefully acknowledge for the technical support to The Centre of excellence in Mathematics, Department of Mathematics, Mahidol University, Bangkok, Thailand.</p></sec><sec id="s7"><title>Cite this paper</title><p>Akter, F. and Deb, U.K. (2017) Computational Modeling and Dynamics of the Oil and Water Flow Using the Galerkin Approximation. American Journal of Computational Mathematics, 7, 58-69. https://doi.org/10.4236/ajcm.2017.71005</p></sec></body><back><ref-list><title>References</title><ref id="scirp.75170-ref1"><label>1</label><mixed-citation publication-type="other" xlink:type="simple">Drew, D.A. (1983) Mathematical Modeling of Two-Phase Flow. Annual Reviews on Fluid Mechanics, 15, 261-291. https://doi.org/10.1146/annurev.fl.15.010183.001401</mixed-citation></ref><ref id="scirp.75170-ref2"><label>2</label><mixed-citation publication-type="other" xlink:type="simple">Desamala, A.B., Dasamahapatra, A.K. and Mandal, T.K. (2014) Oil-Water Two-phase Flow Characteristics in Horizontal Pipeline A Comprehensive CFD Study. International journal of Chemical, Molecular, Nuclear, Materials and Metallurgical Engineering, World Academy of Science, Engineering and Technology, 8, 360-364.</mixed-citation></ref><ref id="scirp.75170-ref3"><label>3</label><mixed-citation publication-type="other" xlink:type="simple">Liao, Q., Liu, D., Ye, D., Zhu, X. and Lee, D. (2011) Mathematical Modelling of Two-phase Flow and Transport in an Immobilized-Cell Photo Bioreactor. International Journal of Hydrogen Energy, 36, 13939-13948.</mixed-citation></ref><ref id="scirp.75170-ref4"><label>4</label><mixed-citation publication-type="other" xlink:type="simple">Morin, A. (2012) Mathematical Modelling and Numerical Simulation of Two-phase Multi-component Flows of CO2 Mixtures in Pipes. PhD Thesis, Norwegian University of Science and Technology, Norway.</mixed-citation></ref><ref id="scirp.75170-ref5"><label>5</label><mixed-citation publication-type="other" xlink:type="simple">Hudson, J. and Harris, D. (2006) Numerical Modeling of Eulerian Two-Phase Gas-Solid Flow. Manchester Institute of Mathematical Sciences, Manchester, 1-41.</mixed-citation></ref><ref id="scirp.75170-ref6"><label>6</label><mixed-citation publication-type="other" xlink:type="simple">Giordano, M., Bonfiglioli, A. and Magi, V. (2006) A Parallel Finite Element Method for Two-phase Flows. European Conference on Computational Fluid Dynamics, Glasgow, 1-20.</mixed-citation></ref><ref id="scirp.75170-ref7"><label>7</label><mixed-citation publication-type="other" xlink:type="simple">Kanarachos, S. and Flouros, M. (2014) Simulation of Air-Oil Mixture Flow in the Scanvenge Pipe of an Aero Engine Using Generalized Interface Momentum Exchange Model. WSEAS transaction on Fluid mechanics, 9, 144-153.</mixed-citation></ref><ref id="scirp.75170-ref8"><label>8</label><mixed-citation publication-type="other" xlink:type="simple">Zhou, J.X., Shen, X., Yin, Y.J., Gou, Z. and Wang, H. (2015) Gas Liquid Two-phase Flow Modelling of Incompressible Fluid and Experimental Validation Studies in Vertical Centrifugal Casting. IOP Conference Series: Material science and Engineering, 84, 1-9. http://dx.doi.org/10.1088/1757-899X/84/1/012042</mixed-citation></ref><ref id="scirp.75170-ref9"><label>9</label><mixed-citation publication-type="other" xlink:type="simple">Alias, A.Z.M., Koto, J. and Ahmed, Y.M. (2015) CFD Simulation for Stratified Oil-Water Two-Phase Flow in a Horizontal Pipe. International Society of Ocean, Mechanical and Aerospace Scientists and Engineers, 2, 1-6.</mixed-citation></ref><ref id="scirp.75170-ref10"><label>10</label><mixed-citation publication-type="other" xlink:type="simple">Hu, H. and Cheng, Y.F. (2016) Modelling by Computational Fluid Dynamics Simulation of Pipeline Corrosion in CO2-Containing Oil-Water Two-phase Flow. Journal of Petroleum Science and Engineering, 146, 134-141.</mixed-citation></ref><ref id="scirp.75170-ref11"><label>11</label><mixed-citation publication-type="other" xlink:type="simple">Nabil, T., EL-Sawaf, I. and EL-Nahhas, K. (2013) Computational Fluid Dynamics Simulation of the Solid-Liquid Slurry Flow in a Pipeline. Seventh International Water Technology Conference, 5-7 November 2013, Istanbul, Turkey.</mixed-citation></ref><ref id="scirp.75170-ref12"><label>12</label><mixed-citation publication-type="other" xlink:type="simple">Rathod, R and Hebbal, O. (2013) CFD Simulation of Two-phase Flow and Heat Transfer in Helical Pipe. International Journal of Engineering Research and Technology, 2, 2150-2157.</mixed-citation></ref><ref id="scirp.75170-ref13"><label>13</label><mixed-citation publication-type="other" xlink:type="simple">Kartushinsky, A., Siirde, A., Rudi, U. and Shablinsky, A. (2011) Mathematical Model of Two-phase Flows Loaded with Light and Heavy Particles to Analyze CFB Processes. Oil Shale, 28, 169-180. http://dx.doi.org/10.3176/oil.2011.1S.09</mixed-citation></ref><ref id="scirp.75170-ref14"><label>14</label><mixed-citation publication-type="other" xlink:type="simple">Sanati, A. (2015) Numerical Simulation of Air-Water Two-phase Flow in Vertical Pipe Using k-ε Model. International Journal of Engineering and Technology, 4, 61-70. https://doi.org/10.14419/ijet.v4i1.3965</mixed-citation></ref><ref id="scirp.75170-ref15"><label>15</label><mixed-citation publication-type="other" xlink:type="simple">Yu, W.H. and Wiwatanapattaphee, B. (2006) Finite Element Method and Application. Mistercopy Publishing Company, Bangkok.</mixed-citation></ref><ref id="scirp.75170-ref16"><label>16</label><mixed-citation publication-type="other" xlink:type="simple">Abed, E.M. and Auda, Z.A. (2014) Simulation and Experiment of Oil-Water Flow with Effect of Heat Transfer in Horizontal Pipe. International Journal of Mechanical Engineering and Applications, 2, 117-127. http://dx.doi.org/10.11648/j.ijmea.20140206.16</mixed-citation></ref><ref id="scirp.75170-ref17"><label>17</label><mixed-citation publication-type="other" xlink:type="simple">Shahriar, M., Monir, M.I. and Deb, U.K. (2016) Comparative Analysis of Hydrodynamics Behavior of Microalgae Suspensio Flow in Circular, Square and HexagonalShape Photo Bio-Reactors. America Journal of Computational Mathematics, 6, 320 -335. http://dx.doi.org/10.4236/ajcm.2016.64033</mixed-citation></ref><ref id="scirp.75170-ref18"><label>18</label><mixed-citation publication-type="other" xlink:type="simple">Deb, U.K., Chayantrakom, K., Lenbury, Y. and Wiwatanapataphee, B. (2012) Numerical Simulation of Two-Phase Laminar Flow for CO2 and Microalgae Suspension in the HLTP. Latest Advances in System Science and Computational Intelligence, WSEAS Press, Haifa, 53-58.</mixed-citation></ref><ref id="scirp.75170-ref19"><label>19</label><mixed-citation publication-type="other" xlink:type="simple">Cahn, J.W. and Hilliard, J.E. (1958) Free Energy of a Non-Uniform System in Interfacial Energy. Journal of Chemical Physics, 28, 258-267. https://doi.org/10.1063/1.1744102</mixed-citation></ref><ref id="scirp.75170-ref20"><label>20</label><mixed-citation publication-type="other" xlink:type="simple">Xu, X. (2007) Study on Oil-Water Two-Phase Flow in Horizontal Pipelines. Journal of Petrolium Science and Engineering, 59, 43-58. https://doi.org/10.1016/j.petrol.2007.03.002</mixed-citation></ref></ref-list></back></article>