Good Practice in CFD Dr Neil Bressloff 13th & 14th October 2005

Slides:



Advertisements
Similar presentations
School of Mechanical, Aerospace & Civil Engineering Postgraduate Research Conference, PGR-MACE10 Performance of two k T -k L -ω models in a separation-induced.
Advertisements

P.V. PANEL WIND LOAD EFFECTS F EBRUARY 2011 Arman Hemmati, Brady Zaiser, Chaneel Park, Jeff Symons, Katie Olver Design Review #3 TEAM 12.
Fluent Overview Ahmadi/Nazridoust ME 437/537/637.
Outline Overview of Pipe Flow CFD Process ANSYS Workbench
© Fluent Inc. 4/16/ Introductory GAMBIT Notes GAMBIT v2.0 Jan 2002 Fluent User Services Center Edge and Face Meshing.
The analysis of the two dimensional subsonic flow over a NACA 0012 airfoil using OpenFoam is presented. 1) Create the geometry and the flap Sequence of.
University of Western Ontario
Modelling FSI problems in ANSYS Fluent via UDF
Output - Derived Variables Derived Variables are quantities evaluated from the primitive (or solved) variables by PHOENICS. It means, PHOENICS first solve.
© Fluent Inc. 5/10/2015N1 Fluids Review TRN Postprocessing and Visualization.
Computer Simulation of Vehicle Aerodynamic Forces and Moments Using Fluent 6.2 MSC VisualNastran 4D WorkingModel 2D Zerguy Maazouddin California State.
Workshop 6 Modeling of Catalytic Convertor
Workshop 5 Centrifugal Pump
Workshop XX Transonic Flow over a RAE 2822 Airfoil
Advanced CFD Analysis of Aerodynamics Using CFX
Who Wants to Be a CFD Expert? In the ME 566 course title, CFD for Engineering Design, what does the acronym CFD stand for? A.Car Free Day B.Cash Flow Diagram.
Review: CFD Step by Step
1/36 Gridless Method for Solving Moving Boundary Problems Wang Hong Department of Mathematical Information Technology University of Jyväskyklä
Theoretical & Industrial Design of Aerofoils P M V Subbarao Professor Mechanical Engineering Department An Objective Invention ……
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.
Grid Generation.
AIAA th AIAA/ISSMO Symposium on MAO, 09/05/2002, Atlanta, GA 0 AIAA OBSERVATIONS ON CFD SIMULATION UNCERTAINITIES Serhat Hosder,
Introduction to CFD Analysis
Workshop 2 Transonic Flow over a NACA 0012 Airfoil
2D unsteady computations for COSDYNA > Tony Gardner > Folie 1 2D unsteady computations with deformation and adaptation for COSDYNA Tony Gardner.
CENTRAL AEROHYDRODYNAMIC INSTITUTE named after Prof. N.E. Zhukovsky (TsAGI) Multigrid accelerated numerical methods based on implicit scheme for moving.
CFD Pre-Lab 2 Simulation of Turbulent Flow around an Airfoil Seong Mo Yeon, and Timur Dogan 11/12/2013.
CFD Lab - Department of Engineering - University of Liverpool Ken Badcock & Mark Woodgate Department of Engineering University of Liverpool Liverpool L69.
Workshop 3 Room Temperature Study (Part 1)
CFD Refinement By: Brian Cowley. Overview 1.Background on CFD 2.How it works 3.CFD research group on campus for which problem exists o Our current techniques.
CFX-10 Introduction Lecture 1.
Using the Segregated and Coupled Solvers
WS7-1 ANSYS, Inc. Proprietary © 2009 ANSYS, Inc. All rights reserved. April 28, 2009 Inventory # Introductory FLUENT Training Workshop 7 Tank Flushing.
CFD Study of the Development of Vortices on a Ring Wing
Wind Energy Program School of Aerospace Engineering Georgia Institute of Technology Computational Studies of Horizontal Axis Wind Turbines PRINCIPAL INVESTIGATOR:
AIAA th AIAA/ISSMO Symposium on MAO, 09/05/2002, Atlanta, GA 0 AIAA OBSERVATIONS ON CFD SIMULATION UNCERTAINTIES Serhat Hosder, Bernard.
By Arseniy Kotov CAL POLY San Luis Obispo, Aerospace Engineering Intern at Applied Modeling & Simulation Branch Mentors: Susan Cliff, Emre Sozer, Jeff.
13-1 ANSYS, Inc. Proprietary © 2009 ANSYS, Inc. All rights reserved. April 28, 2009 Inventory # Chapter 13 Solver.out File and CCL Introduction to.
1 Tutorial. 2 Solution Process 1.Gather Information 2.Create the Computational Grid 3.Set the Boundary Conditions 4.Set the Initial Conditions 5.Set the.
Indian Institute of Space Science and Technology STUDY OF EFFECT OF GAS INJECTION OVER A TORPEDO ON FLOW-FIELD USING CFD.
AERODYNAMIC OPTIMIZATION OF REAR AND FRONT FLAPS ON A CAR UNIVERSITY OF GENOVA – POLYTECHNIC SCHOOL ADVANCED FLUID DYNAMICS COURSE 2015/2016 Student: Giannoni.
Version 1.0 3/23/2007 © 2007 ANSYS, Inc. All rights reserved. Inventory # W0-1 BladeModeler 11.0 ANSYS, Inc. Proprietary ANSYS TurboSystem Practical.
XFLR5 Airfoil, Wing and Plane Analysis
Review of Airfoil Aerodynamics
A V&V Overview of the 31st Symposium on Naval Hydrodynamics
Workshop 6 Electronics Cooling with Natural Convection and Radiation
Workshop 7 Tank Flushing
Simulation of Pipe Flow Using FlowLab 1.1 (PreLab 1)
P M V Subbarao Professor Mechanical Engineering Department
Chapter 13 Solver .out File and CCL
Workshop 6 Modeling of Catalytic Convertor
Kratos 3D Structural Analysis Tutorial
Betz Theory for A Blade Element
Control of Boundary Layer Structure for Low Re Blades
Workshop 5 Centrifugal Pump
DPW-4 Results For NSU3D on LaRC Grids
Workshop 2 Transonic Flow Over a NACA 0012 Airfoil.
Fluent Overview Ahmadi/Nazridoust ME 437/537/637.
© Fluent Inc. 8/24/ Introductory FLUENT Notes FLUENT v6.0 Jan 2002 Fluent User Services Center Introduction to CFD Analysis.
Convergence in Computational Science
Simulation of turbulent airfoil Flow Using FlowLab 1.1 (CFD PreLab 2)
Fluid Flow Regularization of Navier-Stokes Equations
The application of an atmospheric boundary layer to evaluate truck aerodynamics in CFD “A solution for a real-world engineering problem” Ir. Niek van.
AIAA OBSERVATIONS ON CFD SIMULATION UNCERTAINITIES
AIAA OBSERVATIONS ON CFD SIMULATION UNCERTAINTIES
Convergence in Numerical Science
AIAA OBSERVATIONS ON CFD SIMULATION UNCERTAINTIES
Mesh Control using Size Functions and Boundary Layers
Applications of CFD 2008 Neil W. Bressloff N. W. Bressloff
Dual Induction theory for Wind Turbines
Presentation transcript:

Good Practice in CFD Dr Neil Bressloff 13th & 14th October 2005 Spalart-Allmaras, 1000 iterations, Turb. Visc. Ratio at inlet. 13th & 14th October 2005

Which of the above Cp variations is correct ? Good Practice in CFD, 2005 Introduction Which of the above Cp variations is correct ? Is either of them correct ? If so, how accurate are they ? Do the associated solutions yield physically meaningful results ?

Preamble: Using Gambit and Fluent efficiently Good Practice in CFD, 2005 Preamble: Using Gambit and Fluent efficiently GUI Precision Input (journal) files Batch mode Running in parallel Check memory usage and machine load Monitor solution and auto-save

Preamble: Using Gambit and Fluent efficiently (2) Good Practice in CFD, 2005 Preamble: Using Gambit and Fluent efficiently (2) GUI (Unix, linux) gambit & fluent & gambit –r2.0.4 –id rae2822 & fluent –r6.2.16 2ddp & session name version version Two-dimensional, double precision

Preamble: Using Gambit and Fluent efficiently (3) Good Practice in CFD, 2005 Preamble: Using Gambit and Fluent efficiently (3) Single or Double Precision? 28,000 quadrilaterals, Realizable k-epsilon turbulence model Single precision requires 54 MBytes memory Double precision requires 96 Mbytes memory Results identical here (in terms of force coefficients) BUT, this should always be checked If memory is available, use double precision

Preamble: Using Gambit and Fluent efficiently (4) Good Practice in CFD, 2005 Preamble: Using Gambit and Fluent efficiently (4) Input (journal) files all menu options (widgets, clicks etc) are available through command-line instructions. store instructions/commands in input log files alternatively, load and edit an existing dbs file (Gambit) or cas and dat file (Fluent)

Gambit input file example (1) Good Practice in CFD, 2005 Gambit input file example (1) vertex create "PT128" coordinates 0.997592 0.000137 0 vertex create "PT129" coordinates 0.999398 3.5e-05 0 vertex create "PT130" coordinates 1 0 0 / / ***************************** / / *** Define aerofoil edges *** / / * suction side edge create "upper" nurbs "PT1" "PT2" "PT3" "PT4" "PT5" "PT6" "PT7" "PT8“ interpolate face create radius 10 xyplane circle face create "foil" wireframe "upper" "lower" real face subtract "face.1" faces "foil"

Gambit input file example (2) Good Practice in CFD, 2005 Gambit input file example (2) edge mesh "edge.4" "edge.5" successive ratio1 1.1 ratio2 1.1 intervals 40 / blayer create first 1e-03 growth 1.4 total 0.1 transition 1 \ trows 0 wedge blayer attach "b_layer.1" face "face.1" "face.1" edge "edge.4" "edge.5" /* And generate mesh on the domain face face mesh "face.1" triangle size 1 solver select "FLUENT 5/6" / * and then set the BCs physics create "upper" btype "WALL" edge "edge.4" physics create "lower" btype "WALL" edge "edge.5" physics create "pressure-far" btype "PRESSURE_FAR_FIELD" edge "edge.3" / * we can save the mesh here as well export fluent5 "acfd40a.msh" nozval

Fluent input file example (1) Good Practice in CFD, 2005 Fluent input file example (1) file read-case "/home1/utp-10/nwb/Aerocfd/2006/r6_from2005_bl_10m3.msh" grid check define models solver coupled-implicit yes define models energy yes define models viscous spalart-allmaras yes define models viscous sa-alt-prod yes define materials change-create air air yes ideal-gas yes constant 1006.43 no yes constant 1.983e-05 no no no no no no quit define operating-conditions operating-pressure 0.0 define boundary-conditions pressure-far-field pressure no 43765 no 0.73 no 299.5414 no 0.9988147 no 0.04867544 no no yes no 10 solve set courant-number 20 solve set discretization-scheme amg-c 1 nut 1

Fluent input file example (2) Good Practice in CFD, 2005 Fluent input file example (2) solve monitors residual n-save 10000 n-display 10000 check-convergence yes no no no no solve monitors residual convergence-criteria 0.00000001 plot no print yes solve monitors residual scale-by-coefficient? yes solve monitors force drag-coefficient yes lower upper , no yes "/home1/utp-10/nwb/Aerocfd/2006/cd_10m3" no no 0.9988147 0.04867544 report reference-values zone fluid report reference-values compute pressure-far-field pressure report reference-values area 1.0 solve initialize compute-defaults pressure-far-field pressure solve initialize initialize-flow solve iterate 1000 file write-case "/home1/utp-10/nwb/Aerocfd/2006/10m3_firstorder.cas" write-data "/home1/utp-10/nwb/Aerocfd/2006/10m3_firstorder.dat" quit

Preamble: Using Gambit and Fluent efficiently (5) Good Practice in CFD, 2005 Preamble: Using Gambit and Fluent efficiently (5) Batch mode (Unix, linux) gambit –r2.0.4 –id rae2822 –inp gambit_input1.jou & fluent –r6.2.16 2ddp < fluent_input1.log > fluent_output1.log & Gambit input file Fluent input file Fluent output file

Preamble: Using Gambit and Fluent efficiently (6) Good Practice in CFD, 2005 Preamble: Using Gambit and Fluent efficiently (6) Running in parallel (Unix, linux) fluent –r6.2.16 2ddp –t4 –cnf=hostfile < fluent_input1.log > fluent_output1.log & Gambit input file Number of processes Name of file containing list of processors to use

Preamble: Using Gambit and Fluent efficiently (7) Good Practice in CFD, 2005 Preamble: Using Gambit and Fluent efficiently (7) Check memory usage and machine load Fluent will run slowly if more physical memory is needed than is available the computer is overloaded Type top under Unix or Linux Run task manager under Windows Fluent requires approximately 1GB memory for each million grid cells (in single precision; double precision requires approximately twice as much memory).

Preamble: Using Gambit and Fluent efficiently (8) Good Practice in CFD, 2005 Preamble: Using Gambit and Fluent efficiently (8) Monitor solution and auto-save don’t assume that a solution that appears to converge will continue to do so periodically save the solution using the following command in the Fluent input journal file (or through the appropriate clicks in the menu structure). file auto-save case-freq 1834 dat-freq 1834 root-name "./nwb_cab_3d_"

Standard aerofoil with available experimental data [1] Good Practice in CFD, 2005 Example 1: RAE2822 aerofoil Standard aerofoil with available experimental data [1] Validation: How well can CFD predict pressure, lift and drag coefficients? Mesh (resolution, dependence, boundary layer and turbulence model) Boundary conditions (location and definition) Solution (convergence, order of accuracy) Flow physics (shock capture, separation) [1] Cooke, P., McDonald, M. & Firmin, M. (1979), “Airfoil RAE2822 – Pressure Distribution and Boundary Layer Wake Measurements”, AGARD AR-138.

Example 1: RAE2822 aerofoil (2) Good Practice in CFD, 2005 Example 1: RAE2822 aerofoil (2) The problem under consideration involves flow over an RAE 2822 airfoil at a free-stream Mach number of 0.73. The angle of attack is 3.19 degrees, which corresponds to case 9 in the experimental data of Cooke et al. Since the calculations were done in free-stream conditions, the angle of attack has been modified to account for the wind-tunnel wall effects. An angle of attack equal to 2.79 degrees was used in the calculations, as suggested by Coakley [2]. The domain extends 55 chord lengths from the airfoil, so that the presence of the airfoil is not felt at the outer boundary. [2] Coakley., T. J., 1987, Numerical Simulation of Viscous Transonic Airfoil Flows, AIAA 25th Aerospace Sciences Meeting.

Good Practice in CFD, 2005 Mesh dependence Note steepening of shock

Lack of convergence (very coarse mesh) Good Practice in CFD, 2005 Lack of convergence (very coarse mesh) Demonstrate lack of convergence (actually taken from 10m2 mesh results)

Better boundary layer resolution Good Practice in CFD, 2005 Better boundary layer resolution Spalart-Allmaras, 1000 iterations, Turb. Visc. Ratio at inlet., y+ too high for SA model. First point in BL at 0.001m. Same number of cells (3600) as previous mesh.

Finer mesh (Realizable k-epsilon) Good Practice in CFD, 2005 Finer mesh (Realizable k-epsilon) Realizable k-eps, y+~20, Turb. Visc. Ratio.

Finer mesh (Spalart-Allmaras) Good Practice in CFD, 2005 Finer mesh (Spalart-Allmaras) Spalart-Allmaras, y+ < 2ish, Turb. Visc. Ratio.

Good Practice in CFD, 2005 Order of accuracy Ran from 10m3 RKE NWF

Gradient based adaption Good Practice in CFD, 2005 Gradient based adaption Static pressure gradient, Experiment with adaption thresholds and dynamic adaption 1) Initial refinement; 2) After 100 iterations; 3) Coarsening as well and another 100 iterations; 4) Another 500 iterations.

Good Practice in CFD, 2005 Adaption (2) Grid and X-Y plots not quite at converged state of residual plot

Separation (reverse flow) Good Practice in CFD, 2005 Separation (reverse flow) Adapted 10m3 mesh look at Mach number and separation. Spalart-Allmaras, y+ < 2ish,

Separation (reverse flow) Good Practice in CFD, 2005 Separation (reverse flow) Adapted 10m3 mesh look at Mach number and separation. Angle of attack increased to 5 degrees Spalart-Allmaras, y+ too large, Shock further forward than lower angle of attack.

Increased angle of attack Good Practice in CFD, 2005 Increased angle of attack Angle of attack increased to 5 degrees Spalart-Allmaras, y+ too large, Shock further forward than lower angle of attack.

Mesh dependence (revisited 1) Good Practice in CFD, 2005 Mesh dependence (revisited 1) 50, 100, 200 cells on upper and lower surfaces Outer boundaries 50 chords away Cd experiment = 0.0168 No. of cells Cd 50 0.02135 100 0.01919 200 0.01871

Mesh dependence (revisited 2) Good Practice in CFD, 2005 Mesh dependence (revisited 2) No. of chords Cd 7 0.01958 20 0.01877 50 0.01871 200 cells on foil surfaces Outer boundaries 7, 20, 50 chords away Cd experiment = 0.0168

Final checklist (1) Grid design Geometry Boundary conditions Good Practice in CFD, 2005 Final checklist (1) Grid design Geometry Boundary conditions Boundary layer (Turbulence model) y+ of first grid point how many points in the boundary layer? structured BL or size functions? Avoid skew cells Local resolution (adaption) Run grid check in Fluent Fluent defaults to SI units (i.e. will assume metres)

Good Practice in CFD, 2005 Size functions

Final checklist (2) Validation Compare to experimental data Good Practice in CFD, 2005 Final checklist (2) Validation Compare to experimental data Compare with other simulations Grid dependence At least 3 different grid resolutions 8 times 8? Time dependence At least 3 significantly different time step sizes Use engineering judgement and a sensible Courant number.

Final checklist (3) Solution scheme Segregated or coupled solver ? Good Practice in CFD, 2005 Final checklist (3) Solution scheme Segregated or coupled solver ? Implicit or explicit ? At least 2nd order accuracy (in space and time) Set high under-relaxation parameters Monitor residuals, derived variables, point data Flow physics Post-process (Fluent, Fieldview, TecPlot, Ensight) How meaningful ? Discuss results using graphical evidence Label all axes and figures

Final checklist (4) Convergence problems Mesh quality (errors) Good Practice in CFD, 2005 Final checklist (4) Convergence problems Mesh quality (errors) Boundary conditions Under-relaxation First order and then switch to second order Slowness due to problem size Check memory and CPU power Consider running in parallel speed-up from multiple processors avoid paging through distributed memory

Final checklist (5) Research the literature Good Practice in CFD, 2005 Final checklist (5) Research the literature Journal and conference papers, reports etc Read the Fluent manual Casey, M. & Wintergerste, T., 2000, Special Interest Group on “Quality and Trust in Industrial CFD”, Best Practice Guidelines, Version 1, ERCOFTAC.