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

Similar documents
Transient, Source Terms and Relaxation

The Finite Volume Mesh

Solving the Navier-Stokes Equations

Getting started: CFD notation

The Finite Volume Method in

AE/ME 339. K. M. Isaac Professor of Aerospace Engineering. 12/21/01 topic7_ns_equations 1

AE/ME 339. Computational Fluid Dynamics (CFD) K. M. Isaac. Momentum equation. Computational Fluid Dynamics (AE/ME 339) MAEEM Dept.

In this section, mathematical description of the motion of fluid elements moving in a flow field is

M E 320 Professor John M. Cimbala Lecture 10

Chapter 5. The Differential Forms of the Fundamental Laws

Chapter 2 Review of Vector Calculus

A DARK GREY P O N T, with a Switch Tail, and a small Star on the Forehead. Any

Numerical Modelling in Geosciences. Lecture 6 Deformation

PEAT SEISMOLOGY Lecture 2: Continuum mechanics

THE I Establiifrad June, 1893

Cartesian Tensors. e 2. e 1. General vector (formal definition to follow) denoted by components

Chapter 4: Fluid Kinematics

EKC314: TRANSPORT PHENOMENA Core Course for B.Eng.(Chemical Engineering) Semester II (2008/2009)

Closed-Form Solution Of Absolute Orientation Using Unit Quaternions

VECTORS, TENSORS AND INDEX NOTATION

MECH 5312 Solid Mechanics II. Dr. Calvin M. Stewart Department of Mechanical Engineering The University of Texas at El Paso

7a3 2. (c) πa 3 (d) πa 3 (e) πa3

Course 2BA1: Hilary Term 2007 Section 8: Quaternions and Rotations

A Study on Numerical Solution to the Incompressible Navier-Stokes Equation

Lecture 8 Analyzing the diffusion weighted signal. Room CSB 272 this week! Please install AFNI

LOWELL JOURNAL. MUST APOLOGIZE. such communication with the shore as Is m i Boimhle, noewwary and proper for the comfort

Chapter 9: Differential Analysis

CHAPTER 7 DIV, GRAD, AND CURL

Stress, Strain, Mohr s Circle

Candidates must show on each answer book the type of calculator used. Log Tables, Statistical Tables and Graph Paper are available on request.

Rigid body simulation. Once we consider an object with spatial extent, particle system simulation is no longer sufficient

The Discretization Process

Multiple Integrals and Vector Calculus: Synopsis

Math review. Math review

Chapter 9: Differential Analysis of Fluid Flow

MULTIVARIABLE CALCULUS

By drawing Mohr s circle, the stress transformation in 2-D can be done graphically. + σ x σ y. cos 2θ + τ xy sin 2θ, (1) sin 2θ + τ xy cos 2θ.

CH.3. COMPATIBILITY EQUATIONS. Multimedia Course on Continuum Mechanics

PEAT SEISMOLOGY Lecture 12: Earthquake source mechanisms and radiation patterns II

LOWELL WEEKLY JOURNAL

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

Properties of the stress tensor

GG303 Lecture 6 8/27/09 1 SCALARS, VECTORS, AND TENSORS

Chapter 2: Basic Governing Equations

Rigid body dynamics. Basilio Bona. DAUIN - Politecnico di Torino. October 2013

Continuum Mechanics. Continuum Mechanics and Constitutive Equations

Module 2: Governing Equations and Hypersonic Relations

Math Review: Vectors and Tensors for Rheological Applications

Name: SOLUTIONS Date: 11/9/2017. M20550 Calculus III Tutorial Worksheet 8

A Simple Turbulence Closure Model. Atmospheric Sciences 6150

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

INTEGRALSATSER VEKTORANALYS. (indexräkning) Kursvecka 4. and CARTESIAN TENSORS. Kapitel 8 9. Sidor NABLA OPERATOR,

A Simple Turbulence Closure Model

Governing Equations of Fluid Dynamics

Chapter y. 8. n cd (x y) 14. (2a b) 15. (a) 3(x 2y) = 3x 3(2y) = 3x 6y. 16. (a)

Summary for Vector Calculus and Complex Calculus (Math 321) By Lei Li

JJMIE Jordan Journal of Mechanical and Industrial Engineering

Inner Product Spaces 5.2 Inner product spaces

Lecture 3: Vectors. Any set of numbers that transform under a rotation the same way that a point in space does is called a vector.

Numerical Modelling in Geosciences. Lecture 1 Introduction and basic mathematics for PDEs

Vector Calculus, Maths II

Lesson Rigid Body Dynamics

Neatest and Promptest Manner. E d i t u r ami rul)lihher. FOIt THE CIIILDIIES'. Trifles.

Math 11 Fall 2018 Practice Final Exam

Study on Numerical Simulation Method of Gust Response in Time Domain Jun-Li WANG

ACCEPTS HUGE FLORAL KEY TO LOWELL. Mrs, Walter Laid to Rest Yesterday

M273Q Multivariable Calculus Spring 2017 Review Problems for Exam 3

Solving Einstein s Equation Numerically III

NDT&E Methods: UT. VJ Technologies CAVITY INSPECTION. Nondestructive Testing & Evaluation TPU Lecture Course 2015/16.

PRACTICE PROBLEMS. Please let me know if you find any mistakes in the text so that i can fix them. 1. Mixed partial derivatives.

Chain Rule. MATH 311, Calculus III. J. Robert Buchanan. Spring Department of Mathematics

12. Stresses and Strains

Multivariable Calculus

Continuum mechanism: Stress and strain

Uniformity of the Universe

Lagrange Multipliers

CH.2. DEFORMATION AND STRAIN. Continuum Mechanics Course (MMC) - ETSECCPB - UPC

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

MATH 332: Vector Analysis Summer 2005 Homework

Two Posts to Fill On School Board

Topics. CS Advanced Computer Graphics. Differential Geometry Basics. James F. O Brien. Vector and Tensor Fields.

i.e. the conservation of mass, the conservation of linear momentum, the conservation of energy.

Group, Rings, and Fields Rahul Pandharipande. I. Sets Let S be a set. The Cartesian product S S is the set of ordered pairs of elements of S,

OCN/ATM/ESS 587. The wind-driven ocean circulation. Friction and stress. The Ekman layer, top and bottom. Ekman pumping, Ekman suction

Exercises for Multivariable Differential Calculus XM521

3D Elasticity Theory

Chapter 6: Vector Analysis

A Brief Revision of Vector Calculus and Maxwell s Equations

16.3 Conservative Vector Fields

Divergence Theorem Fundamental Theorem, Four Ways. 3D Fundamental Theorem. Divergence Theorem

Mechanics of materials Lecture 4 Strain and deformation

Math 212. Practice Problems for the Midterm 3

f. D that is, F dr = c c = [2"' (-a sin t)( -a sin t) + (a cos t)(a cost) dt = f2"' dt = 2

INHOMOGENEOUS, NON-LINEAR AND ANISOTROPIC SYSTEMS WITH RANDOM MAGNETISATION MAIN DIRECTIONS

α 2 )(k x ũ(t, η) + k z W (t, η)

Review Sheet for the Final

Sections minutes. 5 to 10 problems, similar to homework problems. No calculators, no notes, no books, no phones. No green book needed.

1 Stress and Strain. Introduction

x + ye z2 + ze y2, y + xe z2 + ze x2, z and where T is the

Introduction to Vector Calculus (29) SOLVED EXAMPLES. (d) B. C A. (f) a unit vector perpendicular to both B. = ˆ 2k = = 8 = = 8

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 978-3-319-16873-9 9 783319 168739 Mathematical Review Chapter 02

Vector Operations z v = ui + vj+ wk v = u v w v T = u v w v = u 1 w 1 = v 2 2 2 = u + v + w + = u 1 + + w 1 + x u v w y sv = s( ui + vj+ wk) = sui + svj+ swk = su sv sw 2

Dot Product = cos(, ) i i = j j = k k = 1 i j = i k = j i = j k = k i = k j = 0 α = cos( α) = ( u 1 i + j+ w 1 k) ( i + j+ k) = u 1 + + w 1 = cos α ( ) vector magnitude unit vector α v = v v e v = v v 3

Cross Product v 3 = = sin(, ) = ( u 1 i + j+ w 1 k ) ( i + j+ k ) = u 1 i i + u 1 i j+ u 1 i k + j i + j j+ j k +w 1 k i + w 1 k j+ w 1 k k ( ) ( ) + 0 + i ( ) + w 1 0 = u 1 0 + u 1 k + u 1 j + k +w 1 j+ w 1 i determinant notation = v 3 = α i j k u 1 w 1 = area v 3 = sin α i i = j j = k k = 0 i j = k = j i j k = i = k j k i = j = i k w 1 w 1 u 1 u 1 ( ) 4

Scalar Triple Product volume ( ) v 3 u 1 w 1 ( ) = v 3 u 3 v 3 w 3 β v 3 α The scalar triple product represent the volume defined by the paralleled formed by the base vector 5

Gradients Nabla operator Gradient = i x + j y + k z s C e l l directional derivative s = s( x, y,z) = ds dl = s e l φ = i φ x + j φ y + k φ i k j x y Directional Derivative ds dl = s e = s cos s,e l ( l ) 6

Divergence divergence v = x x + y y + z divergence of the gradient of a scalar is the Laplacian of the scalar curl = 0 curl ( s) = 2 s = 2 s x + 2 s 2 y + 2 s 2 2 φ = ( φ) = 2 φ == 2 v x x 2 + 2 v y y 2 + 2 v z 2 v = x i + y j+ k = i j k x y u v w ( ui + vj+ wk) = y i + u x j+ x u y k divergence = 0 7

Tensors τ yy τ yx τ = τ xx τ xy τ xz τ yx τ yy τ yz τ zx τ zy τ zz τ xx τ xy τ xz τ yz τ zy τ zx τ zz τ = iiτ xx + ijτ xy + ikτ xz + jiτ yx + jjτ yy + jkτ yz + kiτ zx + kjτ zy + kkτ zz 8

Other Tensors { vv} = ( ui + vj+ wk) ( ui + vj+ wk) = iiuu + ijuv + ikuw + jivu + jjvv + jkvw + kiwu + kjwv + kkww { vv} = uu uv uw vu vv vw wu wv ww Velocity gradient { v} = x i + y j+ k = ii u + ij + ik x x x + ji u + jj + jk y y y + ki u + kj + kk ( ui + vj+ wk) 9 { v} = u x u y u x y x y

Tensor Operations Σ = σ + τ = σ xx + τ xx σ xy + τ xy σ xz + τ xz σ yx + τ yx σ yy + τ yy σ yz + τ yz σ zx + τ zx σ zy + τ zy σ zz + τ zz { sτ } = sτ xx sτ xy sτ xz sτ yx sτ yy sτ yz sτ zx sτ zy sτ zz τ v = iiτ + ijτ + ikτ + jiτ + xx xy xz yx ui + vj+ wk jjτ yy + jkτ yz + kiτ zx + kjτ zy + kkτ zz ( ) τ v = τ xx τ xy τ xz τ yx τ yy τ yz τ zx τ zy τ zz u v w 10 = τ xx u + τ xy v + τ xz w τ yx u + τ yy v + τ yz w τ zx u + τ zy v + τ zz w

Tensor Operations divergence of a tensor τ = τ xx x + τ yx y + τ zx i + τ xy x + τ yy y + τ zy j+ τ xz x + τ yz y + τ zz k double dot product of two tensors ( τ : v) = ii u iiτ xx + ijτ xy + ikτ xz + x jiτ yx + jjτ yy + jkτ yz + : ji u kiτ zx + kjτ zy + kkτ y zz ki u u ( τ : v) = τ xx x + τ xy τ yy y + τ yz u y + τ xz + τ zx u + τ yx 11 x + x + τ zy + ij x + jj y + kj y + τ zz + jk y + + kk + ik x +

Tensor Operations Deformation tensor D( v) = 1 2 Spin tensor ( v + vt ) = ) + + + + + + + + * + 1 # 2 $ % 1 2 # $ % x x x y + y x x + z x & ' ( & ' ( 1 # 2 $ % 1 # 2 $ % y x + x y y y y + z y & ' ( 1 2 # $ % 1 # 2 $ % z x + x z y + y & z ' ( symmetric part of &, ' (... &. ' (.... -. v S ( v) = v D( v) = 1 2 ( v vt ) Skew-symmetric part of v trace( v) = v 12

Gradients Theorem for Line Integrals C z r(t) C s dr ( ) s( r( a) ) = s r( b) r(a) r(b) y x The gradient theorem for line integrals relates a line integral to the values of a function at its endpoints 13

Green s Theorem Convert a volume integral to a surface integral and reduce the order of equations by one ( udx + vdy) = x u! C R y dxdy C dr = dxi + dyj v = ui + vj ds = dxdyk! v dr = v ds C R R dr ds 14

Stoke s Theorem v ds =! v dr S C z S ds v y x C 15

Divergence Theorem ( v)dv =! v nds V S z ds S ds = nds y x v V 16

Leibniz Integral Rule d dt b( t) φ( x,t)dx = a( t) b( t) φ t dx a( t)!" # $# Term I ( ) b + φ b( t),t!#"# $ t Term II ( ) a φ a( t),t! #" ## $ t Term III φ φ( x,t + Δt) Term I φ( x,t) Term III Term II a( t) a( t + Δt) b( t) b( t + Δt) t 17