Maysam Mousaviraad, Tao Xing and Fred Stern

Slides:



Advertisements
Similar presentations
Potential Flow Theory : Incompressible Flow
Advertisements

Instructor: André Bakker
Outline Overview of Pipe Flow CFD Process ANSYS Workbench
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.
Active Contours, Level Sets, and Image Segmentation
Potential Flows Title: Advisor : Ali R. Tahavvor, Ph.D.
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.
P. Venkataraman Mechanical Engineering P. Venkataraman Rochester Institute of Technology DETC2013 – 12269: Continuous Solution for Boundary Value Problems.
University of Western Ontario
Beams and Frames.
MAE 5130: VISCOUS FLOWS Introduction to Boundary Layers
Boundary Layer Flow Describes the transport phenomena near the surface for the case of fluid flowing past a solid object.
© Fluent Inc. 5/10/2015N1 Fluids Review TRN Postprocessing and Visualization.
Chapter 3 Steady-State Conduction Multiple Dimensions
Copyright 2001, J.E. Akin. All rights reserved. CAD and Finite Element Analysis Most ME CAD applications require a FEA in one or more areas: –Stress Analysis.
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,
Flow Over Immersed Bodies
Copyright © 2002J. E. Akin Rice University, MEMS Dept. CAD and Finite Element Analysis Most ME CAD applications require a FEA in one or more areas: –Stress.
MECH 221 FLUID MECHANICS (Fall 06/07) Chapter 9: FLOWS IN PIPE
Theoretical & Industrial Design of Aerofoils P M V Subbarao Professor Mechanical Engineering Department An Objective Invention ……
DETAILED TURBULENCE CALCULATIONS FOR OPEN CHANNEL FLOW
Potential Flow Theory for Development of A Turbine Blade
EdF meeting 18 May 2009 Review of all the work done under the framework of Code_Saturne by S. Rolfo School of Mechanical, Aerospace & Civil Engineering.
Numerical study of the blade cooling effect generated by multiple jets issuing at different angles and speed into a compressible horizontal cross flow.
III Solution of pde’s using variational principles
© 2011 Autodesk Freely licensed for use by educational institutions. Reuse and changes require a note indicating that content has been modified from the.
1 Finite-Volume Formulation. 2 Review of the Integral Equation The integral equation for the conservation statement is: Equation applies for a control.
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.
Introduction to virtual engineering László Horváth Budapest Tech John von Neumann Faculty of Informatics Institute of Intelligent Engineering.
SOLUTION FOR THE BOUNDARY LAYER ON A FLAT PLATE
AIAA SciTech 2015 Objective The objective of the present study is to model the turbulent air flow around a horizontal axis wind turbine using a modified.
CIS V/EE894R/ME894V A Case Study in Computational Science & Engineering HW 5 Repeat the HW associated with the FD LBI except that you will now use.
Hybrid WENO-FD and RKDG Method for Hyperbolic Conservation Laws
PTT 204/3 APPLIED FLUID MECHANICS SEM 2 (2012/2013)
Finite Element Method.
Basic bluff-body aerodynamics II
CFD Pre-Lab 2 Simulation of Turbulent Flow around an Airfoil Seong Mo Yeon, and Timur Dogan 11/12/2013.
Discontinuous Galerkin Methods and Strand Mesh Generation
Mass Transfer Coefficient
IIT-Madras, Momentum Transfer: July 2005-Dec 2005 Perturbation: Background n Algebraic n Differential Equations.
CFX-10 Introduction Lecture 1.
Ch 4 Fluids in Motion.
Geometry Modeling & Grid Generation
Discretization Methods Chapter 2. Training Manual May 15, 2001 Inventory # Discretization Methods Topics Equations and The Goal Brief overview.
CFD Study of the Development of Vortices on a Ring Wing
1 Zonal Boundary Conditions. 2 Some Basics The flow domain is divided into zones and grids are generated within each zone. The flow equations are solved.
3.3 Separation of Variables 3.4 Multipole Expansion
Steps in Development of 2 D Turbine Cascades P M V Subbarao Professor Mechanical Engineering Department A Classical Method Recommended by Schlichting.……
Lecture Objectives: Define 1) Reynolds stresses and
CAD and Finite Element Analysis Most ME CAD applications require a FEA in one or more areas: –Stress Analysis –Thermal Analysis –Structural Dynamics –Computational.
Plots of Fluid Flow Data Profile plots- A profile plot indicates how the value of a scalar (or vector can be plotted but only the magnitude) property varies.
An Introduction to Computational Fluids Dynamics Prapared by: Chudasama Gulambhai H ( ) Azhar Damani ( ) Dave Aman ( )
Theory of Turbine Cascades P M V Subbarao Professor Mechanical Engineering Department Its Group Performance, What Matters.……
Mathematics to Innovate Blade Profile P M V Subbarao Professor Mechanical Engineering Department Also a Fluid Device, Which abridged the Globe into Global.
Computational Fluid Dynamics Lecture II Numerical Methods and Criteria for CFD Dr. Ugur GUVEN Professor of Aerospace Engineering.
A V&V Overview of the 31st Symposium on Naval Hydrodynamics
Simulation of Pipe Flow Using FlowLab 1.1 (PreLab 1)
Introduction to Functions of Several Variables
POLYGON MESH Advance Computer Graphics
POSTPROCESSING Review analysis results and evaluate the performance
CAD and Finite Element Analysis
APISAT 2010 Sep. 13~15, 2010, Xi’An, China
Simulation of turbulent airfoil Flow Using FlowLab 1.1 (CFD PreLab 2)
The application of an atmospheric boundary layer to evaluate truck aerodynamics in CFD “A solution for a real-world engineering problem” Ir. Niek van.
Visualization CSE 694L Roger Crawfis The Ohio State University.
Section 11 Lecture 2: Analysis of Supersonic Conical Flows
14. Computational Fluid Dynamics
Presentation transcript:

Grid Generation and Post-Processing for Computational Fluid Dynamics (CFD) Maysam Mousaviraad, Tao Xing and Fred Stern IIHR—Hydroscience & Engineering C. Maxwell Stanley Hydraulics Laboratory The University of Iowa 58:160 Intermediate Mechanics of Fluids http://css.engineering.uiowa.edu/~me_160/ November 5, 2012

Outline 2. Choice of grid 2.1. Simple geometries 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

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 non-uniform 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 Analysis.

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

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.

Choice of grid, cont’d Chimera grid (examples): CFDSHIP-IOWA Different grid distribution approaches

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

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.

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

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 satisfies the grid point distributions specified on the boundaries and yields an acceptable interior grid point distribution. Commercial software (Gridgen, Gambit, etc.)

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

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

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 C1 (0,0) (1,0)

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 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

Grid generation (3D NACA12 foil) Geometry: two-dimensional 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 C2 C1 Half of airfoil surface

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

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

Grid generation (3D NACA12 airfoil, cont’d) Create 3D block: “blocks””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 2 Block 4 Block 4 Block 3 Block 3 3D before split After split (2D view) After split (3D view)

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 is the same for all three directions. Consider 1D line segment with and 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: where from the first step is interpolated at location step 3: The medium grid distribution is scaled so that the fine and medium grid line segments are the same (i.e., ) step4: The procedure is repeated until it converges

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 computation 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: Fast Fourier Transform (FFT), Phase averaging

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

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

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

Post-Processing (NACA12, 2D contour plot) Extract 2D slice from 3D geometry: “Data””Extract””Slice from plane””z=0.5””extract”

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

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

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

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 3D Iso-surface plots: Q criterion

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

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

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

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)

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. organized oscillating component mean component random fluctuating component is the time period of the dominant frequency is the phase average associated with the coherent structures

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

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.