Open-access Numerical solution of the phase average Navier-Stokes equation using the finite element method

Abstract

Recent solutions proposed for the surface integral term contained in the phase average form of the Navier-Stokes equation has transformed the equation into a practical tool for the numerical analysis of macroscopic flow through porous media. In this paper the form of these equations, governing the transport of momentum through porous media for low Reynolds number laminar flow of incompressible fluids, is cast into a set of algebraic equations using the Ritz finite element method. The continuity requirement is treated as a constraint condition and is incorporated into the algebraic equations through the penalty function method. The final set of algebraic equations is coded into a finite element software program in order to demonstrate the proposed numerical solution method. Numerical solutions included illustrate the transition from Navier-Stokes to phase average Navier-Stokes to Darcy-type controlled flow in porous media as the shear flow resistance of the porous medium is increased relative to the viscosity of the traversing fluid. In addition to this, the versatility of the proposed numerical method is demonstrated with the solution of a flow front problem for the case where a fluid penetrates into a 'dry' porous domain.


Introduction

The solution of transport problems in porous media presents a challenging research field with potential benefit in a diverse number of engineering areas such as ground water seepage, cellular bone behaviour, crush-able foam structures, air pollution of forest areas, and composite material processes.

The general approach to obtaining numerical solutions in this field is based on using the tensorized Darcy1 equation (1), together with the continuity equation (2) as governing equations. A recent application of this methodology can be found in the work of Bruschke & Advani.2

Equation (1) has the disadvantage that macroscopic phenomena such as the no-slip velocity boundary conditions are implicitly ignored. This may be quite acceptable for cases where the permeability of the porous medium is very low compared to the viscosity of the traversing fluid, but can certainly lead to erroneous results in other situations.

A momentum transport equation governing flow in porous media that includes macroscopic flow effects has however been available for some time. The equation is largely the result of applying an averaging theorem developed by Slattery3 and Whitaker4 rigorously to the standard Navier-Stokes equation. The reader is referred to Bear & Bachmat,5 and Du Plessis &, Masliyah6 for an overview and derivation of this equation, which is also referred to as the phase average form of the Navier-Stokes equation.

Until recently the phase-average form of the Navier-Stokes equation was not readily suitable for numerical analysis since it contains an 'unfriendly' surface integral term that captures the micro-scale fluid/solid interaction. The numerical solution of this integral term is not practical since the integration has to be performed over the micro-scale surface area of the porous domain structure. The only other (but unsatisfactory) alternative was to approximate the surface integral term with empirical formulae. Fortunately this shortcoming was overcome by Du Plessis & Masliyah6 who proposed a solution methodology to closure of the surface integral term that culminated in the form of the phase average Navier-Stokes equation shown in equation (3) and incorporates the shear flow resistance factor F. Van der Westhuizen & Du Plessis7 extended the shear flow resistance concept to orthotropic media and set up the tensorial form for the surface integral term contained in equation (3). For low Reynolds number incompressible steady state laminar flow an alternative and more inclusive equilibrium equation is therefore established as

In the equation above the terms on the right hand side represent, respectively, the body forces, the pressure gradient, the viscous shear forces and the shear resistance of the porous domain to fluid flow.

This paper sets up the finite element algebraic equations equivalent to the governing differential equations (2) and (3), describes a software program that was developed to solve these algebraic equations numerically and illustrates typical results. The general finite element methodology followed here is formulated in detail in several text books of which Reddy8 is recommended.

Theoretical development

Weak form of the governing equations

The integral form of equation (3) is constructed by multiplying the equation with a test or weight function, ω,and integrating this product over the domain of a general finite element as follows:

In this way the governing equation will be satisfied in an average or integral sense over each finite element domain.

Equation (4) is now further manipulated in order to achieve the same continuity requirement for the weight function as for the unknown fields and to isolate the natural boundary conditions explicitly as part of the formulation. The first step is to apply the product rule of differentiation as follows:

The second step is to apply the gradient theorem (also known as Gauss' theorem) to the second and fourth terms of the integrand of equation (5), and assume that the porosity E can be taken as constant throughout each finite element, so that

In the equation above the natural boundary condition, ti, is given by

It is convenient and physically informative to express equations (6) and (7) in component form at this point. For the 1-direction the result is

The weak form of the continuity equation (2) is constructed in the same way as that of the momentum equation (3), but since only the first derivatives of specific discharge are contained in this equation, the derivative is not transferred to the weight function. In component form the result is given by

The associated functional

Addition of the three component equations represented by the tensor equation (6), i.e. the weak form of the governing momentum equation, leads to a single equation that can be recast into two functionals as follows:

In the equation above ω1, ω2and ω3,are the weight functions respectively associated with each of the specific discharge components q1, q2 and q3, and B is a functional, or function of these functions, given by

A solution for the specific discharge field that satisfies the linear momentum equation (3) will also satisfy equation (11). In this context, equation (11) must hold for any weight functions that satisfy the essential boundary conditions and is therefore the variational problem associated with the governing equation (3). The weight functions ω1, ω2 and ω3 equivalent to variations δq1, δq2and δq3 of the velocity field.

This variational equivalence allows a simplification of the expression for B, since

which is zero from continuity and thus implies that the last term in the integral of equation (12) vanishes.

Since the functional B is symmetric and bilinear (note that the flow resistance tensor Fi}is symmetric) and the functional L is linear, a functional F can be constructed as follows for which the extreme value solution also satisfies the conservation of linear momentum stated by the governing equation (3):

It is straightforward to confirm that the functional of equation (15) is constructed correctly by generating the necessary equations to form a minimum of the functional. This is achieved by consecutively taking the first variation in each component of the specific discharge and equating it to zero. For example, consider the variation

which is equivalent to equation (8), except for the pressure term that disappears as a consequence of continuity.

The problem of finding an approximate numerical solution to the governing equations (2) and (3) in a certain domain can therefore be restated in two alternative ways:

• Subdivide the domain into suitable finite elements. Find a solution to the weak form of the governing equations (6) and (10) over each finite element. Assemble the finite elements in a proper manner, i.e. ensure sufficient continuity and equilibrium between elements to guarantee convergence and accuracy of the solution.

• Subdivide the domain into suitable finite elements. Find the extreme value solution of the functional F of equation (11) subject to the continuity constraint of equation (2) over each finite element. Assemble the finite elements in a proper manner.

The second approach will be used here.

Constraint formulation

The penalty function method will be used to reformulate the stated constrained problem into a set of equations incorporating the constraint condition through a penalty parameter, γ. This is done by modifying the functional F as follows:

where the continuity equation forms the constraint function G, given by

The extreme value of the modified functional may now be found through variational principles that call for solving the following three equations simultaneously:

and

In the equations (19) through (21), the continuity condition is included through the constraint equation. It is therefore possible to compare these equations with the weak form of the momentum equation (6) and to set up the following relationship between pressure and the constraint equation:

Finite element equations

The finite element approach employed here will be based on an assumed discharge velocity field in each finite element. Since the functional F contains only first order spatial derivatives of the unknown field, convergence of the numerical solution is guaranteed if at least the zero order derivative of the discharge velocity is taken as nodal unknowns and if the spatial interpolation field is a complete polynomial of at least degree one. The assumed specific discharge field can therefore be expressed as

where the ψß are interpolation functions, qiß are the i-component of the unknown nodal values of the specific, discharge and m is the number of nodes per element.

According to the method of Ritz the ra equations needed to solve for the ra nodal unknowns per element are generated by setting δq1 = ψα for α = 1 to m. The set of algebraic equations generated per element in this way can be ordered and summarized in the following matrix format:

where

Computer implementation

Software development

The finite element equations (25) through (36) are very similar in form and nature to the governing equations for laminar flows of viscous incompressible fluids and the computer implementation therefore relies to a large extent on numerical experience gained and reported in the literature on finite element analyses of this type of problem. In this context the following specific conclusions and recommendations listed by Reddy8 were incorporated in the developed software:

• Reduced integration is used for all terms in the stiffness matrix associated with the penalty parameter, i.e. these terms are numerically integrated using an integration order rule of one order less than that required to integrate the terms exactly. This prevents 'locking' of the numerical solution by the penalty function as the value of the penalty parameter is increased and therefore allows greater freedom with respect to the selection of the penalty parameter.

• Computation of pressures at the full integration points is less accurate than pressures computed at the reduced integration points. Pressure results are therefore computed at reduced integration points.

• Quadratic rectangular elements yield more reliable pressure results than linear rectangular or linear/quadratic triangular elements. All results listed will therefore be for 9-node Lagrangian isoparametric elements as shown in Figure 1. See Reddy8 and/or Cook et al.9 for a detailed description of this element as well as the isoparametric formulation concept.

A computer program FILLUP2 was written to solve two-dimensional macroscopic flow through porous media. Auxiliary software was generated to function with the program to enable input data generation, input data checking and the interrogation of output results. A functional diagram of the main and auxiliary programs are given in Figure 2.

The program was also set up as part of a logic procedure to simulate the penetration of a liquid phase into a porous domain filled initially with a gaseous substance under the assumptions of negligible gas pressure and a rigid porous domain. The underlying approach of the latter procedure is to generate the finite element mesh of the complete porous domain as an input file. Those elements and nodes that represent areas of the domain, that are saturated with fluid at each time step, are identified through a set of status flags. This 'active' part of the problem is then solved numerically for velocities and pressures. The fluid velocity on the free surface of the fluid is evaluated to determine whether those 'inactive' elements adjacent to the tree surface will fill up and become 'active1 for the next time step. Based on this evaluation the model status flags are reset to redefine the 'active' part of the domain and the analysis can be repeated for the next time step. Extraction of the 'active' part of the problem from the input file at each time step, as well the status flag settings, are done automatically by the software.

Software verification - Case Study 1

Table 1 compares the results from FILLUP2 with an approximate analytical solution presented by Nadai10 for the flow of a viscous incompressible material squeezed between two long parallel plates. To do this type of analysis with FILLUP2 the flow resistance must be set to zero and the porosity of the porous medium must be set to one. The finite element boundary conditions as well as the mesh are shown in Figure 3.

Software verification - Case Study 2

Figures 4 and 5 show results for two-dimensional developing flow between two flat plates with varying flow resistance to viscosity ratios. The figures show how the velocity and pressure distributions change with increasing flow resistance of the porous domain, until the solution converges to the one-dimensional Darcy-type flow at a flow resistance to viscosity ratio of 1 000. The 4.0 × 2.0 cross-sectional area is meshed with 6×4 9-node elements and the boundary conditions consisted of a uniform unit inlet velocity and no-slip along the horizontal edges. (Note that the relationship between permeability and shear flow resistance was established by Du Plessis & Masliyah6 as ϵ = FK.)

Liquid penetration simulation

This section is included to illustrate the use of the software to simulate the penetration of a liquid phase into the voids of an 'empty' porous domain. Figure 6 shows the finite element mesh used to model the 0.3 m × 0.1 m cross-section of a long porous domain. The liquid viscosity was taken as 0.5 Ns/m2, together with an assumed orthotropic flow resistance of 10 000 m-2 in the horizontal direction and 1000 m-2, in the vertical direction.

The porosity was taken as constant = 0.5 throughout the domain. Gravity forces are ignored and the penalty parameter was selected at 1.0E08. Initially one element (number 81) is saturated with the liquid phase. Boundary conditions consist of no-slip along the edges of the domain with an applied discharge of 0.001 m/s over the outer edge of element 81. Figure 7 shows the saturation state of the domain at the indicated times. Elements that are completely filled with the liquid phase are hatched with a cross. The total time predicted by FILLUP2 to fill the porous domain is 1016 seconds. This value compares well with the exact value calculated from global continuity of 1 009 seconds.

Discussion

Equations (24) through (36) and the numerical results summarized in Figures 4, 5, and 7 illustrate the relative ease with which the phase average Navier-Stokes equation can be solved with the finite element method using the penalty function technique to ensure continuity. The various terms in the stiffness matrix, as well as the natural boundary conditions have physical appeal and are easy to implement.

It can be seen from equation (17) that the extent to which the continuity constraint will be satisfied will depend on the relative magnitude of the penalty parameter 7. For a very large value of 7 the constraint will dominate the solution and make the solution insensitive to the governing equations. For a small value of 7 the participation of the constraint equation in the solution vanishes. Reddy8 recommends a penalty parameter to viscosity ratio of 104 to 1012 for good results during the analysis of laminar flows of viscous incompressible fluids. For the present type of analysis, results were found to be satisfactory if both the penalty parameter to viscosity ratio and the penalty parameter to shear flow resistance ratio were kept within the 104 to 1012 bounds.

In some practical problems the situation may however arise where the physical shear flow resistance to viscosity ratios are too large to select a penalty parameter according to the above guidelines. In situations like this the physical implication is that macroscopic boundary effects no longer play a significant role in the solution and the Darcy equation (1) should be used instead of the phase average Navier-Stokes equation (3) to govern equilibrium. It is of course quite possible to still use the presented solution method with a false (larger) viscosity and to obtain accurate results, but this would be counterproductive since the finite element solution of the Darcy equation is much simpler in form than that of the phase average Navier-Stokes equation and since several commercial finite element codes can handle the Darcy-type problem in a very powerful way.

Conclusion

The finite element algebraic equations are presented for the phase average Navier- Stokes equation and the continuity equation governing transport in porous media.

The presented equations are for low Reynolds number steady state flow of viscous incompressible fluids. Numerical results are included to illustrate the correctness and ease of implementation of the algebraic equations. The latter is emphasized by the simplistic, yet useful, control volume flow logic of FILLUP2 for the modelling of fluid penetration into 'dry' porous domains.

The extension of the present results to unsteady flow, as well as the 3-dimensional numerical implementation of the presented equations, is a straightforward exercise and further illustrates the usefulness of the form of the phase average Navier-Stokes equation presented by Du Plessis & Masliyah6 as tool for numerical finite element analysis of seepage problems.

[1] Darcy HPG, Les Fontaines Publiques de la Ville de Dijon, Victor Dalmont, Paris, 1856, cf. Muskat M. The Flow of Homogeneous Fluids through Porous Media. McGraw-Hill, New York, 1937.

References

  • [2] Bruschke MV & Advani SG. A Finite Element/Control Volume Approach to Mold Filling in Anisotropic Porous Media. Polymer Composites, 11, 1990, 398-405.
  • [3] Slattery JC. Single Phase Flow through Porous Media. Am. Inst. Chem. Eng. J., 15, 1969, 886-872.
  • [4] Whitaker S. Diffusion and Dispersion in Porous Media. Am. Inst. Chem. Eng. J., 13, 1967, 420-427.
  • [5] Bear J & Bachmat Y. Macroscopic Modelling of Transport Phenomena in Porous Media 2: Application to Mass, Momentum and Energy Transport. Transport in Porous Media, 1, 1986, 241-269.
  • [6] Du Plessis JP k Masliyah JH. Mathematical Modelling of Flow through Consolidated Isotropic Porous Media. Transport in Porous Media, 3, 1988, 145-161.
  • [7] Van der Westhuizen J & Du Plessis JP. Quantification of Unidirectional Fiber Bed Permeability. J. of Comp. Materials, 7, 1994, 619.

[8] Reddy JN. An Introduction to the Finite Element Method, 2nd edn. McGraw-Hill, 1993.

[9] Cook RD, Malkus DS Plesha ME. Concepts and Applications of Finite Element Analysis, 3rd edn. J. Wiley, 1989.

[10] Nadai A. Theory of Flow and Fracture of Solids, II, McGraw-Hill, 1963.

First version August 1995
Final version August 1995

Publication Dates

  • Publication in this collection
    09 July 2024
  • Date of issue

History

  • Received
  • Accepted
location_on
South African Institution of Mechanical Engineering Research and Development Journal, University of Stellenbosch, Private Bag X1, Matieland, Cape Town, Western Cape Province, ZA, 7602, Tel: +27 21 808 4091 - E-mail: gillianc@sun.ac.za
rss_feed Acompanhe os números deste periódico no seu leitor de RSS
Ir para o topo