The Finite Volume Mesh

Similar documents
The Finite Volume Method in

Transient, Source Terms and Relaxation

Solving the Navier-Stokes Equations

The Discretization Process

FMIA. Fluid Mechanics and Its Applications 113 Series Editor: A. Thess. Moukalled Mangani Darwish. F. Moukalled L. Mangani M.

IMPLEMENTATION OF A PARALLEL AMG SOLVER

Draft Notes ME 608 Numerical Methods in Heat, Mass, and Momentum Transfer

5. FVM discretization and Solution Procedure

A finite-volume algorithm for all speed flows

Coupled calculations in OpenFOAM -

AMS 529: Finite Element Methods: Fundamentals, Applications, and New Trends

Solution Methods. Steady State Diffusion Equation. Lecture 04

Introduction to numerical simulation of fluid flows

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

Tdyn-CFD+HT - Validation Case 9

Finite volume method on unstructured grids

ME 608 Numerical Methods in Heat, Mass, and Momentum Transfer

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

THE STOCHASTIC PERTURBATION BASED FINITE VOLUME METHOD FOR THE FLOW PROBLEMS. M. K A M I Ń S K I and R. L. O S S O W S K I

Computation for the Backward Facing Step Test Case with an Open Source Code

INTRODUCTION TO FINITE ELEMENT METHODS

Advanced numerical methods for nonlinear advectiondiffusion-reaction. Peter Frolkovič, University of Heidelberg

1D Heat equation and a finite-difference solver

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

Divergence Formulation of Source Term

Created by T. Madas VECTOR PRACTICE Part B Created by T. Madas

Discrete Projection Methods for Incompressible Fluid Flow Problems and Application to a Fluid-Structure Interaction

Computational Engineering Introduction to Numerical Methods

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

Computational Engineering

Iterative Methods for Linear Systems

Rhie-Chow interpolation in OpenFOAM 1

Accurate and stable finite volume operators for unstructured flow solvers

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

3. Numerical integration

Middle East Technical University Department of Mechanical Engineering ME 413 Introduction to Finite Element Analysis. Chapter 2 Introduction to FEM

Schur Complement Technique for Advection-Diffusion Equation using Matching Structured Finite Volumes

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

Computation of Unsteady Flows With Moving Grids

Interpolation Functions for General Element Formulation

Finite Volume Method

Finite volume method for CFD

FLUID FLOW AND HEAT TRANSFER INVESTIGATION OF PERFORATED HEAT SINK UNDER MIXED CONVECTION 1 Mr. Shardul R Kulkarni, 2 Prof.S.Y.

A discontinuous Galerkin spectral/hp method on hybrid grids

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

2.29 Numerical Fluid Mechanics Spring 2015 Lecture 21

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

Petroleum reservoir simulation using EbFVM: the negative transmissibility issue

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

Simulations of Electrical Arcs: Algorithms, Physical Scales, and Coupling. Henrik Nordborg HSR University of Applied Sciences Rapperswil

A Compact Procedure for Discretization of the Anisotropic Diffusion Operator

Computational Fluid Dynamics-1(CFDI)

The Convergence of Mimetic Discretization

Computation of Incompressible Flows: SIMPLE and related Algorithms

PDE Based Image Diffusion and AOS

Computation Time Assessment of a Galerkin Finite Volume Method (GFVM) for Solving Time Solid Mechanics Problems under Dynamic Loads

On A Comparison of Numerical Solution Methods for General Transport Equation on Cylindrical Coordinates

Mimetic Finite Difference methods

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

Department of Mathematics

Multiple Integrals and Vector Calculus (Oxford Physics) Synopsis and Problem Sets; Hilary 2015

THERMAL HYDRAULIC REACTOR CORE CALCULATIONS BASED ON COUPLING THE CFD CODE ANSYS CFX WITH THE 3D NEUTRON KINETIC CORE MODEL DYN3D

Spatial discretization scheme for incompressible viscous flows

Numerical Methods for Problems with Moving Fronts Orthogonal Collocation on Finite Elements

FVM for Fluid-Structure Interaction with Large Structural Displacements

ME FINITE ELEMENT ANALYSIS FORMULAS

Symmetry and M-matrix issues for the O-method on an Unstructured Grid

ENGI Multiple Integration Page 8-01

1. INTRODUCTION TO CFD SPRING 2019

Available online at ScienceDirect. Procedia Engineering 90 (2014 )

An example of the Rvachev function method

Introduction. Finite and Spectral Element Methods Using MATLAB. Second Edition. C. Pozrikidis. University of Massachusetts Amherst, USA

Numerical Solutions to Partial Differential Equations

Exercises for Unit I (Topics from linear algebra)

Efficient simulation techniques for incompressible two-phase flow

Effect Analysis of Volume Fraction of Nanofluid Al2O3-Water on Natural Convection Heat Transfer Coefficient in Small Modular Reactor

V (r,t) = i ˆ u( x, y,z,t) + ˆ j v( x, y,z,t) + k ˆ w( x, y, z,t)

Exercises for Unit I (Topics from linear algebra)

Vector and scalar variables laminar natural convection in 2D geometry arbitrary angle of inclination

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

Basic Aspects of Discretization

A hybrid pressure density-based algorithm for the Euler equations at all Mach number regimes

Chapter 6. Finite Element Method. Literature: (tiny selection from an enormous number of publications)

Multiple Integrals and Vector Calculus: Synopsis

Scope and Sequence: National Curriculum Mathematics from Haese Mathematics (7 10A)

1. Introduction. The Stokes problem seeks unknown functions u and p satisfying

PDE Solvers for Fluid Flow

Numerical Solution of Partial Differential Equations governing compressible flows

Mathematics Research Report No. MRR 003{96, HIGH RESOLUTION POTENTIAL FLOW METHODS IN OIL EXPLORATION Stephen Roberts 1 and Stephan Matthai 2 3rd Febr

Essay 4. Numerical Solutions of the Equations of Heat Transfer and Fluid Flow

EQUADIFF 9. Mária Lukáčová-Medviďová Numerical solution of compressible flow. Terms of use:

Cave Model. Jim Emery 9/10/ A Complete Polyhedron Model of the Cave 4. 5 Clipping the Model With A Plane to Model Water Level 5

Introduction to Heat Transfer Analysis

Calculating equation coefficients

2.29 Numerical Fluid Mechanics Fall 2011 Lecture 5

Contents Introduction Energy nalysis of Convection Equation 4 3 Semi-discrete nalysis 6 4 Fully Discrete nalysis 7 4. Two-stage time discretization...

Development of an explicit pressure-based unstructured solver for three-dimensional incompressible flows with graphics hardware acceleration

Part I. Discrete Models. Part I: Discrete Models. Scientific Computing I. Motivation: Heat Transfer. A Wiremesh Model (2) A Wiremesh Model

TRANSIENT PROCESS SIMULATION OF HEAT TRANSFER IN LASER BEAM WELDING WITH AN EQUIVALENT HEAT SOURCE

Shape Optimisation of Axisymmetric Scramjets

Transcription:

FMIA F Moukalled L Mangani M Darwish An Advanced Introduction with OpenFOAM and Matlab This textbook explores both the theoretical foundation of the Finite Volume Method (FVM) and its applications in Computational Fluid Dynamics (CFD) Readers will discover a thorough explanation of the FVM numerics and algorithms used in the simulation of incompressible and compressible fluid flows, along with a detailed examination of the components needed for the development of a collocated unstructured pressure-based CFD solver Two particular CFD codes are explored The first is ufvm, a three-dimensional unstructured pressure-based finite volume academic CFD code, implemented within Matlab The second is OpenFOAM, an open source framework used in the development of a range of CFD programs for the simulation of industrial scale flow problems Moukalled Mangani Darwish Fluid Mechanics and Its Applications 113 Series Editor: A Thess The Finite Volume Method in Computational Fluid Dynamics With over 220 figures, numerous examples and more than one hundred exercises on FVM numerics, programming, and applications, this textbook is suitable for use in an introductory course on the FVM, in an advanced course on CFD algorithms, and as a reference for CFD programmers and researchers Fluid Mechanics and Its Applications F Moukalled L Mangani M Darwish The Finite Volume Method in Computational Fluid Dynamics The Finite Volume Method in Computational Fluid Dynamics An Advanced Introduction with OpenFOAM and Matlab Engineering ISBN 78-3-31-16873- 78331 16873 The Finite Volume Mesh Chapter 06

The Process Physical Domain Physical Phenomena Domain Modeling Physical Modeling Set of Governing Equations Defined on a Computational Domain Domain Discretization Equation Discretization Structured Grids Cartesian, Non-Orthogonal) Block Structured grids Unstructured Grids Chimera Grids System of Algebraic Equations Finite Difference Finite Volume Finite Element Boundary Element Solution Method Numerical Solutions Combinations of Multigrid Methods Iterative Solvers Coupled-Uncoupled 2

heat sink microprocessor heat spreader base Domain Modeling Physical Modeling heat sink heat spreader base T sink insulated ( k T )!q microprocessor T microprocessor Domain Discretization Equations Discretization Patch#2 Patch#1 ( ρφ) + ( ρvφ) t ( Γ φ ) + Q transient term convection term a C φ C + diffusion term F NB C source term a F φ F b C ( ) Patch#3 Solution Method 3

Domain Modeling Physical Modeling heat sink heat spreader base Tsink Insulated Q simk Qsource ( k T ) Q microprocessor Tmicroprocessor Domain Discretization Patch#2 Patch#1 Equations Discretization Patch#3 ( ) ρφ + ( ρvφ) t ( Γ φ ) + Q transient term convection term a C φ C + diffusion term NB( C) source term a NB φ NB b P Solution Method 4

Domain Discretization T sink Insulated node element node element T microprocessor face face (a) (b) (c) Figure 61 (a) Domain of interest, (b) domain discretized using a uniform grid system, and (c) domain discretized using an unstructured grid system with triangular elements 5

Gradient Computation Given a field defined over a mesh, we want to compute the field gradient given φ C compute φ C φ C V C V C φ dv f S f1 φ C V C! V C φ ds φ C V C V C φ ds φ C 1 V C ( ) f nb C φ f S f 6

Gradient Computation F 1 S f F 5 S f1 F 2 C f F 3 F 4 φ i, j 1 V i, j ( ) f nb i, j φ f S f φ f f ( φ C,φ ) F φ f g F φ F + g C φ C 7

Structured Grid Nj j +1 j j 1 1 1 i 1 i i +1 Ni Figure 63 local indices and topology 8

Indices a C( 1)!!! a C( 2)!!! a C( 3)!!!!!!!!!!!! a C( n 1)! Nj j +1 j j 1 global index local indices ( ) Ni n i + j 1 a F( n Ni) a F( n 1) a C( n) a F( n+1) a F( n+ni)!! a C( n+1)!!!!!!!!!!!!!!!!!!!!! a C( NiNj) φ 1 φ 2 φ n Ni φ n 1 φ n φ n+1 φ n+ni φ NiNj b ( 1) b ( 2) b ( n Ni) b ( n 1) b ( n) b ( n+1) b ( n+ni) b ( NiNj) 1 1 i 1 i i +1 Ni Figure 64 Local versus global indices

Structured Mesh S i 1/2, j S1( i, j) Element( i, j) φ i 1, j+1 φ i 1, j φ i, j+1 φ ij φ i+1, j+1 φ i+1, j (a) local indexing S2( i, j) φ i 1, j 1 φ i, j 1 φ i+1, j 1 S i, j 1/2 φ n-1+ni φ n+ni φ n+1+ni φ n φ n-1 φ n+1 b) global indexing Figure 65 Geometric Information φ n-1-ni φ n-ni φ n+1-ni φ NW φ N φ NE Figure 66 Local versus discretization versus global indices φ W φ SW φ C φ S φ E φ SE (c) discretization indexing 10

Unstructured Mesh indexing 28 21 20 1 26 27 22 18 17 7 25 6 24 8 11 23 10 15 14 12 16 13 5 1 2 3 4 F 4 11 F 6 S f6 F 5 S f5 C S f4 S f3 F 3 Element Connectivity Neighbours Faces 1 2 3 5 6 [10 11 8 6 1 2] 1 2 3 4 5 6 [16 22 23 15 11 10] local index global index local index global index 6 8 15 23 22 16 10 F 1 S f1 S f2 F 2 Nodes 1 2 3 4 5 6 local index [21 22 21 14 13 12] global index 1 11 10 2 (a) Figure 68 Element connectivity and face orientation using (a) local indices and (b) global indices (b) 11

Owners and Neighbours owner owner face S f neighbour face neighbour S f (a) (b) Fig 6 Owners, neighbors, and faces for (a) 2D and (b) 3D elements 12

Connectivities 8 23 22 11 Face Connectivity 1 2 local index Elements [8 ] global index 11 Face Connectivity 1 2 local index Elements [ 11] global index 15 8 23 22 16 Face Connectivity 1 2 local index Elements [6 ] global index 6 6 15 1 11 10 2 16 10 10 Face Connectivity 1 2 local index Elements [ 10] global index Face Connectivity 1 2 local index Elements [1 ] global index 11 1 2 10 Face Connectivity 1 2 local index Elements [2 ] global index Figure 610 An example of face, element, and node connectivities for unstructured grids 13

Unstructured Mesh 28 21 20 1 26 27 22 18 17 7 25 6 24 8 11 23 10 15 14 12 16 13 5 1 2 3 4 Figure 611 An unstructured mesh system 14

Non-Orthogonality N θ S f1f C Figure 612 Angle between surface vector and vector joining the centroids of the owner and neighbor elements 15

Elements Tetrahedron Hexahedron Prism Polyhedron Figure 613 Three-dimensional element types Quadrilateral Triangle Pentagon Figure 614 Three-dimensional face types or two-dimensional element types 16

Element INformation sub-triangle centroid polygon center centroid Figure 615 The geometric centre and centroid of a polygon S f x G 1 k ( x CE ) f k i1 x i S t t~sub triangles( C) ( x CE ) t *S t t~sub triangles( C) S f S 1 ( 2 r r 2 1) ( r 3 r 1 ) 1 2 i j k x 2 x 1 y 2 y 1 z 2 z 1 x 3 x 1 y 3 y 1 z 3 z 1 S x i + S y j + S z k 17

G x G 1 k k i1 x i G d Gf ( x CE ) pyramid 075( x CE ) f + 025( x G ) pyramid d Cf f S S f f Figure 617 A sub-element pyramid V pyramid d S Gf f 3 V C V pyramid ~Sub pyramids(c ) ( x CE ) pyramid V pyramid ~Sub pyramids( C) V C ( x CE ) C x C 18

Face Weights φ F φ f φ f g f φ F + ( f 1 g f )φ C g f d Cf d Cf + d ff φ C C F Figure 618 One dimensional mesh system g f V C V C + V F C f F Figure 61 Axisymmetric grid system g f d Cf e f d Cf e f + d ff e f e f S f S f C f f F C d Cf f f f d ff e f S f F 1 Figure 620 Two dimensional control volume