Example application – Finite Volume Discretization Numerical Methods for PDEs Spring 2007 Jim E. Jones.

Slides:



Advertisements
Similar presentations
Compatible Spatial Discretizations for Partial Differential Equations May 14, 2004 Compatible Reconstruction of Vectors Blair Perot Dept. of Mechanical.
Advertisements

Finite Volume II Philip Mocz. Goals Construct a robust, 2nd order FV method for the Euler equation (Navier-Stokes without the viscous term, compressible)
Continuity Equation. Continuity Equation Continuity Equation Net outflow in x direction.
Lectures on CFD Fundamental Equations
Ground-Water Flow and Solute Transport for the PHAST Simulator Ken Kipp and David Parkhurst.
1 MECH 221 FLUID MECHANICS (Fall 06/07) Tutorial 7.
1 MECH 221 FLUID MECHANICS (Fall 06/07) Tutorial 6 FLUID KINETMATICS.
CE An Intro Problem—will lead to first homework Fluid is contained in along square duct, see cross section below, three faces of the duct are kept.
Shallow water equations in 1D: Method of characteristics
Multi-Scale Finite-Volume (MSFV) method for elliptic problems Subsurface flow simulation Mark van Kraaij, CASA Seminar Wednesday 13 April 2005.
Transport Equations and Flux Laws Basic concepts and ideas 1.A concept model of Diffusion 2.The transient Diffusion Equation 3.Examples of Diffusion Fluxes.
Numerical Hydraulics Wolfgang Kinzelbach with Marc Wolf and Cornel Beffa Lecture 1: The equations.
A TWO-FLUID NUMERICAL MODEL OF THE LIMPET OWC CG Mingham, L Qian, DM Causon and DM Ingram Centre for Mathematical Modelling and Flow Analysis Manchester.
Numerical Methods for Partial Differential Equations CAAM 452 Spring 2005 Lecture 9 Instructor: Tim Warburton.
Finite element method 1 Finite Elements  Basic formulation  Basis functions  Stiffness matrix  Poisson‘s equation  Regular grid  Boundary conditions.
EEL 3472 ElectromagneticWaves. 2 Electromagnetic Waves Spherical Wavefront Direction of Propagation Plane-wave approximation.
Lecture Objectives Review SIMPLE CFD Algorithm SIMPLE Semi-Implicit Method for Pressure-Linked Equations Define Residual and Relaxation.
1 April 14 Triple product 6.3 Triple products Triple scalar product: Chapter 6 Vector Analysis A B C + _.
Copyright © Cengage Learning. All rights reserved. 16 Vector Calculus.
Conservation of Mass D=Domain of a body of water Water is flowing in and out of D Mass is neither created nor destroyed Flow coming in = Flow going out.
CEE 262A H YDRODYNAMICS Lecture 5 Conservation Laws Part I 1.
Chapter 9: Differential Analysis of Fluid Flow SCHOOL OF BIOPROCESS ENGINEERING, UNIVERSITI MALAYSIA PERLIS.
PTT 204/3 APPLIED FLUID MECHANICS SEM 2 (2012/2013)
Louisiana Tech University Ruston, LA Momentum Balance Steven A. Jones BIEN 501/CMEN 513 Monday, March 19, 2007.
Boundaries, shocks, and discontinuities. How discontinuities form Often due to “wave steepening” Example in ordinary fluid: –V s 2 = dP/d  m –P/  
Mass Transfer Coefficient
Stable, Circulation- Preserving, Simplicial Fluids Sharif Elcott, Yiying Tong, Eva Kanso, Peter Schröder, and Mathieu Desbrun.
Solving an elliptic PDE using finite differences Numerical Methods for PDEs Spring 2007 Jim E. Jones.
Groundwater pumping to remediate groundwater pollution March 5, 2002.
Lecture Objectives Review Define Residual and Relaxation SIMPLE CFD Algorithm SIMPLE Semi-Implicit Method for Pressure-Linked Equations.
HEAT TRANSFER FINITE ELEMENT FORMULATION
Modeling of the Unsteady Separated Flow over Bilge Keels of FPSO Hulls under Heave or Roll Motions Yi-Hsiang Yu 09/23/04 Copies of movies/papers and today’s.
The electrostatic field of conductors EDII Section 1.
Louisiana Tech University Ruston, LA Boundary Layer Theory Steven A. Jones BIEN 501 Friday, April
Final Project Topics Numerical Methods for PDEs Spring 2007 Jim E. Jones.
Discretization Methods Chapter 2. Training Manual May 15, 2001 Inventory # Discretization Methods Topics Equations and The Goal Brief overview.
1/61/6 M.Chrzanowski: Strength of Materials SM1-08: Continuum Mechanics: Stress distribution CONTINUUM MECHANICS (STRESS DISTRIBUTION)
Lecture Objectives: Continue with linearization of radiation and convection Example problem Modeling steps.
CHAPTER 14 Vector Calculus Slide 2 © The McGraw-Hill Companies, Inc. Permission required for reproduction or display. 14.1VECTOR FIELDS 14.2LINE INTEGRALS.
Multiplication of vectors Two different interactions (what’s the difference?)  Scalar or dot product : the calculation giving the work done by a force.
Solving Partial Differential Equation Numerically Pertemuan 13 Matakuliah: S0262-Analisis Numerik Tahun: 2010.
FORMULAS REVIEW SHEET ANSWERS. 1) SURFACE AREA FOR A PARAMETRIC FUNCTION.
Programming assignment # 3 Numerical Methods for PDEs Spring 2007 Jim E. Jones.
Lecture 3 & 4 : Newtonian Numerical Hydrodynamics Contents 1. The Euler equation 2. Properties of the Euler equation 3. Shock tube problem 4. The Roe scheme.
EEE 431 Computational Methods in Electrodynamics Lecture 2 By Rasime Uyguroglu.
Chapter 6 Vector Analysis
Christopher Crawford PHY
A TWO-FLUID NUMERICAL MODEL OF THE LIMPET OWC
Maxwell’s Equations.
Algebra.
We will be looking for a solution to the system of linear differential equations with constant coefficients.
Nodal Methods for Core Neutron Diffusion Calculations
Linearized Block Implicit (LBI) Method applied to Quasi-1D Flow
Continuum Mechanics for Hillslopes: Part IV
Finite Difference Method
Finite Volume Method for Unsteady Flows
Chapter 6 Vector Analysis
Topic 3 Discretization of PDE
Objective Numerical methods Finite volume.
Finite Volume Method Philip Mocz.
Topic 3 Discretization of PDE
Copyright © Cengage Learning. All rights reserved.
Chapter 2 Equations & Numerical Methods
Steady-State Heat Transfer (Initial notes are designed by Dr
Programming assignment # 3 Numerical Methods for PDEs Spring 2007
Programming assignment #1 Solving an elliptic PDE using finite differences Numerical Methods for PDEs Spring 2007 Jim E. Jones.
Topic 3 Discretization of PDE
1st semester a.y. 2018/2019 – November 22, 2018
Finite Element Modelling in Geosciences FEM in 2D for viscous materials Introduction to Finite Element Modelling in Geosciences Summer 2018.
Presentation transcript:

Example application – Finite Volume Discretization Numerical Methods for PDEs Spring 2007 Jim E. Jones

Flow in porous media Darcy’s Law: experimentally derived law relating flow velocity to pressure drop Conservation Law: Net flow is balanced by source/sinks

Putting together yields pressure equation If K is constant Can solve like programming assignment #1 Use finite difference discretization Solve linear system using Gauss-Seidel Solving the pressure equation for porous media flow

Finite Volume discretization: an alternative to finite differences Construct a dual grid by cutting each grid line. h

Finite Volume discretization: an alternative to finite differences h Construct a dual grid by cutting each grid line.

Finite Volume discretization equations p i,j p i-1,j Each unknown lies at the center of a cell on the dual grid.

Finite Volume discretization equations p i,j p i-1,j Get an equation for i,j by integrating the PDE over the volume V i,j

Divergence Theorem V  S The volume integral of the divergence of a vector field is equal to the surface integral of its component in the normal direction

Finite Volume discretization equations p i,j p i-1,j Apply divergence theorem. V i,j

Finite Volume discretization equations p i,j p i-1,j V i,j 

Finite Volume discretization equations p i,j p i-1,j V i,j  Length of boundary = h

Finite Volume discretization equations p i,j p i-1,j V i,j 

Finite Volume discretization equations p i,j p i-1,j V i,j

Finite Volume discretization equations p i,j p i-1,j Get an equation for i,j by integrating the PDE over the volume V i,j

Finite Volume discretization equations p i,j p i-1,j Get an equation for i,j by integrating the PDE over the volume V i,j Integrating source term over the volume

Quick Check: what if K=1? Same as finite differences for

If K’s constant, get matrix from assignment #1, otherwise … KiKi K i-1 How do we define K West at the interface?

If K’s constant, get matrix from assignment #1, otherwise … KiKi K i-1 How do we define K West at the interface? Lets make the normal component of velocity continuous across the interface.

If K’s constant, get matrix from assignment #1, otherwise … KiKi K i-1 pipi p West p i-1

If K’s constant, get matrix from assignment #1, otherwise … KiKi K i-1 pipi p West p i-1 Equate V left and V right and solve for p West

If K’s constant, get matrix from assignment #1, otherwise … KiKi K i-1 pipi p West p i-1

If K’s constant, get matrix from assignment #1, otherwise … KiKi K i-1 pipi p West p i-1 The effective diffusion coefficient is the harmonic average of the 2.

Programming Assignment #3 Will be like assignment #1, except –The diffusion coefficient will vary and the discretization will be done by finite volume method –We’ll replace the Gauss-Seidel solver for the linear system with something more effective To get a head start, modify your code (or mine) from assignment #1 to solve the PDE …

Use finite volumes and Gauss-Seidel. Solving the pressure equation for porous media flow Keep problem size as input. I’m showing a small problem for illustration.

Use finite volumes and Gauss-Seidel. Solving the pressure equation for porous media flow

Assume that K is defined by a function on x & y Solving the pressure equation for porous media flow

Use the K value at volume centers in defining the finite volume equations Solving the pressure equation for porous media flow

Upcoming Schedule March M W April M W Programming assignment #3 due March 21 Take home portion of exam handed out March 28 Take home due and in class exam April 2 Programming assignment #4 due April 9 Final Project presentations April 23 & 25