Solution methods for the Incompressible Navier-Stokes Equations

Similar documents
Customer Training Material. Lecture 5. Solver Settings ANSYS FLUENT. ANSYS, Inc. Proprietary 2010 ANSYS, Inc. All rights reserved.

ME6130 An introduction to CFD 1-1

Differential Relations for Fluid Flow. Acceleration field of a fluid. The differential equation of mass conservation

TWO-DIMENSIONAL FINITE ELEMENT ANALYSIS OF FORCED CONVECTION FLOW AND HEAT TRANSFER IN A LAMINAR CHANNEL FLOW

Express Introductory Training in ANSYS Fluent Lecture 1 Introduction to the CFD Methodology

Lecture 7 - Meshing. Applied Computational Fluid Dynamics

Customer Training Material. Lecture 2. Introduction to. Methodology ANSYS FLUENT. ANSYS, Inc. Proprietary 2010 ANSYS, Inc. All rights reserved.

THE CFD SIMULATION OF THE FLOW AROUND THE AIRCRAFT USING OPENFOAM AND ANSA

Introduction to CFD Analysis

COMPARISON OF SOLUTION ALGORITHM FOR FLOW AROUND A SQUARE CYLINDER

Lecture 16 - Free Surface Flows. Applied Computational Fluid Dynamics

TFAWS AUGUST 2003 VULCAN CFD CODE OVERVIEW / DEMO. Jeffery A. White. Hypersonic Airbreathing Propulsion Branch

External bluff-body flow-cfd simulation using ANSYS Fluent

A CODE VERIFICATION EXERCISE FOR THE UNSTRUCTURED FINITE-VOLUME CFD SOLVER ISIS-CFD

MEL 807 Computational Heat Transfer (2-0-4) Dr. Prabal Talukdar Assistant Professor Department of Mechanical Engineering IIT Delhi

Part II: Finite Difference/Volume Discretisation for CFD

1 The basic equations of fluid dynamics

Course Outline for the Masters Programme in Computational Engineering

COMPUTATIONAL FLUID DYNAMICS USING COMMERCIAL CFD CODES

GAMBIT Demo Tutorial

AeroFluidX: A Next Generation GPU-Based CFD Solver for Engineering Applications

Introduction to CFD Analysis

Set up and solve a transient problem using the pressure-based solver and VOF model.

Introduction to CFD Basics

Advanced CFD Methods 1

CFD software overview comparison, limitations and user interfaces

Effect of Aspect Ratio on Laminar Natural Convection in Partially Heated Enclosure

OpenFOAM Optimization Tools

Abaqus/CFD Sample Problems. Abaqus 6.10

Introduction to COMSOL. The Navier-Stokes Equations

Multi-Block Gridding Technique for FLOW-3D Flow Science, Inc. July 2004

Module 6 Case Studies

TECHNICAL BRIEF: Selected Benchmarks from Commercial CFD Codes

O.F.Wind Wind Site Assessment Simulation in complex terrain based on OpenFOAM. Darmstadt,

CFD modelling of floating body response to regular waves

1. Lid driven flow in a cavity [Time: 1 h 30 ]

Modeling of Earth Surface Dynamics and Related Problems Using OpenFOAM

Simulation of Fluid-Structure Interactions in Aeronautical Applications

Paper Pulp Dewatering

CCTech TM. ICEM-CFD & FLUENT Software Training. Course Brochure. Simulation is The Future

Overset Grids Technology in STAR-CCM+: Methodology and Applications

Introduction to ANSYS

AN INTRODUCTION TO NUMERICAL METHODS AND ANALYSIS

Multiphase Flow - Appendices

Feature Commercial codes In-house codes

Lecture 6 - Boundary Conditions. Applied Computational Fluid Dynamics

Benchmark Computations of 3D Laminar Flow Around a Cylinder with CFX, OpenFOAM and FeatFlow

Adaptation of General Purpose CFD Code for Fusion MHD Applications*

HPC enabling of OpenFOAM R for CFD applications

Fluent Software Training TRN Solver Settings. Fluent Inc. 2/23/01

Dimensional analysis is a method for reducing the number and complexity of experimental variables that affect a given physical phenomena.

Use of OpenFoam in a CFD analysis of a finger type slug catcher. Dynaflow Conference 2011 January , Rotterdam, the Netherlands

Introduction to Computational Fluid Dynamics

CFD SIMULATION OF SDHW STORAGE TANK WITH AND WITHOUT HEATER

FRIEDRICH-ALEXANDER-UNIVERSITÄT ERLANGEN-NÜRNBERG

Domain Decomposition Methods. Partial Differential Equations

HPC Deployment of OpenFOAM in an Industrial Setting

Computational Modeling of Wind Turbines in OpenFOAM

Heat Transfer by Free Convection

Spatial Discretisation Schemes in the PDE framework Peano for Fluid-Structure Interactions

OpenFOAM Opensource and CFD

The Navier Stokes Equations

Steady Flow: Laminar and Turbulent in an S-Bend

Introduction to the Finite Element Method

Chapter 8: Flow in Pipes

TESLA Report

Efficient Convergence Acceleration for a Parallel CFD Code

Lecture 3 Fluid Dynamics and Balance Equa6ons for Reac6ng Flows

Chapter 2. Derivation of the Equations of Open Channel Flow. 2.1 General Considerations

Introductory FLUENT Training

Computational fluid dynamics (CFD) 9 th SIMLAB Course

Lecture 4 Classification of Flows. Applied Computational Fluid Dynamics

NUMERICAL ANALYSIS OF THE EFFECTS OF WIND ON BUILDING STRUCTURES

APPENDIX 3 CFD CODE - PHOENICS

Aerodynamic Department Institute of Aviation. Adam Dziubiński CFD group FLUENT

Ravi Kumar Singh*, K. B. Sahu**, Thakur Debasis Mishra***

Turbulence Modeling in CFD Simulation of Intake Manifold for a 4 Cylinder Engine

This tutorial provides a recipe for simulating L

Differential Balance Equations (DBE)

CHAPTER 4 CFD ANALYSIS OF THE MIXER

AUTOMOTIVE COMPUTATIONAL FLUID DYNAMICS SIMULATION OF A CAR USING ANSYS

Interactive simulation of an ash cloud of the volcano Grímsvötn

C3.8 CRM wing/body Case

Basic Equations, Boundary Conditions and Dimensionless Parameters

Keywords: Heat transfer enhancement; staggered arrangement; Triangular Prism, Reynolds Number. 1. Introduction

Dimensionless form of equations

An Overview of the Finite Element Analysis

SINGLE TRAIN PASSING THROUGH A TUNNEL

EXAMPLE: Water Flow in a Pipe

Development and Application of a Finite Volume Method for the Computation of Flows Around Moving Bodies on Unstructured, Overlapping Grids

HEAT TRANSFER ANALYSIS IN A 3D SQUARE CHANNEL LAMINAR FLOW WITH USING BAFFLES 1 Vikram Bishnoi

High Speed Aerodynamics Prof. K. P. Sinhamahapatra Department of Aerospace Engineering Indian Institute of Technology, Kharagpur

A Posteriori Error Estimation for Predictive Models

6.3 Multigrid Methods

Mathematical Modeling and Engineering Problem Solving

Design and Analysis of Engine Cooling Fan

POISSON AND LAPLACE EQUATIONS. Charles R. O Neill. School of Mechanical and Aerospace Engineering. Oklahoma State University. Stillwater, OK 74078

CBE 6333, R. Levicky 1 Differential Balance Equations

CFD Based Air Flow and Contamination Modeling of Subway Stations

Transcription:

Solution methods for the Incompressible Navier-Stokes Equations Discretization schemes for the Navier-Stokes equations Pressure-based approach Density-based approach Convergence acceleration Periodic Flows Unsteady Flows ME469B/3/GI 1

Background (from ME469A or similar) Navier-Stokes (NS) equations Finite Volume (FV) discretization Discretization of space derivatives (upwind, central, QUICK, etc.) Pressure-velocity coupling issue Pressure correction schemes (SIMPLE, SIMPLEC, PISO) Multigrid methods ME469B/3/GI 2

NS equations Conservation laws: Rate of change + advection + diffusion = source = 0 ME469B/3/GI 3

NS equations Differential form: 0 The advection term is non-linear The mass and momentum equations are coupled (via the velocity) The pressure appears only as a source term in the momentum equation No evolution equation for the pressure There are four equations and five unknowns (ρ, V, p) ME469B/3/GI 4

NS equations Compressible flows: The mass conservation is a transport equation for density. With an additional energy equation p can be specified from a thermodynamic relation (ideal gas law) Incompressible flows: Density variation are not linked to the pressure. The mass conservation is a constraint on the velocity field; this equation (combined with the momentum) can be used to derive an equation for the pressure ME469B/3/GI 5

Finite Volume Method Discretize the equations in conservation (integral) form Eventually this becomes ME469B/3/GI 6

Pressure-based solution of the NS equation The continuity equation is combined with the momentum and the divergence-free constraint becomes an elliptic equation for the pressure To clarify the difficulties related to the treatment of the pressure, we will define EXPLICIT and IMPLICIT schemes to solve the NS equations: It is assumed that space derivatives in the NS are already discretized: ME469B/3/GI 7

Explicit scheme for NS equations Semi-discrete form of the NS Explicit time integration The n+1 velocity field is NOT divergence free Take the divergence of the momentum Elliptic equation for the pressure ME469B/3/GI 8

Explicit pressure-based scheme for NS equations Velocity field (divergence free) available at time n Compute H n Solve the Poisson equation for the pressure p n Compute the new velocity field u n+1 ME469B/3/GI 9

Implicit scheme for NS equations Semi-discrete form of the NS Implicit time integration Take the divergence of the momentum The equations are coupled and non-linear ME469B/3/GI 10

Navier-Stokes Equations Conservation of mass Conservation of momentum Conservation of energy Newtonian fluid In 3D: 5 equations & 6 unknowns: p, ρ, v i, E(T) Need supplemental information: equation of state ME469B/3/GI 11

Approximations Although the Navier-Stokes equations are considered the appropriate conceptual model for fluid flows they contain 3 major approximations: 1. Continuum hypothesis 2. Form of the diffusive fluxes 3. Equation of state Simplified conceptual models can be derived introducing additional assumptions: incompressible flow Conservation of mass (continuity) Difficulties: Non-linearity, coupling, role of the pressure Conservation of momentum ME469B/3/GI 12

A Solution Approach The momentum equation can be interpreted as a advection/diffusion equation for the velocity vector The mass conservation should be used to derive the pressure taking the divergence of the momentum: A Poisson equation for the pressure is derived ME469B/3/GI 13

The Projection Method Implicit, coupled and non-linear Predicted velocity assuming but and taking the divergence we obtain this is what we would like to enforce combining (corrector step) ME469B/3/GI 14

Alternative View of Projection Reorganize the NS equations (Uzawa) LU decomposition Exact splitting Momentum eqs. Pressure Poisson eq. Velocity correction ME469B/3/GI 15

Alternative View of Projection Exact projection requires the inversion of the LHS of the momentum eq. thus is costly. Approximate projection methods are constructed using two auxiliary matrices (time-scales) Momentum eqs. Pressure Poisson eq. Velocity correction The simplest (conventional) choice is ME469B/3/GI 16

What about steady state? Solution of the steady-state NS equations is of primary importance Steady vs. unsteady is another hypothesis that requires formalization Mom. Equations Reference Quantities Non dimensional Eqn Reynolds and Strouhal #s ME469B/3/GI 17

Implicit scheme for steady NS equations Compute an intermediate velocity field (eqns are STILL non-linear) Define a velocity and a pressure correction { Using the definition and combining { Derive an equation for u ME469B/3/GI 18

Implicit scheme for steady NS equations Taking the divergence We obtain a Poisson system for the pressure correction Solving it and computing a gradient: So we can update And also the pressure at the next level ME469B/3/GI 19

Implicit pressure-based scheme for NS equations (SIMPLE) SIM PLE: Semi-Implicit M ethod for Pressure-Linked Equations Velocity field (divergence free) available at time n Compute intermediate velocities u* Solve the Poisson equation for the pressure correction p Neglecting the u* term Solve the velocity correction equation for u Neglecting the u* term Compute the new velocity u n+1 and pressure p n+1 fields ME469B/3/GI 20

Implicit pressure-based scheme for NS equations (SIMPLEC) SIM PLE: SIM PLE Corrected/Consistent Velocity field (divergence free) available at time n Compute intermediate velocities u* Solve the Poisson equation for the pressure correction p Use an approximation to u* (neighbor values average u* ~ Σ u ) Solve the velocity correction equation for u Use an approximation to u* Compute the new velocity u n+1 and pressure p n+1 fields ME469B/3/GI 21

Implicit pressure-based scheme for NS equations (PISO) PISO: Pressure Implicit with Splitting Operators Velocity field (divergence free) available at time n Compute intermediate velocities u* and p as in SIMPLE Solve the Poisson equation for the pressure correction p (m+1) u* is obtained from u m Solve the velocity correction equation for u (m+1) u* is obtained from u m Compute the new velocity u n+1 and pressure p n+1 fields ME469B/3/GI 22

SIMPLE, SIMPLEC & PISO - Comments In SIMPLE under-relaxation is required due to the neglect of u* u n+1 = u* + α u u p = p n + α p p There is an optimal relationship α p =1- α u SIMPLEC and PISO do not need under-relaxation SIMPLEC/PISO allow faster convergence than SIMPLE PISO is useful for irregular cells ME469B/3/GI 23

Under-relaxation Is used to increase stability (smoothing) Variable under-relaxation Equation (implicit) under-relaxation ME469B/3/GI 24

Segregated (pressure based) solver in FLUENT FV discretization for mixed elements f Ω The quantities at the cell faces can be computed using several different schemes ME469B/3/GI 25

Discretization of the equations Options for the segregated solver in FLUENT Discretization scheme for convective terms 1 st order upwind (UD) 2 nd order upwind (TVD) 3 rd order upwind (QUICK), only for quad and hex Pressure interpolation scheme (pressure at the cell-faces) linear (linear between cell neighbors) second-order (similar to the TVD scheme for momentum) PRESTO (mimicking the staggered-variable arrangement) Pressure-velocity coupling SIMPLE SIMPLEC PISO ME469B/3/GI 26

Discretization of the convective terms Determine the face value φ(x) interpolated value 1st Order Upwind φ P φ e Depending on the flow direction ONLY Very stable but dissipative P e φ E E Flow direction ME469B/3/GI 27

Discretization of the convective terms Determine the face value φ(x) interpolated value φ P Central differencing (2nd order) φ e Symmetric. Not depending on the flow direction Not dissipative but dispersive (odd derivatives) P e φ E E Flow direction ME469B/3/GI 28

Discretization of the convective terms Determine the face value φ W φ P φ(x) interpolated value 2nd order upwind Depends on the flow direction Less dissipative than 1st order but not bounded (extrema preserving) Possibility of using limiters W φ e φ E P e E Flow direction ME469B/3/GI 29

Discretization of the convective terms Determine the face value Quick (Quadratic Upwind Interpolation for Convection Kinetics) φ W φ P φ(x) interpolated value Formally 3rd order Depends on the flow direction As before it is not bounded W φ e φ E P e E Flow direction ME469B/3/GI 30

Evaluation of gradients Gauss Gradient Least Square Gradient LS system ME469B/3/GI 31

Solution of the equation φ is one of the velocity component and the convective terms must be linearized: This correspond to a sparse linear system for each velocity component Fluent segregated solver uses: Point Gauss-Seidel technique Multigrid acceleration b b P b ME469B/3/GI 32

Grids Multiblock structured - Gambit ME469B/3/GI 33

Grids Hybrid non-conformal - Gambit ME469B/3/GI 34

Grids Hybrid adaptive - non-gambit ME469B/3/GI 35

Grids Polyhedral - non-gambit ME469B/3/GI 36

Set-up of problems with FLUENT Read/Import the grid Define the flow solver option Define the fluid properties Define the discretization scheme Define the boundary condition Define initial conditions Define convergence monitors Run the simulation Analyze the results Command Menus Graphics Window Text Window ME469B/3/GI 37

Solver set-up Define Models Solver Define Controls Solution Example: text commands can be used (useful for batch execution) define/models/solver segregated solve/set/discretization-scheme/mom 1 define/models/steady solve/set/under-relaxation/mom 0.7 ME469B/3/GI 38

Material properties Define Materials Quantities are ALWAYS dimensional ME469B/3/GI 39

Initial and boundary conditions Solve Initialize Initialize Define Boundary Conditions Only constant values can be specified More flexibility is allowed via patching BCs will be discussed case-by-case ME469B/3/GI 40

Initial conditions using patching Adapt Region Mark Solve Initialize Patch Mark a certain region of the domain (cells are stored in a register) Patch desired values for each variable in the region (register) selected ME469B/3/GI 41

Convergence monitors Solve Monitors Residuals Solve Monitors Surface Convergence history of the equation residuals are stored together with the solution User-defined monitors are NOT stored by default ME469B/3/GI 42

Postprocessing Display Contours Plot XY Plot Cell-centered data are Computed This switch interpolates the results on the cell-vertices ME469B/3/GI 43

Detailed post-processing Define additional quantities Define plotting lines, planes and surfaces Compute integral/averaged quantities Define Custom Field Function ME469B/3/GI 44

Fluent GUI - Summary File: I/O Grid: Modify (translate/scale/etc.), Check Define: Models (solver type/multiphase/etc.), Material (fluid properties), Boundary conditions Solve: Discretization, Initial Condition, Convergence Monitors Adapt: Grid adaptation, Patch marking Surface: Create zones (postprocessing/monitors) Display: Postprocessing (View/Countors/Streamlines) Plot: XY Plots, Residuals Report: Summary, Integral Parallel: Load Balancing, Monitors Typical simulation ME469B/3/GI 45

Example Driven cavity Classical test-case for incompressible flow solvers V slip =1 H Problem set-up Material Properties: ρ = 1kg/m 3 µ = 0.001kg/ms Reynolds number: H = 1m, V slip = 1m/s Re = ρv slip H/µ = 1,000 Boundary Conditions: Slip wall (u = V slip ) on top No-slip walls the others Initial Conditions: u = v = p = 0 Solver Set-Up Segregated Solver Discretization: 2 nd order upwind SIMPLE Multigrid V-Cycle Convergence Monitors: Averaged pressure and friction on the no-slip walls ME469B/3/GI 46

Example Driven cavity The effect of the meshing scheme Quad-Mapping 1600 cells Tri-Paving 3600 cells Quad-Paving 1650 cells Edge size on the boundaries is the same ME469B/3/GI 47

Example Driven cavity The effect of the meshing scheme Vorticity Contours Quad-Mapping 1600 cells Tri-Paving 3600 cells Quad-Paving 1650 cells ME469B/3/GI 48

Example Driven cavity The effect of the meshing scheme Convergence Quad-Mapping 1600 cells Tri-Paving 3600 cells Quad-Paving 1650 cells ME469B/3/GI 49

Example Driven cavity The effect of the meshing scheme x-velocity component in the middle of the cavity Quad-Mapping Tri-Paving Quad-Paving Symbols corresponds to Ghia et al., 1982 ME469B/3/GI 50

Example Driven cavity Grid Sensitivity Quad Mapping Scheme Vorticity Contours 1600 cells 6400 cells 25600 cells ME469B/3/GI 51

Example Driven cavity Grid Sensitivity Quad Mapping Scheme x-velocity component in the middle of the cavity 1600 cells 6400 cells 25600 cells Symbols corresponds to Ghia et al., 1982 ME469B/3/GI 52

How to verify the accuracy? Define a reference solution (analytical or computed on a very fine grid) Compute the solution on successively refined grids Define the error as the deviation of the current solution from the reference Compute error norms Plot norms vs. grid size (the slope of the curve gives the order of accuracy) Problems with unstructured grids: 1) Generation of a suitable succession of grids 2) Definition of the grid size ME469B/3/GI 53

Generation of successively refined grid 1) Modify grid dimensions in GAMBIT and regenerate the grid 2) Split all the cells in FLUENT Adapt Region Adapt The region MUST contain the entire domain Element shape & metric properties are preserved ME469B/3/GI 54

Driven Cavity - Error evaluation Reference solution computed on a 320x320 grid (~100,000 cells) Reference solution interpolated on coarse mesh to evaluate local errors Quad-Mapping Tri-Paving Quad-Paving Note that the triangular grid has more than twice as many grid cells ME469B/3/GI 55

Driven Cavity Accuracy evaluation Nominal 1 st order accuracy Nominal 2 nd order accuracy Quad and Pave meshing schemes yield very similar accuracy (close to 2 nd order) Tri meshing scheme yields Slightly higher errors and lower accuracy Note that the definition of Δx is questionable (a change will only translate the curves not change the slope) Error (L2 norm) Quad-Mapping Tri-Paving Quad-Paving (N) -1/2 ME469B/3/GI 56

Driven Cavity Fluent vs. other CFD codes Quad Mapping Scheme (1600 cells) x-velocity component in the middle of the cavity FLUENT StarCD NASA INS2D Symbols corresponds to Ghia et al., 1982 ME469B/3/GI 57

Techniques for the incompressible NS equations Pressure correction schemes Artificial compressibility approach Vorticity-streamfunction formulation Density-based approach ME469B/3/GI 58

Techniques for the incompressible NS equations Vorticity-streamfunction approach It is effectively a change-of-variables; introducing the streamfunction and the vorticity vector the continuity is automatically satisfied and the pressure disappears (if needed the solution of a Poisson-like equation is still required). It is advantageous in 2D because it requires the solution of only two PDEs but the treatment of BCs is difficult. In addition in 3D the PDEs to be solved are six Artificial compressibility approach A time-derivative (of pressure) is added to the continuity equation with the goal of transforming the incompressible NS into a hyperbolic system and then to apply schemes suitable for compressible flows. The key is the presence of a user-parameter β (related to the artificial speed of sound) that determines the speed of convergence to steady state ME469B/3/GI 59

Density-based solvers for the NS equations The equation are written in compressible form and, for low Mach numbers, the flow is effectively incompressible The energy equation is added to link pressure and density through the equation of state In compact (vector) form: ME469B/3/GI 60

Density-based solvers for the NS equations Stiffness occurs because of the disparity between fluid velocity and speed of sound (infinite in zero-mach limit) The equations are solved in terms of the primitive variables Note that the continuity becomes (again) an evolution equation for the pressure where ME469B/3/GI 61

Density-based solvers for the NS equations The time derivative is modified (preconditioned) to force all the eigenvalues to be of the same order (similar to the artificial compressibility approach) The eigenvalues of Γ are where ME469B/3/GI 62

Density-based solvers for the NS equations Limiting cases Compressible flows (ideal gas): Incompressible flows (ideal gas): Incompressible fluids: All eigenvalues are comparable ME469B/3/GI 63

FLUENT density-based solver Explicit Scheme Multistage Runge-Kutta scheme Residual Smoothing Multigrid acceleration ME469B/3/GI 64

FLUENT density-based solver Implicit Scheme Euler (one-step) implicit with Newton-type linearization Point Gauss-Seidel iterations Multigrid acceleration ME469B/3/GI 65

Example Driven cavity Classical test-case for incompressible flow solvers V slip =1 Problem set-up Material Properties: ρ = 1kg/m 3 µ = 0.001kg/ms Reynolds number: H = 1m, V slip = 1m/s Re = ρv slip H/µ = 1,000 Boundary Conditions: Slip wall (u = V slip ) on top No-slip walls the others Solver Set-Up Coupled Solver Discretization: 2 nd order upwind Implicit Multigrid V-Cycle H Initial Conditions: u = v = p = 0 Convergence Monitors: Averaged pressure and friction on the no-slip walls ME469B/3/GI 66

Example Driven cavity Effect of the solver - Quad mesh (1600 cells) Segregated Coupled Vorticity Contours ME469B/3/GI 67

Example Driven cavity Effect of the solver - Quad mesh (1600 cells) x-velocity component in the middle of the cavity Segregated Coupled Symbols corresponds to Ghia et al., 1982 ME469B/3/GI 68

Multigrid acceleration Basic idea: the global error (low-frequency) on a fine grid appears as a local error (high-frequency) on coarse meshes. Why it is important: linear system solver like Gauss-Seidel are effective in removing high-frequency errors but VERY slow for global errors. Note that, on structured, grid line-relaxation (or ADI-type) schemes can be used to improve the performance of Gauss-Seidel; on unstructured grid similar concepts are extremely difficult to implement. Convergence Speed: number of iterations on the finest grid required to reach a given level of convergence is roughly independent on the number of grid nodes (multigrid convergence) ME469B/3/GI 69

Two-grid scheme 1. α smoothings are performed on the fine grid to reduce the highfrequency components of the errors (pre-smoothing, αs) 2. the residual (error) is transferred to next coarser level (restriction, R) 3. γ iterations are performed on this grid level for the correction equation 4. the problem is transferred back to the fine grid (prolongation, P) 5. β smoothings are performed on the fine grid to remove the highfrequency errors introduced on the coarse mesh (post-smoothing, βs) Parameters to be defined are α, β, γ ME469B/3/GI 70

Multigrid Formalism After few sweeps at level h Transfer (restrict) the residual Modified system on the coarse grid Transfer (prolong) the solution Correct Definition of the error and residual ME469B/3/GI 71

Restriction & Prolongation Operators Fine Level Coarse Level ME469B/3/GI 72

Algebraic Multigrid The coarse levels are generated without the use of any discretization on coarse levels; in fact no hierarchy of meshes is needed AMG is effectively a solver for linear systems and the restriction and prolongation operators might be viewed as means to modify (group or split) the coefficient matrix Formally: Geometric multigrid should perform better than AMG because nonlinearity of the problem are retained on coarse levels (correction equation) ME469B/3/GI 73

Multigrid for unstructured meshes Aggregative Coarsening: fine grid cells are collected into a coarse grid element Selective Coarsening: few fine grid cells are retained on the coarser grids ME469B/3/GI 74

Multigrid in Fluent Level Cycling: V, W and F (W+V) V-Cycle W-Cycle ME469B/3/GI 75

Multigrid in Fluent Flexible Cycle Restriction Criteria: A coarser level is invoked as soon as the residual reduction rate is below a certain % Termination Criteria: The corrections are transferred to a finer level as soon as a certain residual level is reached ME469B/3/GI 76

Multigrid in Fluent ME469B/3/GI 77

Algebraic Multigrid Performance Convergence for the segregated solver 1600 cells 6400 cells 25600 cells ME469B/3/GI 78

Algebraic Multigrid Performance Convergence for the coupled solver 1600 cells 6400 cells 25600 cells ME469B/3/GI 79

Periodic Flows Geometrical periodicity Periodicity simply corresponds to matching conditions on the two boundaries The velocity field is periodic BUT the pressure field is not. The pressure gradient drives the flow and is periodic. A pressure JUMP condition on the boundary must be specified ME469B/3/GI 80

Periodic Flows Set-Up In the segregated solver periodicity can be imposed by fixing either the mass flow or the pressure drop In the coupled solver periodicity is enforced by fixing the pressure drop Define Periodic Conditions Define Boundary Conditions Segregated solver Coupled Solver ME469B/3/GI 81

Periodic Flow Example 2D channel An analytical solution of the Navier- Stokes equations (Poiseuille flow) can be derived: y h Solution in the form u=u(y) The pressure drop balances the viscous drag on the walls Navier-Stokes equations Velocity distribution in the channel Averaged velocity ME469B/3/GI 82

Periodic Flow Example 2D channel Problem set-up Solver Set-Up h Periodic boundaries Material Properties: ρ = 1kg/m 3 µ = 0.1kg/ms Reynolds number: h = 2m, V ave = 1m/s Re = ρv slip h/µ = 20 Boundary Conditions: Periodicity Δp=0.3 No-slip top/bottom walls Initial Conditions: u = 1; v = p = 0 Coupled Solver Discretization: 2 nd order upwind SIMPLE Multigrid V-Cycle Exact solution: V ave = 1 ME469B/3/GI 83

Periodic Flow Example 2D channel x-velocity distribution in the channel Cell-centered values showed (no interpolation) Quad-Mapping Tri-Paving ME469B/3/GI 84

Periodic Flow Example 2D channel The error in this case CAN be computed with reference to the exact solution In this case the computed averaged velocity error is plotted Nominal 1 st order accuracy Nominal 2 nd order accuracy (N) -1/2 Quad-Mapping Tri-Paving This test-case is available on the class web site ME469B/3/GI 85

Overview of commercial CFD codes About 30 packages. Three major general-purpose products (covering ~50% of the market): FLUENT, StarCD, CFX Grid Type Pressure Based Density Based Multigrid System Solver Discretization FLUENT Unstructured Mixed SIMPLE SIMPLEC PISO Coupled Implicit Preconditioned Algebraic Geometric Gauss-Seidel UD/TVD QUICK StarCD Unstructured Mixed SIMPLE SIMPISO PISO - - Conjugate Gradient UD/TVD QUICK CD CFX Unstructured Mixed SIMPLE - Algebraic Coupled ILU UD/TVD QUICK CD ME469B/3/GI 86