Implementing Finite Volume Methods 1.  Continue on Finite Volume Methods for Elliptic Equations  Finite Volumes in Two-Dimensions  Poisson’s Equation.

Slides:



Advertisements
Similar presentations
Partial Differential Equations
Advertisements

Chapter 8 Elliptic Equation.
EE3321 ELECTROMAGENTIC FIELD THEORY
P. Venkataraman Mechanical Engineering P. Venkataraman Rochester Institute of Technology DETC2013 – 12269: Continuous Solution for Boundary Value Problems.
Electrostatic energy of a charge distribution.
Lectures on CFD Fundamental Equations
By S Ziaei-Rad Mechanical Engineering Department, IUT.
Session: Computational Wave Propagation: Basic Theory Igel H., Fichtner A., Käser M., Virieux J., Seriani G., Capdeville Y., Moczo P.  The finite-difference.
Finite element method – basis functions 1 Finite Elements: Basis functions 1-D elements  coordinate transformation  1-D elements  linear basis functions.
CSE351/ IT351 Modeling And Simulation Choosing a Mesh Model Dr. Jim Holten.
Magnetostatics – Magnetic Flux Density The magnetic flux density, B, related to the magnetic field intensity in free space by where  o is the free space.
CHE/ME 109 Heat Transfer in Electronics LECTURE 12 – MULTI- DIMENSIONAL NUMERICAL MODELS.
Normal Mode Analysis of the Chesapeake Bay. USNA 13FEB05 Trident: Grant I. Gillary Advisers: Professor Reza Malek-Madani Assistant Professor Kevin McIlhany.
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.
Numerical Methods for Partial Differential Equations
I i row1 row2 row3 row4 col1 col2 col3 col4 a. Grid b. Mesh c. Cloud A control volume solution based on an unstructured mesh (Linear Triangular Elements)
Types of Governing equations
PHY 042: Electricity and Magnetism
Numerical Methods for Partial Differential Equations CAAM 452 Spring 2005 Lecture 9 Instructor: Tim Warburton.
© 2011 Autodesk Freely licensed for use by educational institutions. Reuse and changes require a note indicating that content has been modified from the.
1 Finite-Volume Formulation. 2 Review of the Integral Equation The integral equation for the conservation statement is: Equation applies for a control.
ME 231 Thermofluid Mechanics I Navier-Stokes Equations.
Chapter 9: Differential Analysis of Fluid Flow SCHOOL OF BIOPROCESS ENGINEERING, UNIVERSITI MALAYSIA PERLIS.
Finite Element Method.
Vector Analysis Copyright © Cengage Learning. All rights reserved.
1 Discretizing The Concentration Equation Mike Grimm Math 1110 March 11, 2002.
1/21/2015PHY 712 Spring Lecture 31 PHY 712 Electrodynamics 9-9:50 AM MWF Olin 103 Plan for Lecture 3: Reading: Chapter 1 in JDJ 1.Review of electrostatics.
1 Spring 2003 Prof. Tim Warburton MA557/MA578/CS557 Lecture 5a.
EE484: Mathematical Circuit Theory + Analysis Node and Mesh Equations By: Jason Cho
Discontinuous Galerkin Methods and Strand Mesh Generation
16 VECTOR CALCULUS.
1 EEE 431 Computational Methods in Electrodynamics Lecture 4 By Dr. Rasime Uyguroglu
A conservative FE-discretisation of the Navier-Stokes equation JASS 2005, St. Petersburg Thomas Satzger.
The Geometry of Biomolecular Solvation 2. Electrostatics Patrice Koehl Computer Science and Genome Center
C GasparAdvances in Numerical Algorithms, Graz, Fast interpolation techniques and meshless methods Csaba Gáspár Széchenyi István University, Department.
Advanced EM - Master in Physics Magnetic potential and field of a SOLENOID Infinite length N spires/cm Current I Radius R The problem -for.
Discontinuous Galerkin Methods Li, Yang FerienAkademie 2008.
Discontinuous Galerkin Methods for Solving Euler Equations Andrey Andreyev Advisor: James Baeder Mid.
Stable, Circulation- Preserving, Simplicial Fluids Sharif Elcott, Yiying Tong, Eva Kanso, Peter Schröder, and Mathieu Desbrun.
Elliptic PDEs and the Finite Difference Method
Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display. 1 Part 8 - Chapter 29.
© Fluent Inc. 11/24/2015J1 Fluids Review TRN Overview of CFD Solution Methodologies.
Sensitivity derivatives Can obtain sensitivity derivatives of structural response at several levels Finite difference sensitivity (section 7.1) Analytical.
Challenges for finite volume models Haroldo F. de Campos Velho
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.
Darryl Michael/GE CRD Fields and Waves Lesson 3.6 ELECTROSTATICS - Numerical Simulation.
Discretization Methods Chapter 2. Training Manual May 15, 2001 Inventory # Discretization Methods Topics Equations and The Goal Brief overview.
Elliptic PDEs and Solvers
1 Spring 2003 Prof. Tim Warburton MA557/MA578/CS557 Lecture 25.
1 LECTURE 6 Stability of Parabolic PDEs. 2 Aim of Lecture Last week we discussed Parabolic PDEs –Looked at Explicit and Implicit Methods –Advantages and.
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.
1 Copyright by PZ Bar-Yoseph © Finite Element Methods in Engineering Winter Semester Lecture 7.
Operators in scalar and vector fields
MA2213 Lecture 10 ODE. Topics Importance p Introduction to the theory p Numerical methods Forward Euler p. 383 Richardson’s extrapolation.
Computational Fluid Dynamics Lecture II Numerical Methods and Criteria for CFD Dr. Ugur GUVEN Professor of Aerospace Engineering.
Vector Analysis 15 Copyright © Cengage Learning. All rights reserved.
Part 8 - Chapter 29.
EEE 431 Computational Methods in Electrodynamics
Chapter 9: Differential Analysis of Fluid Flow
1 Divergence Theorem. 2 Understand and use the Divergence Theorem. Use the Divergence Theorem to calculate flux. Objectives Total flux change = (field.
Implementing Finite Volume Methods
Uniqueness Theorem vanishes on S vanishes in V
ME/AE 339 Computational Fluid Dynamics K. M. Isaac Topic2_PDE
3D Image Segmentation and Multigrid Method
topic13_grid_generation
Numerical Integration:
6.5 Taylor Series Linearization
Finite element method.
1st semester a.y. 2018/2019 – November 22, 2018
Presentation transcript:

Implementing Finite Volume Methods 1

 Continue on Finite Volume Methods for Elliptic Equations  Finite Volumes in Two-Dimensions  Poisson’s Equation  Boundary Conditions ◦ Neumann ◦ Dirichlet  Using Excel 2

2-Dimensional grid development same as 1D. Note that the boundaries are on the control volume surfaces. [In the pictures, dotted lines represent control volumes, solid lines represent node adjacencies/data dependencies.] 3 Control Volumes Nodes placed at centre of control volumes

 Grid Generation - Similar as One-Dimension  Use grid spacing h (=Dx) in x direction and k (= Dy) in y  Consider Poisson's Equation 4 Control Volume P S W N E e w s n h k

 For an area A enclosed by the surface S, and vector field variable v, the DIVERGENCE theorem states:  Let  The Divergence theorem can be used on the Laplace equation for the scalar field u. Or 5 S A

 Using the divergence theorem it can be shown that:  The first order derivatives can be approximated by: 6 P S W N E e w s n

 Therefore at each node we have the following algebraic equations that represent the Poisson equation. 7 P S W N E e w s n h k

 The equation on the previous slide is in the standard form for finite volumes schemes  It is normal to write Ap in this way, rather than, say  This is because, if you use other volume shapes, such as triangles, rectangles or a mixture, the same sort of results (e.g. that Ap is the sum of the other coefficients) still hold 8

 The divergence theorem gives:  Example: at north boundary 9

 Therefore at each node on the north boundary we have 10

 Similarly at each node on the east boundary, if  Similar on other boundaries, but the signs are reversed (south) (west) 11

 The divergence theorem gives:  Example: at east boundary 12 Boundary P h k

 Therefore at each node on the east boundary we have 13

 Similarly at each node on the north boundary, if 14

 At each internal node 15 P S W N E e w s n h k

 Can use transformations of source term to calculate BCs  Remove the boundary term(s) A [B] =0 where [B]=N,S,E or W  Neumann (+east or –west) (+north or –south)  Dirichlet ( u = U B ) (east or west) (north or south) 16 Boundary P h k

 Finite Difference: ◦ Approximate derivatives at each node via a difference formula derived from Taylor series expansions on a regular grid. ◦ Advantages: Easy to implement. Easy to obtain higher order derivatives. ◦ Disadvantages: Need to use structured mesh. May not be conservative.  Finite Volume: ◦ Approximate first order derivatives on the faces of each control volume. ◦ Advantages: Can use unstructured meshes. Conservative. ◦ Disadvantage: Difficult to obtain higher order derivatives. 17

 Mesh nodes are at the centre of each cell (e.g. for at )  There are no known boundary cell values (even if a boundary value for u is known – different from Finite Differences)  Work out general formula, copy to all cells and apply boundary transformations 18

 Consider the Poisson equation on the following domain:  Using h = k = 0.5, g = 2, program the FV method in Excel [class demo] 19 (0,0) (0,5) (3,2) (3,3) (7,2) (7,3) (10,0) (10,5)

 At each internal node (see slide 15)  So in general  However, may be sensible to retain g, h, k in the formula so we can modify the Excel file easily (see example) 20

 At the West boundary we have Neumann BCs  Use general formula (slide 15) but apply boundary transformations (slide 16)  but (transformation)  (transformation)  So in general on West boundary 21

 At the East boundary we have Dirichlet BCs u=50  Use general formula (slide 15) but apply boundary transformations (slide 16)  but (transformation)  (transformation)  So in general on East boundary 22

 At the East boundary we have Dirichlet BCs u =50  At the South boundary we have Neumann BCs  but (S & E transformation)  (E transformation)  (S transformation)  So for bottom right hand corner 23

24