Computational Fluid Dynamics

Slides:



Advertisements
Similar presentations
CHAPTER 1: COMPUTATIONAL MODELLING
Advertisements

1 Application of for Predicting Indoor Airflow and Thermal Comfort.
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.
Modelling & Simulation of Chemical Engineering Systems
Continuity Equation. Continuity Equation Continuity Equation Net outflow in x direction.
Using Computational Fluid Dynamics (CFD) for improving cooling system efficiency for Data centers Data Centre Best Practises Workshop 17 th March 2009.
計算流體力學 Computational Fluid Dynamics (CFD) 授課教師:施陽正 博士 Instructor: Dr. Yang-Cheng Shih 2009/02.
1 “CFD Analysis of Inlet and Outlet Regions of Coolant Channels in an Advanced Hydrocarbon Engine Nozzle” Dr. Kevin R. Anderson Associate Professor California.
Lectures on CFD Fundamental Equations
Chapter 1 Introduction to CFD
Experimental and Numerical Study of the Effect of Geometric Parameters on Liquid Single-Phase Pressure Drop in Micro- Scale Pin-Fin Arrays Valerie Pezzullo,
Introduction to numerical simulation of fluid flows
Flow over an Obstruction MECH 523 Applied Computational Fluid Dynamics Presented by Srinivasan C Rasipuram.
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,
12/21/2001Numerical methods in continuum mechanics1 Continuum Mechanics On the scale of the object to be studied the density and other fluid properties.
MECh300H Introduction to Finite Element Methods
Preliminary Assessment of Porous Gas-Cooled and Thin- Liquid-Protected Divertors S. I. Abdel-Khalik, S. Shin, and M. Yoda ARIES Meeting, UCSD (March 2004)
1/36 Gridless Method for Solving Moving Boundary Problems Wang Hong Department of Mathematical Information Technology University of Jyväskyklä
Numerical Analysis of the Bypass Valve in a Loop Heat Pipe Michel Speetjens, Camilo Rindt, Joy Klinkenberg Laboratory for Energy Technology, Dept. Mechanical.
Numerical study of the blade cooling effect generated by multiple jets issuing at different angles and speed into a compressible horizontal cross flow.
Modeling, Simulating and Rendering Fluids Thanks to Ron Fediw et al, Jos Stam, Henrik Jensen, Ryan.
© 2011 Autodesk Freely licensed for use by educational institutions. Reuse and changes require a note indicating that content has been modified from the.
Flow and Thermal Considerations
FUNDAMENTAL EQUATIONS, CONCEPTS AND IMPLEMENTATION
1 CFD Analysis Process. 2 1.Formulate the Flow Problem 2.Model the Geometry 3.Model the Flow (Computational) Domain 4.Generate the Grid 5.Specify the.
© Ram Ramanan 8/27/2015 CFD 1 ME 5337/7337 Notes Introduction to Computational Fluid Dynamics Lecture 2: CFD Introduction.
HYBRID NUMERICAL METHOD FOR NON-STATIONARY CONTINUUM MECHANICS N.G. Burago 1,3, I.S. Nikitin 2,3 1 IPMech RAS, 2 ICAD RAS, 3 Bauman MSTU Volodarka
Tutorial 5: Numerical methods - buildings Q1. Identify three principal differences between a response function method and a numerical method when both.
© Fluent Inc. 9/5/2015L1 Fluids Review TRN Solution Methods.
Matthew Fischels Aerospace Engineering Department Major Professor : Dr. R. Ganesh Rajagopalan REDUCING RUNTIME OF WIND TURBINE SIMULATION Los Alamos National.
Molecular Transport Equations. Outline 1.Molecular Transport Equations 2.Viscosity of Fluids 3.Fluid Flow.
Chapter 9: Differential Analysis of Fluid Flow SCHOOL OF BIOPROCESS ENGINEERING, UNIVERSITI MALAYSIA PERLIS.
IPE 2003 Tuscaloosa, Alabama1 An Inverse BEM/GA Approach to Determining Heat Transfer Coefficient Distributions Within Film Cooling Holes/Slots Mahmood.
A conservative FE-discretisation of the Navier-Stokes equation JASS 2005, St. Petersburg Thomas Satzger.
Thermal-ADI: a Linear-Time Chip-Level Dynamic Thermal Simulation Algorithm Based on Alternating-Direction-Implicit(ADI) Method Good afternoon! The topic.
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.
1 Discretization of Fluid Models (Navier Stokes) Dr. Farzad Ismail School of Aerospace and Mechanical Engineering Universiti Sains Malaysia Nibong Tebal.
Chapter 03: Macroscopic interface dynamics Xiangyu Hu Technical University of Munich Part A: physical and mathematical modeling of interface.
Optimization Of a Viscous Flow Between Parallel Plates Based On The Minimization Of Entropy Generation Presentation By Saeed Ghasemi.
Convective Heat Transfer in Porous Media filled with Compressible Fluid subjected to Magnetic Field Watit Pakdee* and Bawonsak Yuwaganit Center R & D on.
© 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.
HW2 Due date Next Tuesday (October 14). Lecture Objectives: Unsteady-state heat transfer - conduction Solve unsteady state heat transfer equation for.
Physical Fluid Dynamics by D. J. Tritton What is Fluid Dynamics? Fluid dynamics is the study of the aforementioned phenomenon. The purpose.
Dr. Jason Roney Mechanical and Aerospace Engineering
COMPUTATIONAL FLUID DYNAMICS (AE 2402) Presented by IRISH ANGELIN S AP/AERO.
FALL 2015 Esra Sorgüven Öner
PRESENTATION OF CFD ACTIVITIES IN CV GROUP Daniel Gasser.
Lecture Objectives: -Define the midterm project -Lean about eQUEST -Review exam problems.
MECH4450 Introduction to Finite Element Methods
INTRODUCTION TO CONVECTION
Multigrid Methods The Implementation Wei E Universität München. Ferien Akademie 19 th Sep
Introduction to Computational Fluid Dynamics (CFD)
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.
Tony Arts Carlo Benocci Patrick Rambaud
An Introduction to Computational Fluids Dynamics Prapared by: Chudasama Gulambhai H ( ) Azhar Damani ( ) Dave Aman ( )
M. Khalili1, M. Larsson2, B. Müller1
Heat Transfer Su Yongkang School of Mechanical Engineering # 1 HEAT TRANSFER CHAPTER 6 Introduction to convection.
Higher Order Runge-Kutta Methods for Fluid Mechanics Problems Abhishek Mishra Graduate Student, Aerospace Engineering Course Presentation MATH 6646.
Computer Animation Rick Parent Computer Animation Algorithms and Techniques Computational Fluid Dynamics.
Computational Fluid Dynamics
Computational Fluid Dynamics Lecture II Numerical Methods and Criteria for CFD Dr. Ugur GUVEN Professor of Aerospace Engineering.
Chapter 6: Introduction to Convection
Computational Fluid Dynamics(CFD)
Distributed Flow Routing
Objective Review Reynolds Navier Stokes Equations (RANS)
Objective Numerical methods Finite volume.
Today’s Lecture Objectives:
14. Computational Fluid Dynamics
Presentation transcript:

Computational Fluid Dynamics Introduction of Computational Fluid Dynamics by Wangda Zuo M.Sc. –Student of Computational Engineering Lehrstuhl für Strömungsmechanik FAU Erlangen-Nürnberg Cauerstr. 4, D-91058 Erlangen JASS 2005, St. Petersburg Title of Presentation 1

Contents What is Computational Fluid Dynamics(CFD)? Why and where use CFD? Physics of Fluid Navier-Stokes Equation Numerical Discretization Grids Boundary Conditions Numerical Staff Case Study: Backward-Facing Step Contents

Navier-Stokes Equations Fluid Problem Comparison&Analysis Fluid Mechanics Physics of Fluid C F D Simulation Results Computer Mathematics Navier-Stokes Equations Computer Program Programming Language Numerical Methods Discretized Form Grids Geometry Now, let’s see what is CFD. Firstly, we have a fluid problem. To solve this problem, we should know the physical properties of fluid by using Fluid Mechanics. Then we can use mathematical equations to describe these physical properties. This is Navier-Stokes Equation. The Navier-Stokes Equation is analytical. Human can understand it and solve them on a piece of paper. But if we want to solve this equation by computer, we have to translate it to the discretized form.The translators are numerical discretization methods, such as Finite Difference, Finite Element methods. Consequently, we also need to divide our whole problem domain into many small parts because our discretization is based on them. Then, we can write programs to solve them. The typical languages are Fortran and C. Running the programs on workstation or supercomputer. At the end, we cam get our simulation results. We can compare and analyze the simulation results with experiments or the real problem. If the results are not sufficient to solve the problem, we have to repeat the process until find satisfied solution. This is CFD. What is CFD?

Contents What is Computational Fluid Dynamics(CFD)? Why and where use CFD? Physics of Fluid Navier-Stokes Equation Numerical Discretization Grids Boundary Conditions Numerical Staff Case Study: Backward-Facing Step Contents

Simulation(CFD) Experiment Why use CFD? Cost Cheap Expensive Time Short Long Scale Any Small/Middle Information All Measured Points Repeatable Some Security Safe Some Dangerous We have known what is CFD. Now, let’s see why we use CFD? Here is a comparison table of Simulation and Experiment. From this table, we can see that Simulation is much cheaper that experiment because we do not need to buy the expensive experiment equipments. We can get the results in short time with CFD. We can do simulation for any scale of problem. For example, from the small bubbles to weather of earth. But experiment can only work for the small or middle size object. From Simulation, we can get any information we need.But in experiment, we can only obtain data from the measured point. Simulation is very easy to repeat, we only need to run the program again. But experiment is not so easy, especially the combustion,explosions. They are unrepeatable. Some experiment are very dangerous, for example, pollution and radiation. But if we use Simulation, it is very safe. ################### As you see, CFD has many advantages,. Some body may say, we do not need experiments any more, CFD is enough. This is wrong. We still need experiment to validate the simulation results. The improvement is that In the previous time, we needed hundreds experiments. Now we can firstly do simulations, at the end, do one or two experiments to validate. Why use CFD?

Where use CFD? Aerospace Automotive Biomedical Chemical Processing HVAC Hydraulics Power Generation Sports Marine Biomedicine Automotive Temperature and natural convection currents in the eye following laser heating. Now, let me show you some applications of CFD. Aerospace is a very important CFD application field. For example, the design of airplane. Automotive is another important field. This picture show the streamlines of a car. Biomedicine is a new field for CFD. This graph shows the the temperature and natural convection currents in the eye following laser heating. Where use CFD?

Where use CFD? Aerospacee Automotive Biomedical Chemical Processing HVAC(Heat Ventilation Air Condition) Hydraulics Power Generation Sports Marine reactor vessel - prediction of flow separation and residence time effects. Hydraulics HVAC Chemical industry is another important CFD application field. This graph show - prediction of flow separation and residence time effects in Polymerization reactor vessel. This graph shows the streamlines of a workstation. This is very useful for Heat Ventilation Air Condition. This graph shows the application in Hydraulics. Streamlines for workstation ventilation Where use CFD?

Flow around cooling towers Sports Power Generation Aerospace Automotive Biomedical Chemical Processing HVAC Hydraulics Power Generation Sports Marine Flow around cooling towers Marine We can also use CFD to improve the techniques of swimming. Improve the design of Power Factory and ship. Where use CFD?

Contents What is Computational Fluid Dynamics(CFD)? Why and where use CFD? Physics of Fluid Navier-Stokes Equation Numerical Discretization Grids Boundary Conditions Numerical Staff Case Study: Backward-Facing Step Contents

Fluid = Liquid + Gas Density ρ Viscosity μ: Physics of Fluid resistance to flow of a fluid Substance Air(18ºC) Water(20ºC) Honey(20ºC) Density(kg/m3) 1.275 1000 1446 Viscosity(P) 1.82e-4 1.002e-2 190 The applications of CFD are very interesting. How can we get this results? Firstly, we should know the physics of fluid. The first thing we should make clear is what is fluid. Fluid is liquid and gas, for example, water and air. Fluid has some important properties, for example, Pressure, velocity, temperature and mass. Here I want to emphasis two properties. The first one is density. In fluid mechanics, if density is constant, we call is fluid is incompressible fluid. Sometimes, if the change of the density is very small, we can also treat the fluid as incompressible fluid. For example, water. If density is variable, we call the fluid is compressible. For example, air is compressible fluid. Later on we will see the mathematical equation for incompressible fluid is much simples than compressible fluid. Another important property is viscosity. Viscosity is an internal property of a fluid that offers resistance to flow. For example, to stir water is much easier than stir honey because the viscosity of water is much small than honey. This table shows the density and viscosity of air, water and honey. Physics of Fluid

Contents What is Computational Fluid Dynamics(CFD)? Why and where use CFD? Physics of Fluid Navier-Stokes Equation Numerical Discretization Grids Boundary Conditions Numerical Staff Case Study: Backward-Facing Step Contents

M Conservation Law in out Mass Momentum Energy To describe the physical properties by mathematics, we need a conservation law. This picture shows the principle of conservation law. The change of the mass is equal to the mass flow in minus mass flow out. If the mass flow in is equal to mass flow out, then the change of mass is zero. Actually, the conservation law is not only for mass, but also for momentum and energy. Conservation Law

Navier-Stokes Equation I Mass ConservationContinuity Equation Compressible Incompressible Using the Conservation law, we can derive the mathematical equations for fluid. These equations are Navier-Stokes equations. The first one is Continuity Equation, it comes from Mass Conservation. Dp/Dt is the change of the mass, pdu/dx is convective term, which means the mass flux. This is for compressible fluid because the density can change with time. If density is constant, which means Dp/dt is zero. We have is simple formula. This is for incompressible fluid. Navier-Stokes Equation I

Navier-Stokes Equation II Momentum ConservationMomentum Equation I : Local change with time II : Momentum convection III: Surface force IV: Molecular-dependent momentum exchange(diffusion) V: Mass force If we apply Momentum Conservation, we can get momentum equation. The first term is local momentum change with time. The second term is convective term, or we can say momentum flux. The third term is momentum change due to surface force. We can image that the pressure is active at the surface of object, and the surface force can change the momentum of object. The fourth term is momentum exchange with molecular motion. The momentum of the object can transfer to momentum of molecules. The last term is momentum change due to Mass Force. For example, the gravity force, acceleration force. Navier-Stokes Equation II

Navier-Stokes Equation III Momentum Equation for Incompressible Fluid The previous momentum equation is for compressible fluid. For the incompressible, we can simplify it. As we know, the molecular momentum exchange term is here. For incompressible flow, the continuity equation is du/dx=0. Which means the dUk/dxk is zero, so the later term is zero. For this term, we can spread it as ….. Because dui/dxi=0, we only have …left. So the momentum equation for incompressible fluid can be written as this formula. Navier-Stokes Equation III

Navier-Stokes Equation IV Energy ConservationEnergy Equation I : Local energy change with time II: Convective term III: Pressure work IV: Heat flux(diffusion) V: Irreversible transfer of mechanical energy into heat If we use energy conservation law, we can get energy equation. The first term is local energy change with time. The second term is convective term. The third is heat flux. Fourth is the work done by pressure. The last one is the transfer of mechanical energy into heat. Navier-Stokes Equation IV

Contents What is Computational Fluid Dynamics(CFD)? Why and where use CFD? Physics of Fluid Navier-Stokes Equation Numerical Discretization Grids Boundary Conditions Numerical Staff Case Study: Backward-Facing Step Contents

Discretized Equations Discretization Analytical Equations Discretized Equations Discretization Methods Finite Difference Straightforward to apply, simple, sturctured grids Finite Element Any geometries Finite Volume Conservation, any geometries We have get Navier-Stokes equations. But these equations are analytical equations. Human can understand and solve, but computer can not. So we need to translate them to the forms which computer can understand. This process is discretization. The typical discretization methods are Finite Difference, Finite Element and Finite volume methods. Here I will introduce finite volume method for you. Discretization

Finite Volume I General Form of Navier-Stokes Equation Local change with time Flux Source Integrate over the Control Volume(CV) Integral Form of Navier-Stokes Equation Local change with time in CV Flux Over the CV Surface Source in CV The Navier-Stokes euqations can be written as this general form. If we set busai equal 1, we can get continuity equation, busai equal to Uj, we get momentum equation, pusai equal to T, then we can get energy equation. If we integrate over the Control Volume, we call it CV. Using Gauss theory, we can get the Volume Integral Form of Navier –Stokes Equation like this. The first volume integral is local in control volume, the second is flux over the surface of control volume. The right hand side is the source term. Next step, we should find the method how to approximate the volume integral and surface integral. Finite Volume I

Conservation of Finite Volume Method B A B Finite Volume II

Finite Volume III Approximation of Volume Integrals Approximation of Surface Integrals ( Midpoint Rule) Interpolation Upwind Central Firstly, let’s see the volume integral. Here, I introduce the simplest approach. It is first order approach. If we want higher accuracy, we can use more complex methods. For example, we want to get the mass of CV. It is the integral of density by volume. We can use the density of the center point time the volume of CV to approximate it. If the density is constant, which means the flow is incompressible, then this approach is exact approach. The other example is the momentum of CV. We still use the value of center point. To approach the surface integral, I also introduce a simple method. It is midpoint rule, it is second order method. For 2D case, the pressure integral at surfaces id the sum of 4 surfaces. Then we can use the pressure at the midpoint of side times length of side instead of do integral along the side. Then another problem comes out. Our variable are stored at the center of control volume, how can we get the value at the border? We can use interpolation to realize it. Finite Volume III

Discretization of Continuity Equation One Control Volume Whole Domain Firstly, let’s see the volume integral. Here, I introduce the simplest approach. It is first order approach. If we want higher accuracy, we can use more complex methods. For example, we want to get the mass of CV. It is the integral of density by volume. We can use the density of the center point time the volume of CV to approximate it. If the density is constant, which means the flow is incompressible, then this approach is exact approach. The other example is the momentum of CV. We still use the value of center point. To approach the surface integral, I also introduce a simple method. It is midpoint rule, it is second order method. For 2D case, the pressure integral at surfaces id the sum of 4 surfaces. Then we can use the pressure at the midpoint of side times length of side instead of do integral along the side. Then another problem comes out. Our variable are stored at the center of control volume, how can we get the value at the border? We can use interpolation to realize it. Discretization of Continuity Equation

Discretization of Navier-Stokes Equation FV Discretization of Incompressible N-S Equation Unsteady Convection Diffusion Source Time Discretization Explicit Implicit If we use finite volume method for the all domain, we get a matrix system for Navier-Stokes Equation. Here is the Finite Volume discretization of Incompressible N0S Equation. Omiga .. Is unstaedy term, ….. Especially the unsteady term is changing with time, we need time discretization for this term. There are two ways: explicit and implicit. If we want to get the value of du/dt at time n+1, we can only use the value of u at time n. This is explicit method. If we use the value at both previous and current time step, it is implicit method. Explicit method is very stable, but slow. Implicit method is much faster, but not always stable. Discretization of Navier-Stokes Equation

Contents What is Computational Fluid Dynamics(CFD)? Why and where use CFD? Physics of Fluid Navier-Stokes Equation Numerical Discretization Grids Boundary Conditions Numerical Staff Case Study: Backward-Facing Step Contents

Structured Grid Unstructured Grid Block Structured Grid Grids + 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 From finite volume method, we know that we need to divide the whole problem domain into many small domains, then integrate at these small domains. This is Gird Generation We have 3 methods to generate the grids. The simplest one is structured grid. This type of grids, all nodes have the same number of elements around it. We can describe and store them easily. But this type of grid is only for the simple domain. If we have a complex domain, we can use unstructured grid. For example, this is a complex object. The flow near the object is very important and complex, we need very fine grid at this region. Far away from the airfoil, the flow is comparably simple, so we can use coarse grid. Generally, unstructured grid is suitable for all geometries, it is very popular in CFD. The disadvantage is that because the data structure is irregular, it is more difficult to describe and store them. Block structure grid is a compromising of structured and unstructured grid. The idea is, firstly, divide the domain into several blocks, then use different structured grids in different blocks. Grids

Contents What is Computational Fluid Dynamics(CFD)? Why and where use CFD? Physics of Fluid Navier-Stokes Equation Numerical Discretization Grids Boundary Conditions Numerical Staff Case Study: Backward-Facing Step Contents

Boundary Conditions Typical Boundary Conditions o No-slip(Wall), Axisymmetric, Inlet, Outlet, Periodic Periodic boundary condition in spanwise direction of an airfoil Inlet ,u=c,v=0 o No-slip walls: u=0,v=0 v=0, dp/dr=0,du/dr=0 Outlet, du/dx=0 dv/dy=0,dp/dx=0 r x Axisymmetric To solve the equation system, we also need boundary conditions. The typical boundary conditions in CFD are No-slip boundary condition, Axisymmetric boundary condition, Inlet, outlet boundary condition and Periodic boundary condition. For example, there is a pipe, the flow comes in from the west, comes out from the east side. So we can use inlet at the west side, which means we can set the velocity manually. At the west side, we use outlet boundary condition to keep all the properties constant at x direction, which means the gradient is zero. At the wall of pipe, we can set the velocity is zero, this is no-slip boundary condition. At the center of pipe, we can use axisymmetric boundary condition. Periodic boundary condition is Boundary Conditions

Contents What is Computational Fluid Dynamics(CFD)? Why and where use CFD? Physics of Fluid Navier-Stokes Equation Numerical Discretization Grids Boundary Conditions Numerical Staff Case Study: Backward-Facing Step Contents

Solver and Numerical Parameters Solvers Direct: Cramer’s rule, Gauss elimination, LU decomposition Iterative: Jacobi method, Gauss-Seidel method, SOR method Numerical Parameters Under relaxation factor, convergence limit, etc. Multigrid, Parallelization Monitor residuals (change of results between iterations) Number of iterations for steady flow or number of time steps for unsteady flow Single/double precisions Solver and Numerical Parameters

Contents What is Computational Fluid Dynamics(CFD)? Why and where use CFD? Physics of Fluid Navier-Stokes Equation Numerical Discretization Grids Boundary Conditions Numerical Staff Case Study: Backward-Facing Step Contents

Backward-Facing Step Wall u Wall Case Study

Thank you for your attention!