Pressure-velocity correction method Finite Volume solution of Navier-Stokes equations Exercise: Finish solving the Navier Stokes equations

Similar documents
Project 4: Navier-Stokes Solution to Driven Cavity and Channel Flow Conditions

Computation of Incompressible Flows: SIMPLE and related Algorithms

The investigation on SIMPLE and SIMPLER algorithm through lid driven cavity

Enhancement of the momentum interpolation method on non-staggered grids

AN UNCERTAINTY ESTIMATION EXAMPLE FOR BACKWARD FACING STEP CFD SIMULATION. Abstract

Solution Methods. Steady State Diffusion Equation. Lecture 04

Solution Methods. Steady convection-diffusion equation. Lecture 05

SOE3213/4: CFD Lecture 3

Open boundary conditions in numerical simulations of unsteady incompressible flow

Chapter 9: Differential Analysis

Entropy 2011, 13, ; doi: /e OPEN ACCESS. Entropy Generation at Natural Convection in an Inclined Rectangular Cavity

Computational Fluid Dynamics-1(CFDI)

FINITE VOLUME METHOD: BASIC PRINCIPLES AND EXAMPLES

CFD in Heat Transfer Equipment Professor Bengt Sunden Division of Heat Transfer Department of Energy Sciences Lund University

Chapter 9: Differential Analysis of Fluid Flow

Module 2: Introduction to Finite Volume Method Lecture 14: The Lecture deals with: The Basic Technique. Objectives_template

Two-Dimensional Unsteady Flow in a Lid Driven Cavity with Constant Density and Viscosity ME 412 Project 5

The behaviour of high Reynolds flows in a driven cavity

Spatial discretization scheme for incompressible viscous flows

Computation of Unsteady Flows With Moving Grids

n i,j+1/2 q i,j * qi+1,j * S i+1/2,j

The Effect of Undulated Wall on Natural Convection Heat Transfer in Vertical Channels

ENERGY PERFORMANCE IMPROVEMENT, FLOW BEHAVIOR AND HEAT TRANSFER INVESTIGATION IN A CIRCULAR TUBE WITH V-DOWNSTREAM DISCRETE BAFFLES

MOMENTUM TRANSPORT Velocity Distributions in Turbulent Flow

Cranfield University, Cranfield, Bedfordshire, MK43 0AL, United Kingdom. Cranfield University, Cranfield, Bedfordshire, MK43 0AL, United Kingdom

CHAPTER 7 SEVERAL FORMS OF THE EQUATIONS OF MOTION

Introduction to numerical simulation of fluid flows

A finite-volume algorithm for all speed flows

MOMENTUM PRINCIPLE. Review: Last time, we derived the Reynolds Transport Theorem: Chapter 6. where B is any extensive property (proportional to mass),

5. FVM discretization and Solution Procedure

Turbulent Boundary Layers & Turbulence Models. Lecture 09

International Journal of Scientific & Engineering Research, Volume 6, Issue 5, May ISSN

PDE Solvers for Fluid Flow

MATLAB Solution of Flow and Heat Transfer through a Porous Cooling Channel and the Conjugate Heat Transfer in the Surrounding Wall

Numerical methods for the Navier- Stokes equations

SYMMETRY BREAKING PHENOMENA OF PURELY VISCOUS SHEAR-THINNING FLUID FLOW IN A LOCALLY CONSTRICTED CHANNEL

Chapter 5. The Differential Forms of the Fundamental Laws

Express Introductory Training in ANSYS Fluent Lecture 2 Boundary Conditions & Solver Settings

An underrelaxation control method

2. FLUID-FLOW EQUATIONS SPRING 2019

CFD Time Evolution of Heat Transfer Around A Bundle of Tubes In Staggered Configuration. G.S.T.A. Bangga 1*, W.A. Widodo 2

Study of Forced and Free convection in Lid driven cavity problem

Simulation and improvement of the ventilation of a welding workshop using a Finite volume scheme code

Computational Engineering Introduction to Numerical Methods

Lecture 2: Fundamentals 2/3: Navier-Stokes Equation + Basics of Discretization

International Conference on Energy Efficient Technologies For Automobiles (EETA 15) Journal of Chemical and Pharmaceutical Sciences ISSN:

Application of Chimera Grids in Rotational Flow

Incompressible Flow Solver by Means of Pseudo-Compressibility Method

Calculating equation coefficients

Numerical Methods in Aerodynamics. Turbulence Modeling. Lecture 5: Turbulence modeling

Effect of Static Magnetic Field Application on the Mass Transfer in Sequence Slab Continuous Casting Process

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

Conservation of Mass. Computational Fluid Dynamics. The Equations Governing Fluid Motion

Simplified Model of WWER-440 Fuel Assembly for ThermoHydraulic Analysis

SELF-SUSTAINED OSCILLATIONS AND BIFURCATIONS OF MIXED CONVECTION IN A MULTIPLE VENTILATED ENCLOSURE

.u= 0 ρ( u t +(u. )u)= ρ g p+.[µ( u+ t u)]

IMPLEMENTATION OF PRESSURE BASED SOLVER FOR SU2. 3rd SU2 Developers Meet Akshay.K.R, Huseyin Ozdemir, Edwin van der Weide

Chapter 8: Flow in Pipes

OpenFOAM selected solver

Development of unsteady algorithms for pressurebased unstructured solver for two-dimensional incompressible flows

Impact of Magnetic Field Strength on Magnetic Fluid Flow through a Channel

MTF071 Computational Fluid Dynamics of Turbulent

Due Tuesday, November 23 nd, 12:00 midnight

Computation Fluid Dynamics Prof. Dr. Suman Chakraborty Department of Mechanical Engineering Indian Institute of Technology, Kharagpur

INTRODUCCION AL ANALISIS DE ELEMENTO FINITO (CAE / FEA)

AA214B: NUMERICAL METHODS FOR COMPRESSIBLE FLOWS

2.29 Numerical Fluid Mechanics Fall 2011 Lecture 5

LEAST-SQUARES FINITE ELEMENT MODELS

Accretion Disks I. High Energy Astrophysics: Accretion Disks I 1/60

SIMULATION OF THREE-DIMENSIONAL INCOMPRESSIBLE CAVITY FLOWS

Effect of Periodic Variation of Sol-air Temperature on the Performance of Integrated Solar Collector Storage System

A STUDY ON NATURAL CONVECTION HEAT TRANSFER IN COMPLEX BOUNDARIES

Computational Fluid Dynamics

Numerical simulation of non-linear elastic flows with a general collocated finite-volume method

arxiv: v1 [physics.comp-ph] 10 Aug 2015

LES modeling of heat and mass transfer in turbulent recirculated flows E. Baake 1, B. Nacke 1, A. Umbrashko 2, A. Jakovics 2

A NUMERICAL ANALYSIS OF COMBUSTION PROCESS IN AN AXISYMMETRIC COMBUSTION CHAMBER

INSTITUTTET FOR BYGNINGSTEKNIK DEPT. OF BUILDING TECHNOLOGY AND STRUCTURAL ENGINEERING AALBORG UNIVERSITET AAU AALBORG DANMARK

ME 144: Heat Transfer Introduction to Convection. J. M. Meyers

CHAPTER 7 NUMERICAL MODELLING OF A SPIRAL HEAT EXCHANGER USING CFD TECHNIQUE

Numerical Simulation of Unsteady Flow with Vortex Shedding Around Circular Cylinder

Math background. Physics. Simulation. Related phenomena. Frontiers in graphics. Rigid fluids

Natural Convection in Parabolic Enclosure Heated from Below

CFD ANALYSIS OF TRIANGULAR ABSORBER TUBE OF A SOLAR FLAT PLATE COLLECTOR

Fluid Dynamics: Theory, Computation, and Numerical Simulation Second Edition

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

Discretization of Convection Diffusion type equation

Large-eddy simulations for wind turbine blade: rotational augmentation and dynamic stall

A Multi-Dimensional Limiter for Hybrid Grid

GENERALISATION OF THE TWO-SCALE MOMENTUM THEORY FOR COUPLED WIND TURBINE/FARM OPTIMISATION

On the transient modelling of impinging jets heat transfer. A practical approach

Validation 3. Laminar Flow Around a Circular Cylinder

SIMPLE Algorithm for Two-Dimensional Channel Flow. Fluid Flow and Heat Transfer

A THREE DIMENSIONAL, FINITE VOLUME METHOD FOR INCOMPRESSIBLE NAVIER STOKES EQUATIONS ON UNSTRUCTURED, STAGGERED GRIDS

This section develops numerically and analytically the geometric optimisation of

meters, we can re-arrange this expression to give

Adaptive C1 Macroelements for Fourth Order and Divergence-Free Problems

Forced Convection: Inside Pipe HANNA ILYANI ZULHAIMI

Process Chemistry Toolbox - Mixing

Length Learning Objectives Learning Objectives Assessment

Transcription:

Today's Lecture 2D grid colocated arrangement staggered arrangement Exercise: Make a Fortran program which solves a system of linear equations using an iterative method SIMPLE algorithm Pressure-velocity correction method Finite Volume solution of Navier- Exercise: Finish solving the Navier Lid driven cavity flow, Fortran program 1

What did we learn last time? Numerical Methods in Aerodynamics Navier- Name the equations Name the different terms Which terms have we discretized? Which discretization schemes have been used for which terms? 2

What needs to be considered? Previous u was assumed known. u needs to be found from the governing equations momentum continuity Pressure gradients have not been considered yet. No real governing equation for pressure The convective terms are nonlinear 2D grid vs. 1D grid 3

2D grid (colocated) Pressure, and velocities are evaluated at nodal points. The pressure gradients are needed where the velocities are located. I.e. at nodal points 4

Checker-board pressure field Is this true??? 5

2D grid (staggered) Pressure is evaluated at nodal points. Velocities are evaluated at CV boundaries. u velocities are located at w and e boundary points v velocities are located at s and n boundary points The pressure gradients are needed where the velocities are located. I.e. at CV boundary points 6

Checker-board pressure field Is this better, than with the colocated arrangement??? No interpolation of pressure is needed. 7

Numbering of staggered grid Grid lines are numbered by capital letters x-direction I-2, I-1, I, I+1,... y-direction J-2, J-1, J, J+1,... The scalar cell faces are numbered by lower case letters x-direction i-1, i, i+1,... y-direction j-1, j, j+1,... u-velocity points are numbered by (lower case, captial), e.g. (i,j) v-velocity points are numbered by (capital, lower case), e.g. (I,j) 8

The Navier for stationary, incompressible 2D flow x-momentum equation y-momentum equation continuity equation 9

Discretization of the x-momentum equation (u CV) Integrating over CV Using Gauss' theorem Slide 11, lecture 1 Convective terms slide 31, lecture 1 Viscous terms slide 23, lecture 1 Pressure gradient term CDS Constant area, viscousity and density 10

Discretization of the x-momentum equation (u CV) assume that p is known at e and w face Nonlinear convective terms Assume the convective fluxes are known UDS is used for convective terms (slide 32, lecture 1) CDS is used for viscous terms (slide 24, lecture 1) 11

Rearranging and using the global numbered notation Convective fluxes 12

Rearranging and using the numbered notation The x-momentum equation 13

Rearranging and using the numbered notation Blue is assumed known from guessed (previous) values of u, v and p 14

Discretization of the y-momentum equation (v CV) 15

Discretization of the y-momentum equation (v CV) y-momentum Integration over CV, Gauss' theorem Convective fluxes known. Constant area, viscousity and density 16

Discretization of the y-momentum equation (v CV) UDS is used for convective terms (slide 32, lecture 1) CDS is used for viscous terms (slide 24, lecture 1) 17

Rearranging and using the global numbered notation Blue is assumed known from guessed (previous) values of u, v and p 18

Summary, momentum equations Numerical Methods in Aerodynamics The equations are solved iteratively The fluxes giving the a coefficients and pressure are guessed. The momentum equations are solved giving new values of u and v The fluxes are updated The pressure is only guessed, i.e. the velocities doesn't satisfy continuity. The pressure needs to be updated. We still haven't used the continuity equation. But only velocities enters this equation! 19

Exercise: Problem solve the system of linear equations using an iterative method write solution to a file load and plot solution in Matlab 20

BREAK Next: SIMPLE algorithm Continuity equation Pressure-velocity correction method 21

SIMPLE-algorithm Semi-Implicit Method for Pressure-Linked Equations (SIMPLE) Patankar and Spalding (1972). A Calculation Procedure for Heat, Mass and Momentum Transfer in Three-dimensional Parabolic Flows, Int. J. Heat Mass Transfer, Vol. 15, p. 1787 Variations SIMPLER (SIMPLE-Revised), Patankar (1980) SIMPLEC (SIMPLE-Consistent), Van Doormal and Raithby (1984) PISO, Issa (1986) Guess-and-correct procedure 22

Initiation of the procedure Numerical Methods in Aerodynamics Guessed fields p *, u * and v * are used p', u' and v' are the differences between the guessed fields and the correct p, u and v. 23

Inserting the guessed fields in the discretized momentum equations x-momentum y-momentum 24

Subtracting the discretized equations for guessed and correct fields Correct field Guessed field Difference Correction equation, disregarding neighbour points 25

CV for continuity equation (scalar CV) Numerical Methods in Aerodynamics Integrating over CV, Gauss' theorem We know u and v at faces. Global numbering 26

Velocities and correction equations Numerical Methods in Aerodynamics Velocities Correction equations 27

Inserting velocities and correction equations Discretized continuity equation 28

Rearranging terms 29

Under-relaxation The pressure correction equation may diverge. To avoid this only a fraction of the pressure correction is added to the guessed pressure (under-relaxation). n indicates iteration number. This stabilizes the algorithm but makes convergence slower Optimal choice of α p is problem dependent The updating of the velocities are also under-relaxed 30

Summary of the SIMPLE-algorithm Numerical Methods in Aerodynamics 1. Initial guess of p *, u * and v * 2. Solve the discretized momentum equations for updated values of u * and v * 3. Solve the pressure correction equation for p ' 4. Correct pressures and velocities using under-relaxation 5. Repeat 2 with p*=p n, u * =u n and v * =v n until convergence is reached. 31

Generel comments The a coefficients are dependent on the choice of discretization scheme. They are determined from the convective fluxes, i.e. they are updated each iteration. Solutions of the momentum and pressure correction equations have not been discussed. Iterative or direct methods may be adopted. Implementation of boundary conditions has not been discussed. inlet, outlet, wall, prescribed pressure, symmetry, periodicity. See e.g. Versteeg Other discretization approaches can be used Finite difference, Finite element Compressible and non-stationary flows have no been discussed. Only Cartesian meshes have been illustrated. Unstructured meshes are often used in commercial codes. 32

Generel comments The Reynolds number Re is the ratio of inertial forces (uρ) to viscous forces (µ/l) and is used for determining whether a flow will be laminar or turbulent. Laminar flow occurs at low Reynolds numbers, where viscous forces are dominant, and is characterized by smooth, constant fluid motion, while turbulent flow, on the other hand, occurs at high Reynolds numbers and is dominated by inertial forces, producing random eddies, vortices and other flow fluctuations. Turbulence models are used to describe these fluctuations. Large-eddy simulations (LES) Reynolds-Averaged Navier- (RANS) 33

BREAK Next: Exercise problem Going trough the main elements of the problem Exercise: Find out what is going on in the finer parts of the program 34

Fortran project 35

Main parts of the project Grid generation Read the input file containing the problem definition Generating grid Write the grid to an output file Setting up and solve the system Read the input file containing the problem definition Read the grid file Define initial conditions including boundary conditions Solve the system equations until convergence is reached Write the result to an output file Plotting the results Read the input file containing the problem definition Read the solution from the output file Plot the desired results 36

Exercise: Investigate the main parts of the program Look through the project files grid.f90, pstag.f90 and plot.f90 Find the sections where the previous mentioned parts are located Try to identify the steps of the SIMPLE algorithm Run the files with various problem definitions change the lid velocity change the fluid properties change the grid size 37

What have we learned? Discretize the governing equations for fluid flow (convection and diffusion) using the Finite Volume method Central difference scheme for viscous terms Upwind difference scheme for convective terms Non-linear convective terms are solved iteratively by defining convective fluxes from previous iteration The continuity equation is used as a pressure correction equation to introduce effects from the pressure gradient term There is A LOT OF BOOKKEEPING!!! Fortran Read from and write to files (and screen) loops program, subroutines, functions 38

Next lecture Minor finite element structural models may be solved on a single PC. Minor flow problems may be solved on a single PC. When the problems increase in size the memory of one PC may not suffice. Calculation time may be decreased from dividing the system into minor problems and solved on separate PC's. We will look at a cluster of PC's and learn the basic programming skills for solving problems on parallel systems filserver1 Login node Client1 Client2 39

Thank you for your attention 40