Numerical Hydraulics

Similar documents
Numerical Hydraulics

Introduction to BASEMENT Basic Simulation Environment for Computation of Environmental Flow and Natural Hazard Simulation

Lecture 17: Initial value problems

Relevant self-assessment exercises: [LIST SELF-ASSESSMENT EXERCISES HERE]

WQMAP (Water Quality Mapping and Analysis Program) is a proprietary. modeling system developed by Applied Science Associates, Inc.

PDEs, part 3: Hyperbolic PDEs

Abstract. Introduction

Advection / Hyperbolic PDEs. PHY 604: Computational Methods in Physics and Astrophysics II

Problem Set 4 Issued: Wednesday, March 18, 2015 Due: Wednesday, April 8, 2015

Block 3 Open channel flow

Chapter 3. Finite Difference Methods for Hyperbolic Equations Introduction Linear convection 1-D wave equation

UNIVERSITÉ DE LIÈGE FACULTÉ DES SCIENCES APPLIQUÉES DÉPARTEMENT D AÉROSPATIALE ET MÉCANIQUE LABORATOIRE DE THERMODYNAMIQUE

MASSACHUSETTS INSTITUTE OF TECHNOLOGY DEPARTMENT OF MECHANICAL ENGINEERING CAMBRIDGE, MASSACHUSETTS NUMERICAL FLUID MECHANICS FALL 2011

Level Set and Phase Field Methods: Application to Moving Interfaces and Two-Phase Fluid Flows

Solving the Euler Equations!

7 Hyperbolic Differential Equations

Dealing with Sedimental Transport Over Partly Non-Erodible Bottoms

1. INTRODUCTION TO CFD SPRING 2018

Numerical Methods for Partial Differential Equations CAAM 452. Spring 2005

Homework 4 in 5C1212; Part A: Incompressible Navier- Stokes, Finite Volume Methods

Computational Astrophysics

1. Explain the changes in the predicted Cu concentration in Torch L. that result from using different time steps in the numerical model.

Partial differential equations

2.29 Numerical Fluid Mechanics Spring 2015 Lecture 13

Diffusion / Parabolic Equations. PHY 688: Numerical Methods for (Astro)Physics

Modeling and simulation of bedload transport with viscous effects

Finite Difference Solution of the Heat Equation

On the validation study devoted to stratified atmospheric flow over an isolated hill

1.061 / 1.61 Transport Processes in the Environment

MTF071 Computational Fluid Dynamics of Turbulent

Numerical methods for the Navier- Stokes equations

Analysis Methods in Atmospheric and Oceanic Science

MACRODISPERSION AND DISPERSIVE TRANSPORT BY UNSTEADY RIVER FLOW UNDER UNCERTAIN CONDITIONS

Finite Volume Schemes: an introduction

Advanced /Surface Hydrology Dr. Jagadish Torlapati Fall 2017 MODULE 2 - ROUTING METHODS

Courant and all that. Consistency, Convergence Stability Numerical Dispersion Computational grids and numerical anisotropy

Last time: Diffusion - Numerical scheme (FD) Heat equation is dissipative, so why not try Forward Euler:

1 Introduction to MATLAB

Part 1. The diffusion equation

FUNDAMENTALS OF FINITE DIFFERENCE METHODS

MIT (Spring 2014)

Block-Structured Adaptive Mesh Refinement

Numerical Solutions for Hyperbolic Systems of Conservation Laws: from Godunov Method to Adaptive Mesh Refinement

Fraunhofer Institute for Computer Graphics Research Interactive Graphics Systems Group, TU Darmstadt Fraunhoferstrasse 5, Darmstadt, Germany

Finite Difference Methods (FDMs) 2

1. INTRODUCTION TO CFD SPRING 2019

The one-dimensional equations for the fluid dynamics of a gas can be written in conservation form as follows:

Hybrid Simulations: Numerical Details and Current Applications

Summer Intern Project/Model at Stroud Water Research Center. Xiaojuan (Cathy) Yu

Nesting large-eddy simulations within mesoscale simulations in WRF for wind energy applications

Some observation on developments in lossy TLM

Numerical Solution of One-dimensional Advection-diffusion Equation Using Simultaneously Temporal and Spatial Weighted Parameters

EFFECT OF LIQUID PHASE COMPRESSIBILITY ON MODELING OF GAS-LIQUID TWO-PHASE FLOWS USING TWO-FLUID MODEL

The Advanced Research WRF (ARW) Dynamics Solver

Mass Conserving Courant Number Independent Eulerian Advection of the Moisture Quantities for the LMK

1 of 7 2/8/2016 4:17 PM

Block 6 Heat transport in rivers

EXAMPLES (SEDIMENT TRANSPORT) AUTUMN 2018

Chapter 9: Differential Analysis

Securing Manoeuverability of a Deep Draft Ship in a Sediment loaded Tidal River Berth

Introduction to Partial Differential Equations

M. Okonska 1, M. Marciniak 1, M. Kaczmarek 2 & K. Kazimierska-Drobny 2. Abstract

Comparison of Heat and Mass Transport at the Micro-Scale

Chapter 4 Transport of Pollutants

7. Basics of Turbulent Flow Figure 1.

JMBC Computational Fluid Dynamics I Exercises by A.E.P. Veldman

Chapter 9: Differential Analysis of Fluid Flow

Scientific Computing I

Investigation of Flow Profile in Open Channels using CFD

Todd Arbogast. Department of Mathematics and Center for Subsurface Modeling, Institute for Computational Engineering and Sciences (ICES)

Numerical Oscillations and how to avoid them

A Numerical Method for Parallel Particle Motions in Gyrokinetic Vlasov Simulations )

PDE Solvers for Fluid Flow

Hydrodynamic Characteristics of Gradually Expanded Channel Flow

Deposition and Resuspension of Sediments in Near Bank Water Zones of the River Elbe

The distortion observed in the bottom channel of Figure 1 can be predicted from the full transport equation, C t + u C. y D C. z, (1) x D C.

1.1 Implicit solution for vertical viscosity and diffusion terms using finite differences

Turbulence is a ubiquitous phenomenon in environmental fluid mechanics that dramatically affects flow structure and mixing.

OCEAN MODELING II. Parameterizations

The Finite Difference Method

Part I. Discrete Models. Part I: Discrete Models. Scientific Computing I. Motivation: Heat Transfer. A Wiremesh Model (2) A Wiremesh Model

Universität des Saarlandes. Fachrichtung 6.1 Mathematik

Elliptic Problems / Multigrid. PHY 604: Computational Methods for Physics and Astrophysics II

IMPLICIT NUMERICAL SCHEME FOR REGULATING UNSTEADY FLOW IN OPEN CHANNEL Mohamed. T. Shamaa 1, and Hmida M. Karkuri 2

MATHEMATICAL MODELING AND NUMERICAL SOLUTION OF 3D ATMOSPHERIC BOUNDARY LAYER

Lecture 7. Heat Conduction. BENG 221: Mathematical Methods in Bioengineering. References

1.060 Engineering Mechanics II Spring Problem Set 4

GMS 8.0 Tutorial MT3DMS Advanced Transport MT3DMS dispersion, sorption, and dual domain options

Initial and Boundary Conditions

Numerical Modelling in Fortran: day 10. Paul Tackley, 2016

RT3D Rate-Limited Sorption Reaction

Fundamentals Physics

Introduction to Heat and Mass Transfer. Week 9

Second-Order Linear ODEs (Textbook, Chap 2)

Calculations on a heated cylinder case

Fluvial Dynamics. M. I. Bursik ublearns.buffalo.edu October 26, Home Page. Title Page. Contents. Page 1 of 18. Go Back. Full Screen. Close.

FDM for wave equations

THREE-DIMENSIONAL FINITE DIFFERENCE MODEL FOR TRANSPORT OF CONSERVATIVE POLLUTANTS

Contaminant Fate and Transport in the Environment EOH 2122; Lecture 6, Transport in Surface Waters

NUMERICAL SIMULATION OF SUSPENDED SEDIMENT TRANSPORT AND DISPERSAL FROM EVROS RIVER INTO THE NORTH AEGEAN SEA, BY THE MECHANISM OF TURBIDITY CURRENTS

Transcription:

ETHZ, Fall 017 Numerical Hydraulics Assignment 4 Numerical solution of 1D solute transport using Matlab http://www.bafg.de/ http://warholian.com

Numerical Hydraulics Assignment 4 ETH 017 1 Introduction The assessment of solute transport is important in order to determine the distribution of pollutants in a river or to interpret tracer experiments. In general, the theory of solute transport can be used to model the water quality of rivers. The flux of a solute in a river is determined by four processes: Advection: Molecular diffusion: Turbulent diffusion: Dispersion: J A = u c (1) J m = D m c () J T = u time c = ε c (3) J D = u space c = D c (4) Usually the advection and the dispersion are the driving forces for the solute flux. Therefore we will focus only on these two processes. For 1D simulations, the dispersion coefficient K can be described as followed: Dispersion coefficient: K x = 0.011 u b hu with u = τ 0 ρ = ghi 0 (5) u* is the shear velocity, h is the water depth, u is the cross-section averaged flow velocity, b is the channel width and I0 is the channel slope. Using the integral view over an infinitesimal slice of the river, we can write the solute mass (Advection-Dispersion equation) and the water volume balance in 1D as: Solute mass balance: (Ac) + (Qc) (AD ) = q x x x inc in q out c (6) Water balance: (A) + (Q) x = q in q out (7) If we substitute equation (7) into equation (6) we obtain the transport equation for the solute mass, where we can also include the degradation of the solute assuming a first order kinetic: Transport equation: + u 1 x A x (AD x ) λc = q in A (c in c) (8) 1

Numerical Hydraulics Assignment 4 ETH 017 There are different possibilities how to solve this transport equation. We can use the integral form of (8) with fluxes expressed at the old time (explicit scheme): c new i = c old i + Δt (f old Δx i 1 f old 1 i+ ) λc old i Δt Where the fluxes f contain contributions from advection and dispersion. For the dispersion we first have to decide how to define the concentration gradients at the cell interfaces i ± ½. We can use the difference quotient: = c i+1 c i x i+1/ Δx (9) and (f old 1 i+ ) dispersion = D c i+1 c i. For the advection we must define which concentration is decisive Δx at the cell interfaces i ± ½. During the lecture you learnt that there are the three different options upwind, downwind and central differences. The central difference scheme is not suitable since it produces a tail of oscillations. We can prevent these oscillations by using an upwind scheme, but at the cost of significant numerical dispersion. Upwind means we take (f old 1 i+ ) advection = uc old i when the flow is from left to right. To prevent numerical diffusion it is necessary to discretize fine enough and given that we use an explicit upwind scheme we also must limit the time step for the advection using the Courant Friedrich-Levy criterion (CFL): CFL: Cr = uδt Δx 1 (10) If we set the CFL-criterion equal to one, we obtain an exact forward integration without numerical dispersion for pure advection. This is very similar to the method of characteristics and works very well for a constant flow velocity producing the advection. It requires non-uniform grid spacing when the flow is not uniform. In the assignment we will use this approach and given that the flow velocity is constant we can use a uniform grid. We will use an explicit time integration (with upwind differences) named Explicit Euler-method, meaning that the concentration at the new timestep is depending only on the concentrations at the previous one. Explicit schemes ask for a second limitation of the timestep due to the dispersion term: Neumann criterion: Ne = DΔt (Δx) 1 3 (11) For this assignment we will use a two/three-step method, where in a first step only advection is considered. In addition there will not be any lateral tributaries. In a first step, we consider only advection: Advection step: c new,1 i = c old i + Δt (uc Δx i 1 old uc old i ) (1) In a second step the dispersion is added to the advection and equation (8) reads to: Dispersion step: c new, i = c new,1 i + Δt ((f old Δx i 1 ) dispersion (f old 1 i+ ) dispersion ) (1)

Numerical Hydraulics Assignment 4 ETH 017 Finally, it is possible to add degradation of the solute as a third step: Degradation step: c i new = c i new, λc i new, Δt (13) Boundary conditions Since equation (8) is a second order PDE, two boundary conditions are required. The first boundary condition we will use is the prescribed concentration of the solute on the inflow boundary: Inflow BC: c 1 j+1 = c in (14) It is possible to add a certain mass of a solute only at the first timestep (instantaneous injection) or to insert continuously mass into the river (continuous injection). The second boundary condition we use is the transmission BC, which implies a constant concentration gradient along the boundaries: Transmission BC: c x = 0 (15) Objective The goal of this assignment is to implement the numerical solution for the solute transport under uniform flow conditions in a rectangular channel using an explicit time integration fulfilling the CFLand the Neumann-stability criterion. We will use a two/three-step method where the advection is considered in a first step and afterwards dispersion is taking place. Degradation can be considered as the third step. 3

Numerical Hydraulics Assignment 4 ETH 017 3 Tasks Complete the Matlab template NHY_Assignment_4_IncompleteMatlabCode.m to solve the solute transport equation with the explicit Euler-Discretization considering the CFL-and the Neumanncriterion and using the two/three-step method. The parameterization of the rectangular channel as well as the uniform flow properties are given in Tab. 1. Tab. 1: Channel and flow properties Parameter Value Discharge 40 m 3 /s Velocity Width Length 1 m/s 0 m 10 km Slope 1 Simulation time 4 hrs The initial mass M of the tracer is 1 kg and is injected instantaneously at t = 0 s into the first cell. To determine the initial concentration, dissolve M in the first cell volume and set all other cells to a concentration of 0 g/m 3. Perform a simulation with and one without considering degradation of the tracer. You can use a degradation constant λ = 10 86 400 1/s. Questions 1. Show the spatial concentration distribution after 0.5, 1.5 and.5 hours with and without degradation.. Show the temporal concentration distribution at the outlet with and without degradation. 3. What is the maximum concentration at the outflow section with and without degradation? 4. Verify that the tracer is transported conservatively for the case without degradation. (Check if the total mass of tracer leaving the river reach equals the initial tracer mass). Which amount of the tracer leaves the river reach if degradation is considered? 5. How do the spatial concentration distributions with and without degradation look if the initial concentration is maintained at the inflow cell (continuous injection)? Show the results after the same times as in the first question. 4