Introduction to numerical simulation of fluid flows

Slides:



Advertisements
Similar presentations
CFD II w/Dr. Farouk By: Travis Peyton7/18/2015 Modifications to the SIMPLE Method for Non-Orthogonal, Non-Staggered Grids in k- E Turbulence Flow Model.
Advertisements

Integration Relation for Control Volume
Navier-Stokes.
Continuity Equation. Continuity Equation Continuity Equation Net outflow in x direction.
Convection.
Computational Fluid Dynamics
Turbulent Models.  DNS – Direct Numerical Simulation ◦ Solve the equations exactly ◦ Possible with today’s supercomputers ◦ Upside – very accurate if.
Fluent Lecture Dr. Thomas J. Barber
Lectures on CFD Fundamental Equations
Equations of Continuity
1 MECH 221 FLUID MECHANICS (Fall 06/07) Tutorial 7.
Coupled Fluid-Structural Solver CFD incompressible flow solver has been coupled with a FEA code to analyze dynamic fluid-structure coupling phenomena CFD.
1 Internal Seminar, November 14 th Effects of non conformal mesh on LES S. Rolfo The University of Manchester, M60 1QD, UK School of Mechanical,
Basic Governing Differential Equations
Fluid Kinematics Fluid Dynamics . Fluid Flow Concepts and Reynolds Transport Theorem ä Descriptions of: ä fluid motion ä fluid flows ä temporal and spatial.
1 MECH 221 FLUID MECHANICS (Fall 06/07) Tutorial 6 FLUID KINETMATICS.
CE 1501 CE 150 Fluid Mechanics G.A. Kallio Dept. of Mechanical Engineering, Mechatronic Engineering & Manufacturing Technology California State University,
LES of Turbulent Flows: Lecture 3 (ME EN )
Modeling, Simulating and Rendering Fluids Thanks to Ron Fediw et al, Jos Stam, Henrik Jensen, Ryan.
Simulation and Animation
© 2011 Autodesk Freely licensed for use by educational institutions. Reuse and changes require a note indicating that content has been modified from the.
FUNDAMENTAL EQUATIONS, CONCEPTS AND IMPLEMENTATION
Conservation Laws for Continua
Hydraulic Routing in Rivers
© Fluent Inc. 9/5/2015L1 Fluids Review TRN Solution Methods.
CFD Modeling of Turbulent Flows
Lecture Objectives: -Define turbulence –Solve turbulent flow example –Define average and instantaneous velocities -Define Reynolds Averaged Navier Stokes.
Chapter 9: Differential Analysis of Fluid Flow SCHOOL OF BIOPROCESS ENGINEERING, UNIVERSITI MALAYSIA PERLIS.
PTT 204/3 APPLIED FLUID MECHANICS SEM 2 (2012/2013)
Page 1 JASS 2004 Tobias Weinzierl Sophisticated construction ideas of ansatz- spaces How to construct Ritz-Galerkin ansatz-spaces for the Navier-Stokes.
A conservative FE-discretisation of the Navier-Stokes equation JASS 2005, St. Petersburg Thomas Satzger.
A particle-gridless hybrid methods for incompressible flows
Governing equations: Navier-Stokes equations, Two-dimensional shallow-water equations, Saint-Venant equations, compressible water hammer flow equations.
Mathematical Equations of CFD
1 LES of Turbulent Flows: Lecture 6 (ME EN ) Prof. Rob Stoll Department of Mechanical Engineering University of Utah Spring 2011.

Mass Transfer Coefficient
Distributed Flow Routing Surface Water Hydrology, Spring 2005 Reading: 9.1, 9.2, 10.1, 10.2 Venkatesh Merwade, Center for Research in Water Resources.
Mathematical Background
Measurements in Fluid Mechanics 058:180:001 (ME:5180:0001) Time & Location: 2:30P - 3:20P MWF 218 MLH Office Hours: 4:00P – 5:00P MWF 223B-5 HL Instructor:
© Fluent Inc. 11/24/2015J1 Fluids Review TRN Overview of CFD Solution Methodologies.
Hydraulic Routing in Rivers Reference: HEC-RAS Hydraulic Reference Manual, Version 4.1, Chapters 1 and 2 Reading: HEC-RAS Manual pp. 2-1 to 2-12 Applied.
Vectors n v What is the projection of the vector (1, 3, 2) onto the plane described by ? Louisiana Tech University Ruston, LA
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.
Ch 4 Fluids in Motion.
FALL 2015 Esra Sorgüven Öner
Discretization Methods Chapter 2. Training Manual May 15, 2001 Inventory # Discretization Methods Topics Equations and The Goal Brief overview.
MAE 5360: Hypersonic Airbreathing Engines
Lecture Objectives: Define 1) Reynolds stresses 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 LES of Turbulent Flows: Lecture 7 (ME EN ) Prof. Rob Stoll Department of Mechanical Engineering University of Utah Spring 2011.
Direct numerical simulation has to solve all the turbulence scales from the large eddies down to the smallest Kolmogorov scales. They are based on a three-dimensional.
Chapter 1: Basic Concepts
Objective Introduce Reynolds Navier Stokes Equations (RANS)
Chapter 4 Fluid Mechanics Frank White
Convection-Dominated Problems
Computational Fluid Dynamics(CFD)
Lecture Objectives: Review Explicit vs. Implicit
© Fluent Inc. 1/10/2018L1 Fluids Review TRN Solution Methods.
Distributed Flow Routing
Estuarine models: what is under the hood?
Objective Review Reynolds Navier Stokes Equations (RANS)
Lecture Objectives: Advance discretization methods
Objective Numerical methods.
Fluid Kinematics Fluid Dynamics.
Objective Numerical methods Finite volume.
Lecture Objectives Review for exam Discuss midterm project
Introduction to Fluid Dynamics & Applications
Objective Reynolds Navier Stokes Equations (RANS) Numerical methods.
MAE 3241: AERODYNAMICS AND FLIGHT MECHANICS
Presentation transcript:

Introduction to numerical simulation of fluid flows JASS 04, St. Petersburg Mónica de Mier Torrecilla Technical University of Munich Finite Volume Method, JASS 04

Overview Introduction Fluids and flows Numerical Methods Mathematical description of flows Finite volume method Turbulent flows Example with CFX Finite Volume Method, JASS 04

Introduction In the past, two approaches in science: Theoretical Experimental Computer Numerical simulation Computational Fluid Dynamics (CFD) Expensive experiments are being replaced by numerical simulations : - cheaper and faster - simulation of phenomena that can not be experimentally reproduced (weather, ocean, ...) Finite Volume Method, JASS 04

Fluids and flows Liquids and gases obey the same laws of motion Most important properties: density and viscosity A flow is incompressible if density is constant. liquids are incompressible and gases if Mach number of the flow < 0.3 Viscosity: measure of resistance to shear deformation Finite Volume Method, JASS 04

Far from solid walls, effects of viscosity neglectable Fluids and flows (2) Far from solid walls, effects of viscosity neglectable inviscid (Euler) flow in a small region at the wall boundary layer Important parameter: Reynolds number ratio of inertial forces to friction forces creeping flow laminar flow turbulent flow Finite Volume Method, JASS 04

Fluids and flows (3) Lagrangian description follows a fluid particle as it moves through the space Eulerian description focus on a fixed point in space and observes fluid particles as they pass Both points of view related by the transport theorem Finite Volume Method, JASS 04

Numerical Methods Navier-Stokes equations analytically solvable only in special cases approximate the solution numerically use a discretization method to approximate the differential equations by a system of algebraic equations which can be solved on a computer Finite Differences (FD) Finite Volume Method (FVM) Finite Element Method (FEM) Finite Volume Method, JASS 04

Numerical methods, grids Structured grid all nodes have the same number of elements around it only for simple domains Unstructured grid for all geometries irregular data structure Block-structured grid Finite Volume Method, JASS 04

Numerical methods, properties Consistency Truncation error : difference between discrete eq and the exact one Truncation error becomes zero when the mesh is refined. Method order n if the truncation error is proportional to or Stability Errors are not magnified Bounded numerical solution Finite Volume Method, JASS 04

Numerical methods, properties (2) Convergence Discrete solution tends to the exact one as the grid spacing tends to zero. Lax equivalence theorem (for linear problems): Consistency + Stability = Convergence For non-linear problems: repeat the calculations in successively refined grids to check if the solution converges to a grid-independent solution. Finite Volume Method, JASS 04

Mathematical description of flows Conservation of mass Conservation of momentum Conservation of energy of a fluid particle (Lagrangian point of view). For computations is better Eulerian (fluid control volume) Transport theorem volume of fluid that moves with the flow Finite Volume Method, JASS 04

Navier-Stokes equations Finite Volume Method, JASS 04

Fluid element infinitesimal fluid element 6 faces: North, South, East, West, Top, Bottom Systematic account of changes in the mass, momentum and energy of the fluid element due to flow across the boundaries and the sources inside the element fluid flow equations Finite Volume Method, JASS 04

Transport equation General conservative form of all fluid flow equations for the variable Transport equation for the property Finite Volume Method, JASS 04

Transport equation (2) Integration of transport equation over a CV Using Gauss divergence theorem, Finite Volume Method, JASS 04

Boundary conditions Wall : no fluid penetrates the boundary No-slip, fluid is at rest at the wall Free-slip, no friction with the wall Inflow (inlet): convective flux prescribed Outflow (outlet): convective flux independent of coordinate normal to the boundary Symmetry Finite Volume Method, JASS 04

Boundary conditions (2) Finite Volume Method, JASS 04

Finite Volume Method Starting point: integral form of the transport eq (steady) control volume CV Finite Volume Method, JASS 04

Approximation of volume integrals simplest approximation: exact if q constant or linear Interpolation using values of q at more points Assumption q bilinear Finite Volume Method, JASS 04

Approximation of surface integrals Net flux through CV boundary is sum of integrals over the faces velocity field and density are assumed known is the only unknown we consider the east face Finite Volume Method, JASS 04

Approximation of surface integrals (2) Values of f are not known at cell faces interpolation Finite Volume Method, JASS 04

Interpolation we need to interpolate f the only unknown in f is Different methods to approximate and its normal derivative: Upwind Differencing Scheme (UDS) Central Differencing Scheme (CDS) Quadratic Upwind Interpolation (QUICK) Finite Volume Method, JASS 04

Interpolation (2) Upwind Differencing Scheme (UDS) Approximation by its value the node upstream of ‘e’ first order unconditionally stable (no oscillations) numerically diffusive Finite Volume Method, JASS 04

Interpolation (3) Central Differencing Scheme (CDS) Linear interpolation between nearest nodes second order scheme may produce oscillatory solutions Finite Volume Method, JASS 04

Interpolation (4) Quadratic Upwind Interpolation (QUICK) Interpolation through a parabola: three points necessary P, E and point in upstream side g coefficients in terms of nodal coordinates thrid order Finite Volume Method, JASS 04

Linear equation system one algebraic equation at each control volume matrix A sparse Two types of solvers: Direct methods Indirect or iterative methods Finite Volume Method, JASS 04

Linear eq system, direct methods Gauss elimination LU decomposition Tridiagonal Matrix Algorithm (TDMA) - number of operations for a NxN system is - necessary to store all the coefficients Finite Volume Method, JASS 04

Linear eq system, iterative methods Jacobi method Gauss-Seidel method Successive Over-Relaxation (SOR) Conjugate Gradient Method (CG) Multigrid methods - repeated application of a simple algorithm - not possible to guarantee convergence - only non-zero coefficients need to be stored Finite Volume Method, JASS 04

Time discretization For unsteady flows, initial value problem f discretized using finite volume method time integration like in ordinary differential equations right hand side integral evaluated numerically Finite Volume Method, JASS 04

Time discretization (2) Finite Volume Method, JASS 04

Time discretization (3) Types of time integration methods Explicit, values at time n+1 computed from values at time n Advantages: - direct computation without solving system of eq - few number of operations per time step Disadvantage: strong conditions on time step for stability Implicit, values at time n+1 computed from the unknown values at time n+1 Advantage: larger time steps possible, always stable Disadv: - every time step requires solution of a eq system - more number of operations Finite Volume Method, JASS 04

Coupling of pressure and velocity Up to now we assumed velocity (and density) is known Momentum eq from transport eq replacing by u, v, w Finite Volume Method, JASS 04

Coupling of pressure and velocity (2) Non-linear convective terms Three equations are coupled No equation for the pressure Problems in incompressible flow: coupling between pressure and velocity introduces a constraint Location of variables on the grid: Colocated grid Staggered grid Finite Volume Method, JASS 04

Coupling of pressure and velocity (3) Colocated grid Node for pressure and velocity at CV center Same CV for all variables Possible oscillations of pressure Finite Volume Method, JASS 04

Coupling of pressure and velocity (4) Staggered grid Variables located at different nodes Pressure at the centre, velocities at faces Strong coupling between velocity and pressure, this helps to avoid oscillations Finite Volume Method, JASS 04

Summary FVM FVM uses integral form of conservation (transport) equation Domain subdivided in control volumes (CV) Surface and volume integrals approximated by numerical quadrature Interpolation used to express variable values at CV faces in terms of nodal values It results in an algebraic equation per CV Suitable for any type of grid Conservative by construction Commercial codes: CFX, Fluent, Phoenics, Flow3D Finite Volume Method, JASS 04

Turbulent flows Most flows in practice are turbulent With increasing Re, smaller eddies Very fine grid necessary to describe all length scales Even the largest supercomputer does not have (yet) enough speed and memory to simulate turbulent flows of high Re. Computational methods for turbulent flows: Direct Numerical Simulation (DNS) Large Eddy Simulation (LES) Reynolds-Averaged Navier-Stokes (RANS) Finite Volume Method, JASS 04

Turbulent flows (2) Direct Numerical Simulation (DNS) Discretize Navier-Stokes eq on a sufficiently fine grid for resolving all motions occurring in turbulent flow No uses any models Equivalent to laboratory experiment Relationship between length of smallest eddies and the length L of largest eddies, Finite Volume Method, JASS 04

Turbulent flows (3) Number of elements necessary to discretize the flow field In industrial applications, Re > Finite Volume Method, JASS 04

Turbulent flows (4) Large Eddy Simulation (LES) Only large eddies are computed Small eddies are modelled, subgrid-scale (SGS) models Reynolds-Averaged Navier-Stokes (RANS) Variables decomposed in a mean part and a fluctuating part, Navier-Stokes equations averaged over time Turbulence models are necessary Finite Volume Method, JASS 04

Example CFX Finite Volume Method, JASS 04

Example CFX, mesh Finite Volume Method, JASS 04

Example CFX, results Finite Volume Method, JASS 04

Example CFX, results(2) Finite Volume Method, JASS 04