© Arturo S. Leon, BSU, Spring 2010

Slides:



Advertisements
Similar presentations
Finite Difference Discretization of Hyperbolic Equations: Linear Problems Lectures 8, 9 and 10.
Advertisements

Lect.3 Modeling in The Time Domain Basil Hamed
Computational Modeling for Engineering MECN 6040
Chapter 8 Elliptic Equation.
Total & Specific Energy
Lecture 18 - Numerical Differentiation
Introduction to MIKE 11 by Bunchingiv Bazartseren Cottbus May 22, 2001.
Total Recall Math, Part 2 Ordinary diff. equations First order ODE, one boundary/initial condition: Second order ODE.
PART 7 Ordinary Differential Equations ODEs
Computer-Aided Analysis on Energy and Thermofluid Sciences Y.C. Shih Fall 2011 Chapter 6: Basics of Finite Difference Chapter 6 Basics of Finite Difference.
Shallow water equations in 1D: Method of characteristics
1 Lecture 11: Unsteady Conduction Error Analysis.
Lecture 34 - Ordinary Differential Equations - BVP CVEN 302 November 28, 2001.
1 Numerical Hydraulics Open channel flow 1 Wolfgang Kinzelbach with Marc Wolf and Cornel Beffa.
1 Numerical Hydraulics Open channel flow 2 Wolfgang Kinzelbach with Marc Wolf and Cornel Beffa.
Numerical Methods for Partial Differential Equations
Differential Equations and Boundary Value Problems
PART 7 Ordinary Differential Equations ODEs
© 2011 Autodesk Freely licensed for use by educational institutions. Reuse and changes require a note indicating that content has been modified from the.
FUNDAMENTAL EQUATIONS, CONCEPTS AND IMPLEMENTATION
Lecture 35 Numerical Analysis. Chapter 7 Ordinary Differential Equations.
Tutorial 5: Numerical methods - buildings Q1. Identify three principal differences between a response function method and a numerical method when both.
Finite Differences Finite Difference Approximations  Simple geophysical partial differential equations  Finite differences - definitions  Finite-difference.
Introduction to Numerical Methods for ODEs and PDEs Methods of Approximation Lecture 3: finite differences Lecture 4: finite elements.
Numerical Methods on Partial Differential Equation Md. Mashiur Rahman Department of Physics University of Chittagong Laplace Equation.
Lecture Notes Dr. Rakhmad Arief Siregar Universiti Malaysia Perlis
Solution of the St Venant Equations / Shallow-Water equations of open channel flow Dr Andrew Sleigh School of Civil Engineering University of Leeds, UK.
1 EEE 431 Computational Methods in Electrodynamics Lecture 4 By Dr. Rasime Uyguroglu
Governing equations: Navier-Stokes equations, Two-dimensional shallow-water equations, Saint-Venant equations, compressible water hammer flow equations.
To Dream the Impossible Scheme Part 1 Approximating Derivatives on Non-Uniform, Skewed and Random Grid Schemes Part 2 Applying Rectangular Finite Difference.
7. Introduction to the numerical integration of PDE. As an example, we consider the following PDE with one variable; Finite difference method is one of.
Distributed Flow Routing Surface Water Hydrology, Spring 2005 Reading: 9.1, 9.2, 10.1, 10.2 Venkatesh Merwade, Center for Research in Water Resources.
台灣師範大學機電科技學系 C. R. Yang, NTNU MT -1- Chapter 11 Numerical Integration Methods in Vibration Analysis 11.
MIKE 11 IntroductionNovember 2002Part 1 Introduction to MIKE 11 Part 1 General Hydrodynamics within MIKE 11 –Basic Equations –Flow Types Numerical Scheme.
Engineering Analysis – Computational Fluid Dynamics –
Engineering Analysis – Computational Fluid Dynamics –
MECN 3500 Inter - Bayamon Lecture 9 Numerical Methods for Engineering MECN 3500 Professor: Dr. Omar E. Meza Castillo
CIS888.11V/EE894R/ME894V A Case Study in Computational Science & Engineering We will apply several numerical methods to find a steady state solution of.
Basic Hydraulics: Channels Analysis and design – I
Discretization Methods Chapter 2. Training Manual May 15, 2001 Inventory # Discretization Methods Topics Equations and The Goal Brief overview.
Water Resources System Modeling
Lecture 40 Numerical Analysis. Chapter 7 Ordinary Differential Equations.
ECE 576 – Power System Dynamics and Stability Prof. Tom Overbye Dept. of Electrical and Computer Engineering University of Illinois at Urbana-Champaign.
Lecture 39 Numerical Analysis. Chapter 7 Ordinary Differential Equations.
The Finite-Difference Method Taylor Series Expansion Suppose we have a continuous function f(x), its value in the vicinity of can be approximately expressed.
Advanced Numerical Techniques Mccormack Technique CFD Dr. Ugur GUVEN.
EXAMPLE Water flows uniformly in a 2m wide rectangular channel at a depth of 45cm. The channel slope is and n= Find the flow rate in cumecs.
EEE 431 Computational Methods in Electrodynamics
NUMERICAL DIFFERENTIATION Forward Difference Formula
Channel Routing Simulate the movement of water through a channel
Finite Difference Methods
Modeling of Traffic Flow Problems
Transient Mixed Flow Modeling Capability in SRH-2D for Culverts and Bridges Yong G. Lai.
Boundary Element Analysis of Systems Using Interval Methods
Advanced Numerical Methods (S. A. Sahu) Code: AMC 51151
ECE 576 – Power System Dynamics and Stability
Distributed Flow Routing
21th Lecture - Advection - Diffusion
Finite Volume Method for Unsteady Flows
Modelling tools - MIKE11 Part1-Introduction
ME/AE 339 Computational Fluid Dynamics K. M. Isaac Topic2_PDE
Numerical differentiation
topic13_grid_generation
Numerical Analysis Lecture 37.
topic13_grid_generation
topic4: Implicit method, Stability, ADI method
topic4: Implicit method, Stability, ADI method
SKTN 2393 Numerical Methods for Nuclear Engineers
topic4: Implicit method, Stability, ADI method
6th Lecture : Numerical Methods
Presentation transcript:

© Arturo S. Leon, BSU, Spring 2010 Solution of Saint‐Venant equations (open‐channel) and Coupled Saint‐ Venant and compressible water hammer flow equations (mixed flows): Method of Characteristics, Finite Difference methods and Finite Volume schemes (Material were taken from Profs. Hanif Chaudhry Open Channel book (University of South Carolina), Mohan Kumar (Indian Institute of Science) and various internet sources, including printed references) Arturo S. Leon, Oregon State University (Fall 2011) © Arturo S. Leon OSU, Fall 2011

Saint-Venant equations (Revisited) 1D Saint-Venant equations x - distance along the channel, t - time, V – cross-sectional averaged velocity, y - depth of flow, D = A/T, A- cross sectional area, T - top width, So- bed slope, Sf - friction slope

Saint Venant equations Friction slope: R - hydraulic radius, n - Manning’s roughness coefficient Two non-linear equations in two unknowns V and y and two dependent variables x and t These two equations are a set of hyperbolic partial differential equations

Movies http://www.youtube.com/watch?v=NpEevfOU4Z8&feature=related http://www.youtube.com/watch?v=PCYv0_qPk-4&feature=related

Method of Characteristics Characteristics for various types of flows

Method of Characteristics (Cont.) Characteristics at the boundaries of the computational domain (Cunge et al. 1980)

Method of Characteristics (Cont.) Multiplying 1st equation by  = ± g/c and adding it to 2nd equation yields The above equation is a pair of equations along characteristics given by By multiplying the above equation by dt and integrating along AP and BP, we obtain

Method of Characteristics (Cont.) Riemann invariants (For rectangular channels): For Circular channels (See paper of Leon et al. 2006 (TEACH webpage):

Method of Characteristics (Cont.) Examples of Application: Presented in class

Dam break problem (Theory and applications) Animations: http://www.youtube.com/watch?NR=1&v=mA_P2JVOe2I http://www.youtube.com/watch?NR=1&v=LO7j8n3frpQ http://www.youtube.com/watch?v=aZOoakaaOMY&feature=related http://www.youtube.com/watch?v=9Q-vy13yEXw&feature=related http://www.youtube.com/watch?v=LeL0sr0NbTM&feature=related Theory and Applications presented in class.

Method of Characteristics (Cont.) Examples of Application: Presented in class

Introduction to Finite Difference Techniques

Types of FD techniques Most of the physical situation is represented by nonlinear partial differential equations for which a closed form solution is not available except in few simplified cases Several numerical methods are available for the integration of such systems. Among these methods, finite difference methods have been utilized very extensively Derivative of a function can be approximated by FD quotients.

Types of FD techniques Differential equation is converted into a difference equation Solution of difference equation is an approximate solution of the differential equation. Example: f(x) is a function of one independent variable x. At x0 the function is f(x0), then by using Taylor series expansion, the function f(x0+x) may be written as

© Arturo S. Leon, BSU, Spring 2010 Types of FD techniques f’(x0)=dy/dx at x=x0 O(x)3: terms of third order or higher order of x Similarly f(x0 - x) may be expressed as Neglecting second and higher order terms, f(x0 + x) may be written as From this equation

Types of FD techniques

Types of FD techniques Similarly Neglecting O(x) terms in above equation we get Forward difference formula as given below Backward difference formula as shown below Both forward and backward difference approximation are first order accurate

Types of FD techniques cont… Subtracting the forward Taylor series from backward Taylor series, rearrange the terms, and divide by x Neglecting the last term

Types of FD techniques cont… This approximation is referred to as central finite difference approximation Error term is of order O(x)2, known as second order accurate Central-difference approximations to derivates are more accurate than forward or backward approximations [O(h2) versus O(h)] Now Consider FD approximation for partial derivative

Types of FD techniques cont… Function f(x,t) has two independent variables, x and t Assume uniform grid size of x and t

Explicit and implicit techniques There are several possibilities for approximating the partial derivatives The spatial partial derivatives replaced in terms of the variables at the known time level are referred to as the explicit finite difference The spatial partial derivatives replaced in terms of the variables at the unknown time level are called implicit finite difference k is known time level and k+1 is the unknown time level. Then FD approximation for the spatial partial derivative , f/x, at the grid point (i,k) are as follows:

Explicit and implicit techniques Explicit finite differences Backward: Forward: Central:

Explicit and implicit techniques Implicit finite differences Backward: Forward: Central:

Explicit finite difference schemes Unstable scheme Generally this finite difference scheme is inherently unstable; i.e., computation become unstable regardless of grid size used. Stability check is an important part of numerical methods.

Explicit finite difference schemes Diffusive scheme This method yields satisfactory results for typical hydraulic engineering applications. In this method the partial derivatives and other variables are approximated as follows: where

Explicit finite difference schemes MacCormack Scheme This method is an explicit, two-step predictor-corrector scheme that is second order accurate both in space and time and is capable of capturing the shocks without isolating them Two alternative formulations for this scheme are possible. In the first alternative, backward FD are used to approximate the spatial partial derivatives in the predictor part and forward FD are utilized in the corrector part. The values of the variables determined during the predictor part are used during the corrector part In the second alternative forward FDs are used in the predictor and backward FD are used in the corrector part

Explicit finite difference schemes MacCormack Scheme cont… Generally it is recommended to alternate the direction of differencing from one time step to the next The FD approximations for the first alternative of this scheme is given as follows. The predictor

Explicit finite difference schemes MacCormack Scheme cont… The subscript * refers to variables computed during the predictor part The corrector the value of fi at the unknown time level k+1 is given by

Explicit finite difference schemes Lambda scheme In this scheme, the governing equations are first transformed into λ-form and then discretized according to the sign of the characteristic directions, thereby enforcing the correct signal direction. In an open channel flow, this allows analysis of flows having sub- and supercritical flows. This scheme was proposed by Moretti (1979) and has been used for the analysis of unsteady open channel flow by Fennema and Chaudhry (1986)

Explicit finite difference schemes Lambda scheme cont… Predictor Corrector

Explicit finite difference schemes By using the above FD s and and using the values of different variables computed during the predictor part, we obtain the equations for unknown variables. The values at k+1 time step may be determined from the following equations:

Explicit finite difference schemes Gabutti scheme This is an extension of the Lambda scheme. This allows analysis of sub and super critical flows and has been used for such analysis by Fennema and Chaudhry (1987) The general formulation for this scheme is comprised of predictor and corrector parts and the predictor part is subdivided into two parts The λ-form of the equations are used and the partial derivatives are replaced as follows:

Explicit finite difference schemes Gabutti scheme cont… Taking into consideration the correct signal direction Predictor: Step1: spatial derivatives are approximated as follows:

Explicit finite difference schemes Gabutti scheme cont… By substituting Step2: in this part of the predictor part we use the following finite-difference approximations:

Explicit finite difference schemes Gabutti scheme cont… Corrector: in this part the predicted values are used and the corresponding values of coefficients and approximate the spatial derivatives by the following finite differences: The values at k+1 time step may be determined from the following equations:

Implicit finite difference schemes In this scheme of implicit finite difference, the spatial partial derivatives and/or the coefficients are replaced in terms of the values at the unknown time level The unknown variables are implicitly expressed in the algebraic equations, this methods are called implicit methods. Several implicit schemes have been used for the analysis of unsteady open channel flows. The schemes are discussed one by one.

Implicit finite difference schemes Preissmann Scheme This method has been widely used The advantage of this method is that variable spatial grid may be used Steep wave fronts may be properly simulated by varying the weighting coefficient This scheme also yields an exact solution of the linearized form of the governing equations for a particular value of x and t.

Implicit finite difference schemes Preissmann Scheme cont… General formulation of the partial derivatives and other coefficients are approximated as follows:

Implicit finite difference schemes Preissmann Scheme Where α is a weighting coefficient By selecting a suitable value for α, the scheme may be made totally explicit (α=0) or implicit (α=1) The scheme is stable if 0.55< α≤1

FD methods for Saint Venant equations Continued…