Grid Generation and Post- Processing for Computational. Tao Xing and Fred Stern

Similar documents
Express Introductory Training in ANSYS Fluent Lecture 1 Introduction to the CFD Methodology

ME6130 An introduction to CFD 1-1

Application of CFD Simulation in the Design of a Parabolic Winglet on NACA 2412

A. Hyll and V. Horák * Department of Mechanical Engineering, Faculty of Military Technology, University of Defence, Brno, Czech Republic

Abaqus/CFD Sample Problems. Abaqus 6.10

Steady Flow: Laminar and Turbulent in an S-Bend

Introduction to ANSYS

Customer Training Material. Lecture 2. Introduction to. Methodology ANSYS FLUENT. ANSYS, Inc. Proprietary 2010 ANSYS, Inc. All rights reserved.

Multiphase Flow - Appendices

Computational Modeling of Wind Turbines in OpenFOAM

TWO-DIMENSIONAL FINITE ELEMENT ANALYSIS OF FORCED CONVECTION FLOW AND HEAT TRANSFER IN A LAMINAR CHANNEL FLOW

Using CFD to improve the design of a circulating water channel

Aeroelastic Investigation of the Sandia 100m Blade Using Computational Fluid Dynamics

Overset Grids Technology in STAR-CCM+: Methodology and Applications

Simulation of Fluid-Structure Interactions in Aeronautical Applications

An Overview of the Finite Element Analysis

Laminar Flow in a Baffled Stirred Mixer

Use of OpenFoam in a CFD analysis of a finger type slug catcher. Dynaflow Conference 2011 January , Rotterdam, the Netherlands

NUMERICAL ANALYSIS OF THE EFFECTS OF WIND ON BUILDING STRUCTURES

Aeroacoustic simulation based on linearized Euler equations and stochastic sound source modelling

This tutorial provides a recipe for simulating L

Lecture 6 - Boundary Conditions. Applied Computational Fluid Dynamics

CFD Analysis on Airfoil at High Angles of Attack

Aerodynamic Design Optimization Discussion Group Case 4: Single- and multi-point optimization problems based on the CRM wing

University Turbine Systems Research 2012 Fellowship Program Final Report. Prepared for: General Electric Company

CROR Noise Generation Mechanism #3: Installation Effects (& Quadrupole Noise)

THE CFD SIMULATION OF THE FLOW AROUND THE AIRCRAFT USING OPENFOAM AND ANSA

CFD software overview comparison, limitations and user interfaces

Module 6 Case Studies

(1) 2 TEST SETUP. Table 1 Summary of models used for calculating roughness parameters Model Published z 0 / H d/h

Finite Element Formulation for Plates - Handout 3 -

Introduction to Visualization with VTK and ParaView

Aerodynamic Department Institute of Aviation. Adam Dziubiński CFD group FLUENT

Set up and solve a transient problem using the pressure-based solver and VOF model.

Keywords: CFD, heat turbomachinery, Compound Lean Nozzle, Controlled Flow Nozzle, efficiency.

O.F.Wind Wind Site Assessment Simulation in complex terrain based on OpenFOAM. Darmstadt,

Introduction to ANSYS ICEM CFD

AN EFFECT OF GRID QUALITY ON THE RESULTS OF NUMERICAL SIMULATIONS OF THE FLUID FLOW FIELD IN AN AGITATED VESSEL

HEAT TRANSFER ANALYSIS IN A 3D SQUARE CHANNEL LAMINAR FLOW WITH USING BAFFLES 1 Vikram Bishnoi

Dimensional Analysis

Lift and Drag on an Airfoil ME 123: Mechanical Engineering Laboratory II: Fluids

CFD ANALYSIS OF CONTROLLABLE PITCH PROPELLER USED IN MARINE VEHICLE

Keywords: Heat transfer enhancement; staggered arrangement; Triangular Prism, Reynolds Number. 1. Introduction

Chapter 2. Derivation of the Equations of Open Channel Flow. 2.1 General Considerations

Begin creating the geometry by defining two Circles for the spherical endcap, and Subtract Areas to create the vessel wall.

Essential Mathematics for Computer Graphics fast

11.1. Objectives. Component Form of a Vector. Component Form of a Vector. Component Form of a Vector. Vectors and the Geometry of Space

Introduction to COMSOL. The Navier-Stokes Equations

The influence of mesh characteristics on OpenFOAM simulations of the DrivAer model

The elements used in commercial codes can be classified in two basic categories:

Lecture 11 Boundary Layers and Separation. Applied Computational Fluid Dynamics

Turbulence Modeling in CFD Simulation of Intake Manifold for a 4 Cylinder Engine

Flow Physics Analysis of Three-Bucket Helical Savonius Rotor at Twist Angle Using CFD

Introduction to CFD Analysis

COMPUTATIONAL FLUID DYNAMICS (CFD) ANALYSIS OF INTERMEDIATE PRESSURE STEAM TURBINE

CONVERGE Features, Capabilities and Applications

We can display an object on a monitor screen in three different computer-model forms: Wireframe model Surface Model Solid model

How To Run A Cdef Simulation

Introduction to CFD Analysis

Basic Equations, Boundary Conditions and Dimensionless Parameters

Practical Grid Generation Tools with Applications to Ship Hydrodynamics

Practice Problems on Boundary Layers. Answer(s): D = 107 N D = 152 N. C. Wassgren, Purdue University Page 1 of 17 Last Updated: 2010 Nov 22

QUT Digital Repository:

Ravi Kumar Singh*, K. B. Sahu**, Thakur Debasis Mishra***

Lecture 7 - Meshing. Applied Computational Fluid Dynamics

TWO-DIMENSIONAL TRANSFORMATION

Finite Element Method (ENGC 6321) Syllabus. Second Semester

Performance prediction of a centrifugal pump working in direct and reverse mode using Computational Fluid Dynamics

Turbulent Flow Through a Shell-and-Tube Heat Exchanger

du u U 0 U dy y b 0 b

Introductory FLUENT Training

Chapter 13 OPEN-CHANNEL FLOW

Tutorial: 3D Pipe Junction Using Hexa Meshing

INTRODUCTION TO FLUID MECHANICS

NACA Nomenclature NACA NACA Airfoils. Definitions: Airfoil Geometry

Lecturer, Department of Engineering, Lecturer, Department of Mathematics,

CosmosWorks Centrifugal Loads

Tutorial: 2D Pipe Junction Using Hexa Meshing

. Address the following issues in your solution:

Application of Wray-Agarwal Model to Turbulent Flow in a 2D Lid-Driven Cavity and a 3D Lid- Driven Box

Aeroacoustic Analogy for the Computation of Aeroacoustic Fields in Partially Closed Domains

Trace Layer Import for Printed Circuit Boards Under Icepak

NUMERICAL ANALYSIS OF WELLS TURBINE FOR WAVE POWER CONVERSION

Lecture L22-2D Rigid Body Dynamics: Work and Energy

Effect of Aspect Ratio on Laminar Natural Convection in Partially Heated Enclosure

A fundamental study of the flow past a circular cylinder using Abaqus/CFD

Current Standard: Mathematical Concepts and Applications Shape, Space, and Measurement- Primary

Fundamentals of Fluid Mechanics

FLUID FLOW STREAMLINE LAMINAR FLOW TURBULENT FLOW REYNOLDS NUMBER

METHODS FOR ACHIEVEMENT UNIFORM STRESSES DISTRIBUTION UNDER THE FOUNDATION

Algebra Academic Content Standards Grade Eight and Grade Nine Ohio. Grade Eight. Number, Number Sense and Operations Standard

Part IV. Conclusions

GEOMETRIC, THERMODYNAMIC AND CFD ANALYSES OF A REAL SCROLL EXPANDER FOR MICRO ORC APPLICATIONS

4.3 Results Drained Conditions Undrained Conditions References Data Files Undrained Analysis of

Differential Relations for Fluid Flow. Acceleration field of a fluid. The differential equation of mass conservation

Distinguished Professor George Washington University. Graw Hill

XFlow CFD results for the 1st AIAA High Lift Prediction Workshop

GAMBIT Demo Tutorial

MestRe-C User Guide Megan Bragg 04/14/05

CFD Simulation of the NREL Phase VI Rotor

Transcription:

Grid Generation and Post- Processing for Computational Fluid Dynamics (CFD) Tao Xing and Fred Stern

Outline 1. Introduction 2. Choice of grid 2.1. Simple geometries 2.2. Complex geometries 3. Grid generation 3.1. Conformal mapping 3.2. Algebraic methods 3.3. Differential equation methods 3.4. Commercial software 3.5. Systematic grid generation for CFD UA 4. Post-processing 4.1. UA (details in Introduction to CFD ) 4.2. Calculation of derived variables 4.3. Calculation of integral variables 4.4. Visualization 5. References and books 2

Introduction The numerical solution of partial differential equations requires some discretization of the field into a collection of points or elemental volumes (cells) The differential equations are approximated by a set of algebraic equations on this collection, which can be solved to produce a set of discrete values that approximate the solution of the PDE over the field Grid generation is the process of determining the coordinate transformation that maps the body-fitted nonuniform non-orthogonal physical space x,y,z,t into the transformed uniform orthogonal computational space, ξ,η,ζ,τ. Post-processing is the process to examine and analyze the flow field solutions, including contours, vectors, streamlines, Iso-surfaces, animations, and CFD Uncertainty t Analysis. 3

Choice of grid Simple/regular geometries (e.g. pipe, circular cylinder): the grid lines usually follow the coordinate directions. Complex geometries (Stepwise Approximation) 1. Using Regular Grids to approximate solution domains with inclined or curved boundaries by staircase-like steps. 2. Problems: (1). Number of grid points (or CVs) per grid line is not constant, special arrays have to be created (2). Steps at the boundary introduce errors into solutions (3). Not recommended except local grid refinement near the wall is possible. An example of a grid using stepwise approximation of an Inclined boundary 4

Choice of grid, cont d Complex geometries (Overlapping Chimera grid) 1. Definition: Use of a set of grids to cover irregular solution domains 2. Advantages: (1). Reduce substantially the time and efforts to generate a grid, especially for 3D configurations with increasing geometric complexity (2). It allows without additional difficulty calculation of flows around moving bodies 3. Disadvantages: (1). The programming and coupling of the grids can be complicated (2). Difficult to maintain conservation at the interfaces (3). Interpolation process may introduce errors or convergence problems if the solution exhibits strong variation near the interface. 5

Choice of grid, cont d Chimera grid (examples): CFDSHIP-IOWAIOWA Different grid distribution ib ti approaches 6

Choice of grid, cont d Chimera grid (examples): 7

Choice of grid, cont d Complex geometries (Boundary-Fitted Non-Orthogonal Grids) 1. Types: (1). Structured (2). Block-structured (3). Unstructured 2. Advantages: (1). Can be adapted to any geometry (2). Boundary conditions are easy to apply (3). Grid spacing can be made smaller in regions of strong variable variation. 3. Disadvantages: (1). The transformed equations contain more terms thereby increasing both the difficulty of programming and the cost of solving the equations (2). The grid non-orthogonality may cause unphysical solutions. 8

Choice of grid, cont d Complex geometries (Boundary-Fitted Non-Orthogonal Grids) structured Block-structured With matching interface Unstructured Block-structured Without matching interface 9

Grid generation Conformal mapping: based on complex variable theory, which is limited to two dimensions. Algebraic methods: 1. 1D: polynomials, Trigonometric functions, Logarithmic functions 2. 2D: Orthogonal one-dimensional transformation, normalizing transformation, connection functions 3. 3D: Stacked two-dimensional transformations, superelliptical boundaries Differential equation methods: Step 1: Determine the grid point distribution on the boundaries of the physical space. Step 2:Assume the interior grid point is specified by a differential equation that t satisfies the grid point distributions ib ti specified on the boundaries and yields an acceptable interior grid point distribution. Commercial software (Gridgen, Gambit, etc.) 10

Grid generation (examples) Orthogonal one-dimensional transformation Superelliptical transformations: (a) symmetric; (b) centerbody; (c) asymmetric 11

Grid generation (commercial software, gridgen) Commercial software GRIDGEN will be used to illustrate typical grid generation procedure 12

Grid generation (Gridgen, 2D pipe) Geometry: two-dimensional axisymmetric circular pipe Creation of connectors: connectors create 2 points connectors input x,y,z of the two points Done. Dimension of connectors: Connectors modify Redimension 40 Done. (0,0.5) C3 (1,0.5) Repeat the procedure to create C2, C3, and C4 C4 C2 (0,0) C1 (1,0) 13

Grid generation (Gridgen, 2D pipe, cont d) Creation of Domain: domain create structured Assemble edges Specify edges one by one Done. Redistribution of grid points: Boundary layer requires grid refinement near the wall surface. select connectors (C2, C4) modify redistribute grid ib id spacing(start+end) with distribution function For turbulent flow, the first grid spacing near the wall, i.e. matching point, could have different values when different turbulent models applied (near wall or wall function). Grid may be used for laminar flow Grid may be used for turbulent flow 14

Grid generation (3D NACA12 foil) Geometry: two-dimensional twodimensional NACA12 airfoil with 60 degree angle of attack Creation of geometry: unlike the pipe, we have to import the database for NACA12 into Gridgen and create connectors based on that (only half of the geometry shape was imported due to symmetry). input database import the geometry data connector create on DB entities delete database Creation of connectors C1 (line), C2(line), C3(half circle) Half of airfoil surface C3 C1 C2 Half of airfoil surface 15

Grid generation (3D NACA12 airfoil, cont d) Redimensions of the four connectors and create domain Redistribute the grid distribution for all connectors. Especially refine the grid near the airfoil surface and the leading and trailing edges 16

Grid generation (3D NACA12 airfoil, cont d) Duplicate the other half of the domain: domain modify mirror modify mirror respect to y=0 Done. Rotate the whole domain with angle of attack 60 degrees: domain modify rotate using z-principle p axis enter rotation angle:-60 Done. 17

Grid generation (3D NACA12 airfoil, cont d) Create 3D block: blocks create extrude create extrude from domains specify translate distance and direction Run N Done. Split the 3D block to be four blocks: block modify split in ξ direction ξ =? Done. Specify boundary conditions and export Grid and BCS. Block 1 Block 1 Block 2 Block 4 Block 2 Block 4 Block 3 Block 3 3D before split After split (2D view) After split (3D view) 18

Systematic grid generation for CFD UA CFD UA analysis requires a series of meshes with uniform grid refinement ratio, usually start from the fine mesh to generate coarser grids. A tool is developed to automate this process, i.e., each fine grid block is input into the tool and a series of three, 1D interpolation is performed to yield a medium grid block with the desired non-integer grid refinement ratio. 1D interpolation ti is the same for all three directions. Consider 1D line segment with N 1and N2 = 1+ ( N1 1 )/ r G points for the fine and medium grids, respectively. step 1: compute the fine grid size at each grid node: step 2: compute the medium grid distribution: Δ x 1i Δ x = r Δ x 2 G 1 i Δ x = 1 x i 1 x i 1i x = x +Δx 2 2 2 i i 1 i where from the first step is interpolated at location 2 i step 3: The medium grid distribution x 2i is scaled so that the fine and i medium grid line segments are the same (i.e., x2 = x ) N 1 2 N1 step4: The procedure is repeated until it converges i x 19 1

Post-Processing Uncertainty analysis: estimate order of accuracy, correction factor, and uncertainties (for details, CFD Lecture 1, introduction to CFD). MPI functions required to combine data from different blocks if parallel l computation ti used Calculation of derived variables (vorticity, shear stress) Calculation of integral variables (forces, lift/drag coefficients) Calculation of turbulent quantities: Reynolds stresses, energy spectra Visualization 1. XY plots (time/iterative history of residuals and forces, wave elevation) 2. 2D contour plots (pressure, velocity, vorticity, eddy viscosity) 3. 2D velocity vectors 4. 3D Iso-surface plots (pressure, vorticity magnitude, Q criterion) 5. Streamlines, Pathlines, streaklines 6. Animations Other techniques: es Fast Fourier Transform (FFT), Phase averaging aging 20

Post-Processing (visualization, XY plots) Lift and drag coefficients of NACA12 with 60 o angle of attack (CFDSHIP-IOWA, DES) Wave profile of surface-piercing NACA24, Re=1.52e6, Fr=0.37 (CFDSHIP-IOWA, DES) 21

Post-Processing (visualization, Tecplot) Different colors illustrate different blocks (6) () Re=10^5, DES, NACA12 with angle of attack 60 degrees 22

Post-Processing (NACA12, 2D contour plots, vorticity) Define and compute new variable: Data Alter Specify S equations vorticity in x,y plane: v10 compute OK. 23

Post-Processing (NACA12, 2D contour plot) Et Extract t2d slice from 3D geometry: Data Extract Slice t t Sli from plane z=0.5 extract 24

Post-Processing (NACA12, 2D contour plots) 2D contour plots on z=0.5 plane (vorticity and eddy viscosity) Vorticity ω z Eddy viscosity 25

Post-Processing (NACA12, 2D contour plots) 2D contour plots on z=0.5 plane (pressure and streamwise velocity) Pressure Streamwise velocity 26

Post-Processing (2D velocity vectors) 2D velocity vectors on z=0.5 plane: turn off contour and activate vector, specify the vector variables. Zoom in 27

Post-Processing (3D Iso-surface plots, cont d) 3D Iso-surface plots: pressure, p=constant 3D Iso-surface plots: vorticity magnitude Ω= ω + ω + ω 3D Iso-surface plots: λ 2 criterion Second eigenvalue of 1 2 p 2ρ 3D Iso-surface plots: Q criterion ( Ω Ω S ) Q S ij ij ij ij 2 2 2 x y z 1 = Ω = ( u u ) 2 2 ij ij ( u u ) 2 S = + i, j j, i i, j j, i 28

Post-Processing (3D Iso-surface plots) 3D Iso-surface plots: used to define the coherent vortical structures, including pressure, voriticity magnitude, Q criterion, λ 2, etc. Iso-surface of vorticity magnitude 29

Post-Processing (streamlines) Streamlines (2D): Streaklines and pathlines (not shown here) Streamlines with contour of pressure 30

Post-Processing (Animations) Animations (3D): animations can be created by saving CFD solutions with or without skipping certain number of time steps and playing the saved frames in a continuous sequence. Animations are important tools to study time-dependent developments of vortical/turbulent structures and their interactions Q=0.4 31

Other Post-Processing techniques Fast Fourier Transform 1. A signal can be viewed from two different standpoints: the time domain and the frequency domain 2. The time domain is the trace on an signal (forces, velocity, pressure, etc.) where the vertical deflection is the signals amplitude, and the horizontal deflection is the time variable 3. The frequency domain is like the trace on a spectrum analyzer, where the deflection is the frequency variable and the vertical deflection is the signals amplitude at that frequency. 4. We can go between the above two domains using (Fast) Fourier Transform Phase averaging (next two slides) 32

Other Post-Processing techniques (cont d) Phase averaging Assumption: the signal should have a coherent dominant frequency. Steps: 1. a filter is first used to smooth the data and remove the high frequency noise that can cause errors in determining the peaks. 2. once the number of peaks determined, zero phase value is assigned at each maximum value. 3. Phase averaging is implemented using the triple decomposition. ' ' () = () + () + () = () + () 1 1 lim lim 1 T z() t = z() t dt T T () N z t = z( t+ nτ ) N n= 0 0 organized oscillating i component z() t mean component z ( t) ' z () t random fluctuating component z t z t z t z t z t z t τ () z t is the time period of fthe dominant tfrequency is the phase average associated with the coherent structures 33

Other Post-Processing techniques (cont d) FFT and Phase averaging (example) Original, phase averaged, and random fluctuations of the wave elevation at one point FFT of wave elevation time histories at one point 34

References and books User Manual for GridGen User Manual for Tecplot Numerical recipes: http://www.library.cornell.edu/nr/ Sung J. & Yoo J. Y., Three Dimensional Phase Averaging of Time Resolved PIV measurement data, Measurement of Science and Technology, Volume 12, 2001, pp. 655-662. Joe D. Hoffman, Numerical Methods for Engineers and Scientists, McGraw-Hill, Inc. 1992. Y. Dubief and F. Delcayre, On Coherent-vortex Identification in Turbulence, Journal of Turbulence, Vol. 1, 2000, pp. 1-20. 35