Outline Numerical implementation Diagnosis of difficulties

Slides:



Advertisements
Similar presentations
Steady-state heat conduction on triangulated planar domain May, 2002
Advertisements

1 A new iterative technique for solving nonlinear coupled equations arising from nuclear waste transport processes H. HOTEIT 1,2, Ph. ACKERER 2, R. MOSE.
A modified Lagrangian-volumes method to simulate nonlinearly and kinetically adsorbing solute transport in heterogeneous media J.-R. de Dreuzy, Ph. Davy,
MATH 685/ CSI 700/ OR 682 Lecture Notes
Ground-Water Flow and Solute Transport for the PHAST Simulator Ken Kipp and David Parkhurst.
Coupling Continuum Model and Smoothed Particle Hydrodynamics Methods for Reactive Transport Yilin Fang, Timothy D Scheibe and Alexandre M Tartakovsky Pacific.
Aspects of Conditional Simulation and estimation of hydraulic conductivity in coastal aquifers" Luit Jan Slooten.
Chapter 3 Steady-State Conduction Multiple Dimensions
Peyman Mostaghimi, Martin Blunt, Branko Bijeljic 11 th January 2010, Pore-scale project meeting Direct Numerical Simulation of Transport Phenomena on Pore-space.
12/21/2001Numerical methods in continuum mechanics1 Continuum Mechanics On the scale of the object to be studied the density and other fluid properties.
REVIEW. What processes are represented in the governing equation that we use to represent solute transport through porous media? Advection, dispersion,
Sparse Matrix Algorithms CS 524 – High-Performance Computing.
Subsurface Hydrology Unsaturated Zone Hydrology Groundwater Hydrology (Hydrogeology )
Interdisciplinary Modeling of Aquatic Ecosystems Curriculum Development Workshop July 18, 2005 Groundwater Flow and Transport Modeling Greg Pohll Division.
CS240A: Conjugate Gradients and the Model Problem.
Ordinary Differential Equations (ODEs) 1Daniel Baur / Numerical Methods for Chemical Engineers / Implicit ODE Solvers Daniel Baur ETH Zurich, Institut.
1 Systems of Linear Equations Error Analysis and System Condition.
PETE 603 Lecture Session #29 Thursday, 7/29/ Iterative Solution Methods Older methods, such as PSOR, and LSOR require user supplied iteration.
Ordinary Differential Equations (ODEs)
Direct and iterative sparse linear solvers applied to groundwater flow simulations Matrix Analysis and Applications October 2007.
BIOPLUME II Introduction to Solution Methods and Model Mechanics.
Computer Engineering Majors Authors: Autar Kaw
Tutorial 5: Numerical methods - buildings Q1. Identify three principal differences between a response function method and a numerical method when both.
© Fluent Inc. 9/5/2015L1 Fluids Review TRN Solution Methods.
Systems of Linear Equations Iterative Methods
Advanced Computer Graphics Spring 2014 K. H. Ko School of Mechatronics Gwangju Institute of Science and Technology.
BsysE595 Lecture Basic modeling approaches for engineering systems – Summary and Review Shulin Chen January 10, 2013.
1 Tips for solving Project 1 Reactor SO 3 SO 2 +O 2.
Scientific Computing Partial Differential Equations Poisson Equation.
10/26/ Gauss-Siedel Method Civil Engineering Majors Authors: Autar Kaw Transforming.
Transport.chem.dat File  3 waters –Background, O 2 (solution 1) –Sewage effluent, NH 4 + and Cl - (solution 2) –Rain O 2 (solution 3)  NH 4 + oxidation.
Introduction 1. Similarity 1.1. Mechanism and mathematical description 1.2. Generalized variables 1.3. Qualitative analysis 1.4. Generalized individual.
© Fluent Inc. 11/24/2015J1 Fluids Review TRN Overview of CFD Solution Methodologies.
Using the Segregated and Coupled Solvers
19 Basics of Mass Transport
CS240A: Conjugate Gradients and the Model Problem.
Final Project I. Calibration Drawdown Prediction Particle Tracking
Discretization Methods Chapter 2. Training Manual May 15, 2001 Inventory # Discretization Methods Topics Equations and The Goal Brief overview.
Generalized Finite Element Methods
(Z&B) Steps in Transport Modeling Calibration step (calibrate flow & transport model) Adjust parameter values Design conceptual model Assess uncertainty.
1 INTRODUCTION TO “Stratigrafia” The code in the workbook “stratigrafia” computes - longitudinal profiles; - water surface elevation; - sediment transport.
Using WPhast to Model the Central Oklahoma Aquifer— Transport and Chemistry David Parkhurst, Ken Kipp, and Scott Charlton Chemistry: okchem.chem.dat Flow.
Lecture 6 - Single Variable Problems & Systems of Equations CVEN 302 June 14, 2002.
2/26/ Gauss-Siedel Method Electrical Engineering Majors Authors: Autar Kaw
Lecture Objectives: Define 1) Reynolds stresses and
F. Fairag, H Tawfiq and M. Al-Shahrani Department of Math & Stat Department of Mathematics and Statistics, KFUPM. Nov 6, 2013 Preconditioning Technique.
3/6/ Gauss-Siedel Method Major: All Engineering Majors Author: دکتر ابوالفضل رنجبر نوعی
Lecture Objectives: - Numerics. Finite Volume Method - Conservation of  for the finite volume w e w e l h n s P E W xx xx xx - Finite volume.
An Introduction to Computational Fluids Dynamics Prapared by: Chudasama Gulambhai H ( ) Azhar Damani ( ) Dave Aman ( )
1 Simulation of the Couplex 1 test case and preliminary results of Couplex 2 H. HOTEIT 1,2, Ph. ACKERER 1, R. MOSE 1 1 IMFS STRASBOURG 2 IRISA RENNES 1.
Model Anything. Quantity Conserved c  advect  diffuse S ConservationConstitutiveGoverning Mass, M  q -- M Momentum fluid, Mv -- F Momentum fluid.
Conjugate gradient iteration One matrix-vector multiplication per iteration Two vector dot products per iteration Four n-vectors of working storage x 0.
Computational Fluid Dynamics Lecture II Numerical Methods and Criteria for CFD Dr. Ugur GUVEN Professor of Aerospace Engineering.
Free vs. Forced Convection
Solving Linear Systems Ax=b
Gauss-Siedel Method.
Scientific Computing Lab
© Fluent Inc. 1/10/2018L1 Fluids Review TRN Solution Methods.
Convergence in Computational Science
Autar Kaw Benjamin Rigsby
Objective Numerical methods.
Topic 3 Discretization of PDE
Transport Modeling in Groundwater
Convergence in Numerical Science
Objective Numerical methods Finite volume.
6.5 Taylor Series Linearization
Topic 3 Discretization of PDE
Transport Modeling in Groundwater
CASA Day 9 May, 2006.
Topic 3 Discretization of PDE
Presentation transcript:

Ground-Water Flow and Solute Transport for the PHAST Simulator: Numerical Considerations

Outline Numerical implementation Diagnosis of difficulties Numerical oscillation and dispersion Operator splitting error Negative concentrations Automatic time step Linear equation solvers Diagnosis of difficulties

Computational Procedure Governing partial differential equations and boundary conditions Discretization System of flow and transport algebraic equations Equation solver Approximate numerical solution

Computational mathematics is mainly based on two ideas: Taylor series and linear algebra. --L.N. Trefethen (1998)

Finite Difference Discretization 1D Solute Transport, Steady Flow Spatial discretization term Centered-in-space Truncation error: term Centered-in-space; Truncation error: Possible oscillations Upstream-in-space Dispersion

Finite Difference Discretization 1D Solute Transport, Steady Flow Temporal discretization term Centered-in-time Truncation error: Possible oscillations Backward-in-time Numerical dispersion

Finite Difference Discretization Variable grid spacing term Centered-in-space Truncation error: term Centered-in-space Truncation error: Control error by limiting changes in adjacent Dx to factor of 1.25 to 2

Field-Scale Example Solute Slug in 1 Dimension Uniform properties Steady flow Hydraulic parameters Flow-path length: 100 m Porosity: 0.1 Dispersivity: 0.012 m Ground-water velocity Interstitial velocity: 1.97 m/d Darcy velocity: 0.197 m/d Dispersion coefficient: 0.024 m2/d Slug duration: 10 d

Field-Scale Examples Concentration Profiles Analytical and two finite-difference solutions

Controlling Numerical Oscillation Criteria Centered-in-space differencing Centered-in-time differencing where

Controlling Numerical Dispersion Upstream-in-space differencing or Backward-in-time differencing Accuracy requirement Dimensionless accuracy requirement

Cross-Flow Dispersion Discretization Truncation Error Solute transport equation in 2-dimensions, steady flow at angle f to coordinates Backwards-in-time and upstream-in-space differencing Truncation error leading terms; numerical dispersion Numerical dispersion Longitudinal is minimum at f = p/4; maximum at f = 0, p/2 Tranverse is maximum at f = p/4; minimum at f = 0, p/2 Remedies Refine grid and reduce time step Other remedies not available in PHAST

Field-Scale Example Solute Slug in 2 Dimensions Uniform properties Steady flow Hydraulic parameters Flow-path length: 100 m Porosity: 0.1 Dispersivity: 0.012 m Ground-water velocity Interstitial velocity: 1.97 m/d Darcy velocity: 0.197 m/d Dispersion coefficient: 0.024 m2/d Slug duration: 10 d

Field-Scale Example

Operator Splitting Error Order Dt Linear equilibrium sorption Linear kinetic mass transfer or linear decay Remedies Use small time steps Other remedies not available in PHAST

Negative Intermediate Concentrations Causes: Spatial discretization (centered-in-space) Temporal discretization (centered-in-time) Cross-dispersion terms with strong diagonal flow Operator splitting e.g.Linear equilibrium sorption chemistry, SNlA method where R is the retardation factor, R > 1. Overshoot and undershoot may occur with strong sorption, strong partitioning Effect: Failure of the chemical reaction calculation

Negative Intermediate Concentrations Remedies: Small Dx Small Dt Modify or ignore cross-dispersion terms PHAST limits c to positive values Gain of mass Other remedies not available in PHAST

Automatic Time-Step Algorithm for Steady-State Flow Controls: Maximum change in head over time step; dh Time-step limits; Dtmin, Dtmax Objective: Adjust time step to achieve target dh Method: Start each cycle with Dtmin Adjust time step as necessary for target Reduce time step if solver convergence failure Possible difficulties: Dtmin incompatible with dh dh incompatible with b.c. and i.c.

Solving the Linear Equation Systems Ax = b Sparse; small fraction of non-zero elements Structured; 7 diagonals Symmetric for flow equation Unsymmetric for transport equations

Linear Equation Solvers Direct Solver Based on Gaussian elimination without pivoting No user parameters Best for smaller problems (few thousand nodes)

Linear Equation Solvers Iterative solver Preconditioned restarted Orthomin method Based on adjusting the solution to minimize the residual using a set of conjugate, orthogonal directions Preconditioning used to accelerate convergence Several user parameters Convergence tolerance Restart interval Iteration count limit Needed for larger problems (tens of thousands of nodes)

Iterative Linear Equation Solver Scaling the equations Rows and columns can be scaled where R and C are diagonal scaling matrices Scale factors calculated to make the maximum element in each row and column of A equal to one Enables a single value of t to apply to flow and all transport equations Only row scaling is implemented

Iterative Linear Equation Solver Setting Orthomin iteration parameters Stopping tolerance Default: 1x10-10 Vary t and observe change in solution Want changes to be in insignificant digits Maximum number of iterations Default: 500 Increase if necessary; usually indicates another problem Restart interval--number of saved search directions Default: 20 Increase if necessary to avoid non-convergence

My Model Doesn’t Work: What to do when things go wrong Check problem definition for completeness and correctness Shape of region Spatial property distributions (prefix.O.probdef) Boundary condition distributions (IBC array) Properly posed problem that is physically realistic Initial conditions (prefix.O.head and prefix.O.comps) Model Viewer (under development)

My Model Doesn’t Work: What to do when things go wrong Check if grid is too coarse (GRID) Numerical oscillation Excessive numerical dispersion Check if time step is too long (TIME_CONTROL) Excessive operator splitting error

My Model Doesn’t Work: What to do when things go wrong Check tolerance and controls on iterative solver (SOLUTION_METHOD) Check controls on automatic time-step algorithm for steady-state flow (STEADY_FLOW) Review the simulation history Time steps (prefix.log) Maximum changes in head (prefix.log) Solver iterations (prefix.log) Global balance tables (prefix.O.bal) Check conductance and dispersion coefficients (prefix.O.kd)

My Model Doesn’t Work: What to do when things go wrong Check for numerical problems Backwards-in-time and upstream-in-space differencing Set equal dispersivities in all directions No cross dispersion Simplify the problem Flow only Conservative transport Run chemistry with PHREEQC alone Batch reaction 1D TRANSPORT or ADVECTION Simplify the region and boundary conditions

The purpose of computing is insight, not numbers. --R.W. Hamming (1962) The purpose of computing is insight, not pictures. --L.N. Trefethen (1998)