Solving the Nonstationary Richards Equation with Adaptive Hp-FEM

Total Page:16

File Type:pdf, Size:1020Kb

Solving the Nonstationary Richards Equation with Adaptive Hp-FEM Solving the Nonstationary Richards Equation With Adaptive hp-FEM Pavel Solin1;2, Ondrej Certik1;3, Michal Kuraz4 1Department of Mathematics and Statistics, University of Nevada, Reno, USA 2Institute of Themomechanics, Prague, Czech Republic 3Institute of Physics, Academy of Sciences of the Czech Republic, Czech Republic 4Department of Water Resources and Environmental Modeling, Czech University of Life Sciences, Prague, Czech Republic Abstract This paper introduces briefly the adaptive hp-FEM method and examines its potential for the numerical solution of time-dependent variably saturated groundwater flow problems described by the Richards equation. For this purpose we use a benchmark for the nonstationary Richards equation that has a known exact solution given in terms of Fourier series, and an example of groundwater seepage into a dry lysimeter box with time-dependent boundary conditions. In the second part of the paper we discuss in more detail several advanced approximation techniques related to adaptive hp-FEM and introduce the open source adaptive hp-FEM library HERMES. Keywords: Richards equation, Adaptive hp-FEM 1. Introduction oscillation [9]. It should be noted that these oscillations are an attempt of the numerical method to preserve mass The problem of predicting flow in an unsatu- within large elements where the solution is not captured rated/saturated zone is important in many fields rang- with sufficient accuracy. ing from agriculture and hydrology to technical appli- One of the goals of this paper is to show that to cer- cations such as contaminant transport, disposal of dan- tain extent, these problems can be avoided by resolving gerous waste in deep rock formations, and others. areas with steep solution gradients with adaptive finite The Richards equation is obtained by combining the element methods, so that the underlying reason for the Darcy-Buckingham’s law with the law of conservation nonphysical oscillations ceases to exist. In particular, of mass. Its numerical solution is the subject of an we focus on the application of adaptive hp-FEM, a mod- intense research since the early 1970s, beginning with ern version of the finite element method that is capable Neuman’s finite element solution of unsteady dam seep- of extremely fast, exponential convergence [36]. age [20], Celia’s mass conservative modified Picard it- The outline of the paper is as follows: To make the eration [2] method in the early 1990s, and the recent paper self-contained and to establish notation, in Sec- Kees’s work with focus on stabilized finite element ap- tion 2 we introduce the Richards equation and relevant proximations [16, 18, 5]. Numerical methods for the constitutive relations. In Section 3 we introduce briefly Richards equation can be tested on several simplified adaptive hp-FEM and demonstrate its potential on a examples with known exact solutions such as [38, 39]. simple elliptic benchmark problem with known exact It is well known that a straightforward application solution. In Section 4, an analogous comparison with of the Galerkin approximation to the Richards equation low-order finite element methods is done for the time- yields poor results. In certain types of media, wetting dependent Richards equation, in the context of a bench- fronts generate steep gradients with a dominant con- mark problem with known exact solution. Section 5 is vective term [16]. Classical finite element approxima- dedicated to solving with adaptive hp-FEM a nonsta- tions are therefore often modified using low-order mass- tionary groundwater seepage into a dry lysimeter box, lumping and upwinding schemes to prevent nonphysical with time-dependent boundary conditions. In the sec- Preprint submitted to Advanced Water Resources August 2, 2010 ond part of the paper we describe in more detail some pressure, and n and m [-] are a pore-size distribution particular aspects on adaptive hp-FEM that are relevant parameters affecting the slope of the retention function. for computations performed in this paper, and we intro- The relation between the hydraulic conductivity and duce the open source project HERMES [12]. the negative pressure head, an unsaturated conductivity function, might be defined by the Mualem’s model [19]: 2. Richards Equation 8 2 0 Rθ 1 > B 1 dθ C > q B h(θ) C > θ B θr C The mathematical model of unsaturated flow was > Ks B C > θs B RθS C < B 1 C originally published in [25]. This formula, usually iden- K(h) = @ h(θ) dθ A (5) > θ tified as the mixed form of the Richards equation, states > r > 8θ 2 (θr; θS ) ) h 2 (−∞; 0); that > : Ks 8θ = θS ) h 2 h0; +1): ∂θ @K(θ) − r · (K(θ)rh) − = 0: (1) @t @z Here θr is the so called residual water content [-] – a bot- tom limit of water content for Darcian flow to occur, Ks Here θ is the water content of a porous material [-], h is is the saturated hydraulic conductivity (the maximum the pressure head [L], K(θ) is the unsaturated hydraulic value). − conductivity function [L:T 1], z denotes the vertical di- Due to the great complexity of the van Genuchten’s mension [L], assumed positive upwards, and the porous relations (4) and (5), an older exponential Gardner’s medium is assumed to be isotropic. Appropriate con- model [10] is sometimes used in works treating analyti- stitutive relationships among θ and h, K and h, are also cal aspects such as, e.g., [38, 39]. The Gardner’s model assumed. has the form This PDE can be generalized as a quasilinear elliptic- ( θ + (θ − θ )eαh: 8 h 2 (−∞; 0); parabolic differential equation and as a degenerate θ(h) = r s r (6) convection-diffusion problem. A proof of the existence θS ; 8 h 2 h0; +1); of a solution is given in [1]. This model is applicable to unsteady unsaturated and flow, thus for h 2 (−∞; 0i. An extension into saturated ( αh Kse ; 8 h 2 (−∞; 0); zone can be obtained by modifying the time derivation K(h) = (7) Ks; 8 h 2 h0; +1): term as considered in Neumann’s and Huyakorn’s works (see, e.g., [20, 21, 22, 13, 14]). The modification has the form 3. Adaptive hp-FEM ∂θ θ @h @K(θ) + S − r · (K(θ)rh) − = 0; (2) The finite element method (FEM) is the most widely @t θS @t @z used numerical technique to solve partial differential equations (PDE). By adaptive hp-FEM we mean a mod- where θS is the saturated water content [-] and S the specific storativity [L−1]. Such an approach is suitable, ern version fo FEM that combines adaptively finite ele- h e.g., for modeling an unsteady dam seepage. Equation ments of different spatial diameters ( ) and polynomial p (2) can also be assumed in the standard h-based form, degrees ( ) in order to maximize the convergence rate. For theory and technical details of higher-order FEM ! θ @h @K(h) and automatic hp-adaptivity we refer, e.g., to [36] and C(h) + S −r·(K(h)rh)− = 0: (3) θS @t @z many references therein. In the following let us present a simple example that illustrates the huge computational 2.1. Constitutive Relations potential of the method. A relation between the water content and the pressure We consider the Poisson equation −∆u = f with head is called retention curve. Its most commonly used zero Dirichlet boundary conditions, in a square domain 2 analytical formula is the van Genuchten’s equation [40]: Ω = (0; π) . Exact solution to this problem is chosen to be u(x; y) = sin(x) sin(y) and the right-hand side func- ( − θs θr + θ ; 8 h 2 (−∞; 0) tion f is calculated accordingly. Note that having the θ(h) = (1+(−αjhj)n)m r (4) θS ; 8 h 2 h0; +1): exact solution means that we are able to calculate the approximation error exactly, and thus compare fairly the Here α [L−1] is an empirical parameter whose inverse performance of different methods. The exact solution u is often referred to as the air entry value or bubbling is shown in Fig. 1. 2 Figure 1: Exact solution. The problem is solved using adaptive hp-FEM, adap- tive h-FEM with quadratic elements, and adaptive h- FEM with linear elements. To solve the problem we have implemented a simple C++ program that uses the open source adaptive hp-FEM library HERMES that is Figure 2: Convergence in terms of DOF. described in more detail in Section 7. Each computation starts from a one-element mesh and it is stopped when the number of unknowns in the discrete problem (DOF) exceeds 40000, or when the ap- proximation error drops below 10−5%. Due to these lim- itations, each method stops with a different number of DOF and accuracy, as shown in Table 1: Method DOF error [%] h-FEM (p = 1) 27469 0:3917379 h-FEM (p = 2) 39185 0:0022127 hp-FEM 49 0:0000427 Table 1: Performance comparison of the three methods. The table shows that adaptive hp-FEM attained an er- ror below 10−4% with 49 DOF, which is an accuracy that neither of the two remaining methods was able to Figure 3: Convergence in terms of CPU time. attain with much larger numbers of DOF. Fig. 2 presents a more complete convergence com- Final meshes for all three computations are shown in parison of the three methods, and it also shows that each Figs. 4 – 6. Note that the hp-FEM mesh (Fig. 6) only method attained its theoreticaly predicted asymptotic contains one element of polynomial degree 8. convergence rate – h-FEM with linear and quadratic ele- ments have on a log-log convergence graph slopes −1=2 and −1, respectively, and the convergence of hp-FEM is exponential.
Recommended publications
  • Physics Editor Mac Crack Appl
    1 / 2 Physics Editor Mac Crack Appl This is a list of software packages that implement the finite element method for solving partial differential equations. Software, Features, Developer, Version, Released, License, Price, Platform. Agros2D, Multiplatform open source application for the solution of physical ... Yves Renard, Julien Pommier, 5.0, 2015-07, LGPL, Free, Unix, Mac OS X, .... For those who prefer to run Origin as an application on your Mac desktop without a reboot of the Mac OS, we suggest the following virtualization software:.. While having the same core (Unigine Engine), there are 3 SDK editions for ... Turnkey interactive 3D app development; Consulting; Software development; 3D .... Top Design Engineering Software: The 50 Best Design Tools and Apps for ... design with the intelligence of 3D direct modeling,” for Windows, Linux, and Mac users. ... COMSOL is a platform for physics-based modeling and simulation that serves as ... and tools for electrical, mechanical, fluid flow, and chemical applications .... Experience the world's most realistic and professional digital art & painting software for Mac and Windows, featuring ... Your original serial number will be required. ... Easy-access panels let you instantly adjust how paint is applied to the brush and how the paint ... 4 physical cores/8 logical cores or higher (recommended).. A dynamic soft-body physics vehicle simulator capable of doing just about anything. ... Popular user-defined tags for this product: Simulation .... Easy-to-Use, Powerful Tools for 3D Animation, GPU Rendering, VFX and Motion Design. ... Trapcode Suite 16 With New Physics, Magic Bullet Suite 14 With New Color Workflows Now ... Maxon Cinema 4D Immediately Available for M1-Powered Macs image ..
    [Show full text]
  • Massively Parallel Quadratic Programming Solvers with Applications in Mechanics
    Massively Parallel Quadratic Programming Solvers with Applications in Mechanics Ing. V´aclav Hapla Doctoral Thesis Department of Applied Mathematics Faculty of Electrical Engineering and Computer Science VSBˇ – Technical University of Ostrava Ostrava 2016 Abstract This thesis focuses on practical solution of large-scale contact problems of structure mechanics by means of a derived quadratic programming (QP) formulation. An approach proposed by professor Dost´al, combining a FETI-type non-overlapping domain decomposition method, the SMALBE algorithm based on augmented Lagrangians, and the MPRGP algorithm belonging to active set methods, has been adopted. This approach enjoys theoretically supported numerical scalability and a favourable potential for parallel scalability. The thesis consists of two parts: Background and Implementation. Background is devoted to rather theoretical aspects of QP and FETI, although tightly con- nected to practical implementation. Original topics include QP transforms, implicit orthonor- malization of equality constraints, and a minor modification of SMALBE shortening its termi- nation phase considerably. Second part, Implementation, deals with the massively parallel implementation of the afore- mentioned approach within PERMON, a new set of software libraries established by the author. The most important part, PERMON Solver Core, is formed mainly by the general-purpose QP solver PermonQP, and its extension PermonFLLOP providing support for domain decomposi- tion. These libraries make use of and extend PETSc, an open source software framework for numerical computing. Performance of PERMON is demonstrated on several numerical experi- ments. Keywords quadratic programming, QP, domain decomposition methods, FETI, augmented Lagrangian, SMALBE, MPRGP, contact problems, structure mechanics, PERMON, PermonQP, Permon- FLLOP, PETSc Abstrakt Tato dizertaˇcn´ıpr´ace se zamˇeˇruje na praktick´eˇreˇsen´ırozs´ahl´ych kontaktn´ıch ´uloh struktur´aln´ı mechaniky pˇres odvozenou ´ulohu kvadratick´eho programov´an´ı(QP).
    [Show full text]
  • List of Finite Element Software Packages ­ Wikipedia, the Free Encyclopedia List of Finite Element Software Packages from Wikipedia, the Free Encyclopedia
    12/15/2015 List of finite element software packages ­ Wikipedia, the free encyclopedia List of finite element software packages From Wikipedia, the free encyclopedia This is a list of software packages that implement the finite element method for solving partial differential equations or aid in the pre­ and post­processing of finite element models. Free/Open source https://en.wikipedia.org/wiki/List_of_finite_element_software_packages 1/8 12/15/2015 List of finite element software packages ­ Wikipedia, the free encyclopedia Operating Name Description License System Multiplatform open source application for the solution of Linux, Agros2D GNU GPL physical problems Windows based on the Hermes library It is an Open Source FEA project. The solver uses a partially compatible ABAQUS Linux, CalculiX file format. The GNU GPL Windows pre/post­processor generates input data for many FEA and CFD applications is an Open Source software package for Civil and Structural Engineering finite Linux, Code Aster element analysis and GNU GPL FreeBSD numeric simulation in structural mechanics which is written in Python and Fortran is an Open Source software package C/C++ hp­ Mac OS X, Concepts GNU GPL FEM/DGFEM/BEM Windows library for elliptic equations Comprehensive set of tools for finite QPL up to element codes, release 7.2, Linux, Unix, deal.II scaling from laptops LGPL after Mac OS X, to clusters with that Windows 10,000+ cores. Written in C++. GPL Distributed and Version 2 Unified Numerics Linux, Unix, DUNE with Run­ Environment, written Mac OS X Time
    [Show full text]
  • Hermes Documentation Release 2.0
    Hermes Documentation Release 2.0 hp-FEM group February 18, 2013 2 CONTENTS 1 Introduction 1 2 Hermes Overview 3 2.1 About Hermes............................................3 2.2 Mathematical Background......................................3 2.3 Citing Hermes............................................7 3 Installation 11 3.1 Linux................................................. 11 3.2 Windows............................................... 12 3.3 Mac OS................................................ 17 3.4 Installation of Matrix Solvers.................................... 18 3.5 Installation of ExodusII and NetCDF libraries............................ 22 4 Getting Started 25 4.1 First steps............................................... 25 4.2 Hermes typical example structure.................................. 25 4.3 Introduction to advanced C++ object-oriented features....................... 32 4.4 Hermes C++ object model - deriving your own specialized classes................. 32 5 Extended documentation 39 5.1 Hermes Documentation overview.................................. 39 5.2 Hermes Tutorial........................................... 40 5.3 Examples Documentation...................................... 40 6 Collaboration 41 6.1 Collaboration via Github....................................... 41 1 2 CHAPTER ONE INTRODUCTION Thank you for your interest in Hermes! Hermes is a C++ library for rapid development of adaptive hp-FEM and hp-DG solvers, with emphasis on nonlin- ear, time-dependent, multi-physics problems. This document is organized as follows: • Section 1 provides general information about Hermes and the computational methods it uses, and how to install Hermes on various hardware platforms. • Section 2 is the Getting Started Guide - to get you started in no time. • Section 3 is the extended documentation section, you will find developers documentation in Doxygen, as well as step-by-step user documentation in tutorials and advanced examples. • Section 4 explains how to use Git and Github, and how you can contribute to the project if interested.
    [Show full text]
  • Agros2d Agros2d - Hermes Agros2d Deal.II Agros2d - Deal.II Engineering Examples P
    P. Karban, F. Mach, L. Korous, P. Kus, I. Dolezel: Code Agros and Possibilities of its Use , for Modeling and Design Code Agros and Possibilities of its Use for Modeling and Design Current Features and Outlook to the Future P. Karban, F. Mach, L. Korous, P. Kus, I. Dolezel Department of Theory of Electrical Engineering Regional Innovation Centre for Electrical Engineering Faculty of Electrical Engineering, University of West Bohemia Czech Republic July 2, 2015, College Station 1/28 Contents University of West Bohemia Basic characteristic of the application Agros2D Agros2D - Hermes Agros2D deal.II Agros2D - deal.II Engineering Examples P. Karban, F. Mach, L. Korous, P. Kus, I. Dolezel: Code Agros and Possibilities of its Use , for Modeling and Design Contents 1 University of West Bohemia 2 Basic characteristic of the application 3 Agros Product Suite { stable version (Hermes library) 4 Agros Product Suite { development version (deal.II library) 5 Engineering Examples Coupled problems { Thermoelastic actuator 2/28 Contents University of West Bohemia Basic characteristic of the application Agros2D Agros2D - Hermes Agros2D deal.II Agros2D - deal.II Engineering Examples P. Karban, F. Mach, L. Korous, P. Kus, I. Dolezel: Code Agros and Possibilities of its Use , for Modeling and Design University of West Bohemia 1 University of West Bohemia 2 Basic characteristic of the application 3 Agros Product Suite { stable version (Hermes library) 4 Agros Product Suite { development version (deal.II library) 5 Engineering Examples Coupled problems { Thermoelastic actuator 3/28 Contents University of West Bohemia Basic characteristic of the application Agros2D Agros2D - Hermes Agros2D deal.II Agros2D - deal.II Engineering Examples P.
    [Show full text]
  • Finite Elements ০ Advance Higher-Order Finite Elements Method ০ Multi-Mesh Assembling ০ Automatic Hp-Adaptivity ০ Arbitrary Level Hanging Nodes
    Open way for computing Agros2D Product Suite Agros2D is a multiplatform application for the solution of physical fields and coupled problems developed by the group at the University of West Bohemia in Pilsen in Czech Republic. The code is based on a fully adaptive higher-order finite element method containing the most advanced numerical algorithms for the numerical pro- cessing of systems of second-order partial differential equations. It is characterized by several unique features such as work with hanging nodes of any level, multimesh technology (each physical field can be cal- culated on a different mesh generally varying in time) or a possibility of combining triangular, quadrilateral and curved elements. The application is licensed under the GNU GPLv2. ০ Multiplatform C++ application (GNU Linux, Windows) ০ Open Source software distributed under GNU GPLv2 ০ Development since 2009 ০ Collaborations with other universities and industrial partners Supported Physical Fields Physical field Steady State Harmonic Transient Analysis Analysis Electrostatics x Electric Currents x x Magnetic Fields x x x Radio Frequency Field x x Heat Transfer x x Structural Mechanics x Fluid Flow x x Porous Media and Subsurface x x Flow Acoustics x x General Coefficient Form PDEs x x x Coupling possibilities of physical fields Applications Computation Electromagnetics ০ Electromechanical transducers, actuators and sensors ০ Electrical drives and machines, transformers ০ Electrostatic micro actuators and sensors ০ Non-destructive eddy currents testing ০ Induction
    [Show full text]
  • „Computational Physics Ii“
    Heiki Kasemägi (Tartu Ülikool), 2013 E-kursuse „COMPUTATIONAL PHYSICS II“ materjalid Aine maht 3 EAP Heiki Kasemägi (Tartu Ülikool), 2013 Computational Physics II Practical Work Comsol Multiphysics Introduction Heiki Kasemagi¨ October 17, 2013 Contents Introduction 2 Computer Simulations . .2 COMSOL Multiphysics ..................................2 Passing the Practical Work . .3 References . .3 Example: the Busbar 4 COMSOL Multiphysics Desktop . .4 Eelctrical Heating in a Busbar . .4 Model Wizard ........................................6 Global Definitions ......................................7 Creating the Geometry ...................................9 Importing the Geometry from the File . 23 Material . 25 Physics . 27 Mesh............................................. 30 Simulation . 32 Results . 32 Generating the Images . 35 1 Introduction Computer Simulations The computer simulation has become a daily research method in the science and engineering. It has particularly important rôle in the development or optimization of the new products, design solutions of compunds etc. Nowadays, a wide range of simulation method are available starting from basic programming languages upto several high-level packages containing the most advanced simulation methods. Although each of them has the unique properties, the one questions or concern ties them all together: whether the results can be trusted? In order to consider the facts, which makes the software trustworthy, it is useful to keep in mind the following objective: goal is a model that accurately
    [Show full text]