Introduction to ANSYS CFX

Similar documents
Introduction to CFX. Workshop 2. Transonic Flow Over a NACA 0012 Airfoil. WS2-1. ANSYS, Inc. Proprietary 2009 ANSYS, Inc. All rights reserved.

Express Introductory Training in ANSYS Fluent Workshop 04 Fluid Flow Around the NACA0012 Airfoil

NUMERICAL 3D TRANSONIC FLOW SIMULATION OVER A WING

Compressible Flow in a Nozzle

Verification and Validation of Turbulent Flow around a Clark-Y Airfoil

Application of Wray-Agarwal Turbulence Model for Accurate Numerical Simulation of Flow Past a Three-Dimensional Wing-body

Verification and Validation of Turbulent Flow around a Clark-Y Airfoil

High-Lift Aerodynamics: STAR-CCM+ Applied to AIAA HiLiftWS1 D. Snyder

ANSYS FLUENT. Airfoil Analysis and Tutorial

Modeling External Compressible Flow

Supersonic Flow Over a Wedge

Calculate a solution using the pressure-based coupled solver.

NASA Rotor 67 Validation Studies

Debojyoti Ghosh. Adviser: Dr. James Baeder Alfred Gessow Rotorcraft Center Department of Aerospace Engineering

Simulation of Turbulent Flow around an Airfoil

A B C D E. Settings Choose height, H, free stream velocity, U, and fluid (dynamic viscosity and density ) so that: Reynolds number

Transition Flow and Aeroacoustic Analysis of NACA0018 Satish Kumar B, Fred Mendonç a, Ghuiyeon Kim, Hogeon Kim

Simulation of Turbulent Flow around an Airfoil

THE EFFECTS OF THE PLANFORM SHAPE ON DRAG POLAR CURVES OF WINGS: FLUID-STRUCTURE INTERACTION ANALYSES RESULTS

Isotropic Porous Media Tutorial

Verification of Laminar and Validation of Turbulent Pipe Flows

NUMERICAL INVESTIGATION OF THE FLOW BEHAVIOR INTO THE INLET GUIDE VANE SYSTEM (IGV)

Estimation of Flow Field & Drag for Aerofoil Wing

The Spalart Allmaras turbulence model

Using a Single Rotating Reference Frame

NUMERICAL SIMULATION OF FLOW FIELD IN AN ANNULAR TURBINE STATOR WITH FILM COOLING

Usage of CFX for Aeronautical Simulations

STAR-CCM+ User Guide 6922

Simulation of Flow Development in a Pipe

Simulation of Turbulent Flow over the Ahmed Body

Modeling Unsteady Compressible Flow

Analysis of an airfoil

THE APPLICATION OF AN ATMOSPHERIC BOUNDARY LAYER TO EVALUATE TRUCK AERODYNAMICS IN CFD

Tutorial 17. Using the Mixture and Eulerian Multiphase Models

Profile Catalogue for Airfoil Sections Based on 3D Computations

Appendix: To be performed during the lab session

Keywords: CFD, aerofoil, URANS modeling, flapping, reciprocating movement

Research and Design working characteristics of orthogonal turbine Nguyen Quoc Tuan (1), Chu Dinh Do (2), Quach Thi Son (2)

Simulation of Turbulent Flow in an Asymmetric Diffuser

Strömningslära Fluid Dynamics. Computer laboratories using COMSOL v4.4

CFD Best Practice Guidelines: A process to understand CFD results and establish Simulation versus Reality

Introduction to C omputational F luid Dynamics. D. Murrin

Mesh Morphing and the Adjoint Solver in ANSYS R14.0. Simon Pereira Laz Foley

Express Introductory Training in ANSYS Fluent Workshop 06 Using Moving Reference Frames and Sliding Meshes

Shape optimisation using breakthrough technologies

Grid. Apr 09, 1998 FLUENT 5.0 (2d, segregated, lam) Grid. Jul 31, 1998 FLUENT 5.0 (2d, segregated, lam)

STAR-CCM+: Wind loading on buildings SPRING 2018

Tutorial 1. Introduction to Using FLUENT: Fluid Flow and Heat Transfer in a Mixing Elbow

Simulation of Turbulent Flow over the Ahmed Body

Aerodynamic Analysis of Forward Swept Wing Using Prandtl-D Wing Concept

Using the Eulerian Multiphase Model for Granular Flow

SHOCK WAVES IN A CHANNEL WITH A CENTRAL BODY

Modeling Evaporating Liquid Spray

FLUID DYNAMICS ANALYSIS OF A COUNTER ROTATING DUCTED PROPELLER

Lab 9: FLUENT: Transient Natural Convection Between Concentric Cylinders

CFD Analysis of conceptual Aircraft body

Detached Eddy Simulation Analysis of a Transonic Rocket Booster for Steady & Unsteady Buffet Loads

TUTORIAL#4. Marek Jaszczur. Turbulent Thermal Boundary Layer on a Flat Plate W1-1 AGH 2018/2019

S-ducts and Nozzles: STAR-CCM+ at the Propulsion Aerodynamics Workshop. Peter Burns, CD-adapco

Simulation of Laminar Pipe Flows

NUMERICAL AND EXPERIMENTAL INVESTIGATIONS OF TEST MODELS AERODYNAMICS

McNair Scholars Research Journal

ANSYS AIM Tutorial Compressible Flow in a Nozzle

Simulating Sinkage & Trim for Planing Boat Hulls. A Fluent Dynamic Mesh 6DOF Tutorial

CFD Analysis of 2-D Unsteady Flow Past a Square Cylinder at an Angle of Incidence

SPC 307 Aerodynamics. Lecture 1. February 10, 2018

Tutorial: Simulating a 3D Check Valve Using Dynamic Mesh 6DOF Model And Diffusion Smoothing

ANSYS AIM Tutorial Turbulent Flow Over a Backward Facing Step

AERODYNAMIC DESIGN FOR WING-BODY BLENDED AND INLET

Grid Dependence Study of Transonic/Supersonic Flow Past NACA Air-foil using CFD Hemanth Kotaru, B.Tech (Civil Engineering)

Backward facing step Homework. Department of Fluid Mechanics. For Personal Use. Budapest University of Technology and Economics. Budapest, 2010 autumn

Using Multiple Rotating Reference Frames

equivalent stress to the yield stess.

Workbench Tutorial Flow Over an Airfoil, Page 1 ANSYS Workbench Tutorial Flow Over an Airfoil

CFD Simulation of a dry Scroll Vacuum Pump including Leakage Flows

Modeling Evaporating Liquid Spray

Flow and Heat Transfer in a Mixing Elbow

Team 194: Aerodynamic Study of Airflow around an Airfoil in the EGI Cloud

COMPUTATIONAL FLUID DYNAMICS ANALYSIS OF ORIFICE PLATE METERING SITUATIONS UNDER ABNORMAL CONFIGURATIONS

Adjoint Solver Workshop

Non-Newtonian Transitional Flow in an Eccentric Annulus

Progress and Future Prospect of CFD in Aerospace

FEMLAB Exercise 1 for ChE366

Module D: Laminar Flow over a Flat Plate

Application of STAR-CCM+ to Helicopter Rotors in Hover

Express Introductory Training in ANSYS Fluent Workshop 02 Using the Discrete Phase Model (DPM)

Evaluation of CFD simulation on boundary between meshes of different types

ANSYS AIM Tutorial Flow over an Ahmed Body

Simulation and Validation of Turbulent Pipe Flows

ANSYS AIM Tutorial Steady Flow Past a Cylinder

Extension and Validation of the CFX Cavitation Model for Sheet and Tip Vortex Cavitation on Hydrofoils

Axisymmetric Viscous Flow Modeling for Meridional Flow Calculation in Aerodynamic Design of Half-Ducted Blade Rows

Computation of Velocity, Pressure and Temperature Distributions near a Stagnation Point in Planar Laminar Viscous Incompressible Flow

Using Multiple Rotating Reference Frames

Express Introductory Training in ANSYS Fluent Workshop 07 Tank Flushing

Studies of the Continuous and Discrete Adjoint Approaches to Viscous Automatic Aerodynamic Shape Optimization

Introduction to Computational Fluid Dynamics Mech 122 D. Fabris, K. Lynch, D. Rich

ANSYS Fluid Structure Interaction for Thermal Management and Aeroelasticity

Computational Study of Laminar Flowfield around a Square Cylinder using Ansys Fluent

CFD MODELING FOR PNEUMATIC CONVEYING

Transcription:

Workshop 03 Fluid flow around the NACA0012 Airfoil 16.0 Release Introduction to ANSYS CFX 2015 ANSYS, Inc. March 13, 2015 1 Release 16.0

Workshop Description: The flow simulated is an external aerodynamics application for the twodimensional flow around a NACA0012 airfoil Learning Aims: Introduction This workshop introduces several new skills: Assessing Y+ for correct turbulence model behavior Modifying solver settings to improve accuracy Reading in and plotting experimental data alongside CFD results Producing a side-by-side comparison of different CFD results. Learning Objectives: To understand how to model an external aerodynamics problem, and skills to improve and assess solver accuracy with respect to both experimental and other CFD data. 2015 ANSYS, Inc. March 13, 2015 2 Release 16.0

Import the supplied mesh file Start ANSYS Workbench 16 Copy a CFX Analysis System into the Project Schematic Import the mesh naca0012coarse.cfx5 from \workshop_input_files\ws_05_naca0012 airfoil The mesh was created with ICEM CFD, choose the right filter Launch CFX Pre 2015 ANSYS, Inc. March 13, 2015 3 Release 16.0

Case Setup: Boundary Condition Values It is important to place the far field (inlet and outlet) boundaries far enough from the object of interest. For example, in lifting airfoil calculations, it is not uncommon for the far-field boundary to be a circle with a radius of 20 chord lengths. This workshop will compare CFD with windtunnel test data at Ma = 0.7. Therefore we need to calculate the static conditions at the far-field boundary for T and p. We calculate this from the total pressure, which is atmospheric at 101325 Pa. The wind tunnel operating conditions for validation test data give the total temperature as T 0 = 311 K. po 1 1 M p 2 where To 1 1 M T 2 where 1.3871 T 283.24K 2015 ANSYS, Inc. March 13, 2015 4 Release 16.0 po p To T p p static pressure M T T o o total pressure 101325 Pa 1.4 for air Mach No. 0.7 1.3871 total temp. static temp. p 73048 Pa 2 2 1 311K

Case Setup: Basic Settings Edit the domain so that Air Ideal Gas is used as material, the SST turbulence model, and Total Energy model are applied. Set the Reference Pressure of your domain p Ref = 73048 [Pa] The SST turbulence model is a very powerful model for aerodynamic, external flows. The Total Energy model is needed for compressible flows where the Ma > 0.3 Since the fluid is compressible, density depends on Absolute Pressure. The Reference Pressure chosen ensures that the values of static pressure in the solution are not too large compared with the differences, so minimising round-off errors. 2015 ANSYS, Inc. March 13, 2015 5 Release 16.0

Case Setup: Coordinate Frame The angle of attack is 1.55 degrees (α). One way of accounting for this angle is to create a new coordinate system whose z-axis is in line with the flow direction. We use this new coordinate system when applying boundary conditions. Create a new coordinate frame: Insert Coordinate Frame Name = Coord 1 Option = Axis Points Origin = 0, 0, 0 Z axis = 0.999634, 0.027049, 0 (cos1.55, sin1.55, 0) X-Z Plane Pt = 1, 1, 0 (a point on the plane) y α Original Coordinate Frame x Another way of accounting for this angle of attack would be to rotate the velocities at the inlet via expressions 2015 ANSYS, Inc. March 13, 2015 6 Release 16.0

Case Setup: Boundary Conditions Create a boundary condition for the inlet: Set cartesian velocity components based on the new coordinate system, Coord 1: (U,V,W) = (0, 0, 0.7*340.29) [m/s] 340.29[m/s] equals Ma = 1.0 for the given free stream values, i.e. it is the speed of sound under the prevailing conditions Set values for turbulence intensity and eddy viscosity ratio: TI = 0.01, Eddy Viscosity Ratio = 1.0 Set the Static Temperature at the inlet: T = 283.4 [K] This will create an inlet boundary condition with air flowing at a speed flow with Ma = 0.7 at an angle of attack (α) of 1.55 deg. 2015 ANSYS, Inc. March 13, 2015 7 Release 16.0

Case Setup: Boundary Conditions Create a boundary condition for the outlet: Set a relative pressure of 0 [Pa] Create a wall boundary, called airfoil, containing the upper and lower surfaces of the airfoil Create a no-slip, adiabatic wall Create symmetry boundary conditions for the bottom and the top of the domain 2015 ANSYS, Inc. March 13, 2015 8 Release 16.0

Case Setup: Solution Monitors To help check convergence you will monitor the lift and drag coefficients. The drag coefficient, for example, is calculated as c D = 2F/(A v²). Density and velocity refer to free stream values and A is the area of the airfoil calculated as chord * span of the airfoil, the chord being a straight line between the leading and trailing edges. In CEL this is defined as: 2*force_z_Coord 1()@airfoil / (0.6[m^2]*massFlowAve(Density)@inlet *(massflowave(velocity)@inlet)^2) Use the above expression to create a Monitor Point for the drag coefficient. The lift coefficient is defined analogously for the x component of force in the local coordinate frame. Duplicate the first monitor (right click on the monitor object in the Outline Tree) and edit the expression in the copy. Rename the new monitor. Functions, variables & expressions are available in the expression details tab (RMB) The expressions must match the names for the airfoil and inlet (free stream) boundary conditions. Check how you named them. 2015 ANSYS, Inc. March 13, 2015 9 Release 16.0

Run Calculation Close CFX-Pre Save the project to airfoil.wbpj in your working directory Start the run Review the convergence plots Click User Points to review the lift and drag coefficient convergence From Reference [1], c l = 0.241 and c d = 0.0079 Compare with the simulation results and determine the relative error for these quantities Later we will see how to improve the results in a Best Practice Study Close the CFX-Solver Manager and import the results to CFD Post 2015 ANSYS, Inc. March 13, 2015 10 Release 16.0

Post Processing - Check the mesh (Y+) The correct modelling of the turbulence is a crucial task in most CFD simulations The reliability of the turbulence models strongly depends on the correct prediction of the flow behaviour near the walls The SST model uses the automatic wall function which allows for integration of the governing equations directly to the wall (a low Reynolds number treatment) and so can better predict boundary layer separation For this to happen, the first grid point should lie within the viscous sub-layer (y + 2) Otherwise the Universal Law of The Wall for turbulence is used The above graph shows non-dimensional velocity versus non-dimensional distance from the wall, y +. y y Wall / 2015 ANSYS, Inc. March 13, 2015 11 Release 16.0

Post Processing - Check the mesh (Y + ) In CFD-Post y + values can be accessed at all wall boundary conditions Check the global range of y + 2015 ANSYS, Inc. March 13, 2015 12 Release 16.0

Post Processing y+ chart Plot the y + values along the airfoil surfaces Create a Location > Polyline which represents the pressure and suction sides of the air foil Use the Boundary Intersection method Create a chart based on this polyline which plots the y + as function of the x-coordinate Create another chart for the pressure distribution along the airfoil 2015 ANSYS, Inc. March 13, 2015 13 Release 16.0

Post Processing Pressure Coefficient (c P ) We will compare the simulation results with experimental data for the pressure coefficient, c P, on the upper and lower surfaces of the airfoil. The pressure coefficient is a dimensionless quantity representing the ratio of static to dynamic pressure, calculated as: c P = 2(p-p )/( u ²) where indicates free stream values. It is used to assess pressure distribution for different designs. 2015 ANSYS, Inc. March 13, 2015 14 Release 16.0

Post Processing Pressure Coefficient (c P ) To plot the pressure coefficient you will need to create a new variable. On the Variables tab, right-click anywhere in the window and select New Provide a name for the variable, e.g. cp. Do not call it Cp as this is reserved for specific heat at constant pressure - names of system variables must not be used for expressions or user variables. Enter the expression shown below: Here the relative static pressure, p, is assumed to be 0 [Pa]. 2015 ANSYS, Inc. March 13, 2015 15 Release 16.0

Post Processing c P chart Create a chart to plot the pressure coefficient against X on the polyline. It shows the expected shape with a value just above 1 at the stagnation point (typical for compressible flow) and a recovery to a slightly positive value at the trailing edge. Import the experimental data by editing the details of the graph to include another data series: Data Series New Name = Experimental Data Source File Browse ExperimentalData.csv Apply 2015 ANSYS, Inc. March 13, 2015 16 Release 16.0

Post Processing Contour Plots Examine the contours of static pressure Note the high pressure at the nose and low pressure on the upper (suction) surface. The latter is expected as the airfoil wing is generating lift. 2015 ANSYS, Inc. March 13, 2015 17 Release 16.0

Post Processing Contour Plots Examine the contours of Mach Number Notice that the flow is locally supersonic (Mach Number > 1) as the flow accelerates over the upper surface of the wing 2015 ANSYS, Inc. March 13, 2015 18 Release 16.0

Best Practice Study The current results are not satisfactory We should perform a Best Practice Study to understand sources of error and reduce the errors (more details in the lecture on Best Practice Guidance) There are 5 categories of error: Round-Off errors Iterations errors Discretization errors Modelling errors Systematic errors The first three are numerical errors that should be removed from every simulation before modelling and systematic errors are investigated! 2015 ANSYS, Inc. March 13, 2015 19 Release 16.0

Best Practice Study The following slides give general guidance rather than step-by-step instructions. Tip: Multiple Systems can share: (Upstream) Geometry and Mesh Sessions (Downstream) Post-processing sessions There will be several valid schemes 2015 ANSYS, Inc. March 13, 2015 20 Release 16.0

Best Practice Study Getting Started: For the following runs adapt the Solver Controls Increase Max Iterations to 500 Set Timescale Control > Aggressive (to speed up the simulation) Set as Convergence Criterion Residual Type RMS Residual Target 1e-4 Do not run the solver yet. 2015 ANSYS, Inc. March 13, 2015 21 Release 16.0

Test 1: Round-Off Errors Round-off errors arise from the accuracy (number of significant digits) your computer processor works to. There are many factors that determine whether SINGLE PRECISION is sufficient, or whether DOUBLE PRECISION is needed. Task: Run the simulation (with the new settings from the last slide) twice more. For the second run switch on Double Precision. Compare the drag and lift coefficients displayed in the User Points monitor. If you see a difference, then DOUBLE PRECISION should be used. (Why? In this case there are some very high aspect ratio grid cells) 2015 ANSYS, Inc. March 13, 2015 22 Release 16.0

Test 2: Iteration Errors A well-posed CFD simulation converges monotonically towards the correct solution. How many iterations are needed? Check the Residuals, Imbalances and changes to Monitor Points. As these decrease, the iteration error decreases. Task: Look at the residuals in the Solver Manager If we switch to the Max Residuals, we can see that those for Mass and Momentum are still > 1e-3 The Monitor Points for Lift and Drag are not converged The Imbalances are low (< 0.1 %) Change the following settings in the Solver Control section in CFX-Pre Residual Type Max Residual Target 1e-5 (this is quite strict) Conservation Target of 0.01 2015 ANSYS, Inc. March 13, 2015 23 Release 16.0

Test 2: Iteration Errors (Cont) After running on the simulation with these more demanding criteria, you should find that: All residuals reach the strict convergence criterion This happens before reaching the maximum number of iterations The monitor points are now very well converged The imbalances are much below the chosen criterion 2015 ANSYS, Inc. March 13, 2015 24 Release 16.0

Test 3: Discretization Errors The CFD solution is computed at a number of discrete locations, defined by nodes in the mesh. How do we know that the mesh is fine enough to give a true simulation of the flow? It is important to check that we reach mesh independence to minimise Discretization errors. Task: Recompute this simulation and examine the results for the mesh files: 1) naca0012medium.cfx5 2) naca0012fine.cfx5 Duplicate the system and right-click on the Imported Mesh cell to import the new mesh. We expect you will observe that: There is a big difference between the solutions on the coarse and medium meshes The results from the medium and the fine mesh are almost identical Therefore we should use the mesh: naca0012medium.cfx5 2015 ANSYS, Inc. March 13, 2015 25 Release 16.0

Test 4: Modelling Errors For some aspects of the physics the CFD solver cannot provide an exact solution. For example, turbulence is essentially a random process. Task: We know that a proper resolution of the boundary layer will have a strong influence on the quality of the solution of this test case. This is guarantueed by a proper mesh resolution and the automatic wall treatment of the SST turbulence model. Change to the k-epsilon turbulence model and recompute the flow. This model applies a scalable wall function, which cannot resolve the influence of the viscous sublayer. Check the influence on the results. 2015 ANSYS, Inc. March 13, 2015 26 Release 16.0

Test 5: Systematic Errors Systematic Errors arise from the workflow and assumptions that have been made. For example: The geometry might have been simplified (Fillets removed) Only part of the device is simulated (just a single turbine blade) Steady-state simulation of a naturally unsteady flow. We do not suggest that you explore Systematic Errors here since that would modification of the original geometry. Factors to bear in mind are: Were the domain boundaries far enough away from the airfoil? Are there 3D effects to consider? For example, the experiment could not be pure 2D as there would be sides to the wind tunnel. 2015 ANSYS, Inc. March 13, 2015 27 Release 16.0

Wrap-up This workshop has shown the basic steps that are applied during CFD simulations: Defining material properties. Setting boundary conditions and solver settings Running a simulation whilst monitoring quantities of interest Post-processing the results One of the important things to remember in your own work is, before even starting the ANSYS software, is to think WHY you are performing the simulation: What information are you looking for? What do you know about the flow conditions? In this case we were interested in the lift (and drag) generated by a standard airfoil and how well the solver predicted these when compared to high quality experimental data Knowing your aims from the start will help you make sensible decisions about how much of the part to simulate, the level of mesh refinement needed, and which numerical schemes to select 2015 ANSYS, Inc. March 13, 2015 28 Release 16.0

References T.J. Coakley, Numerical Simulation of Viscous Transonic Airfoil Flows, NASA Ames Research Center, AIAA-87-0416, 1987 C.D. Harris, Two-Dimensional Aerodynamic Characteristics of the NACA 0012 Airfoil in the Langley 8-foot Transonic Pressure Tunnel, NASA Ames Research Center, NASA TM 81927, 1981 2015 ANSYS, Inc. March 13, 2015 29 Release 16.0