1 / 18

Code verification and mesh uncertainty

Code verification and mesh uncertainty. The goal is to verify that a computer code produces the right solution to the mathematical model underlying it. Tests detailed by Oberkampf and Roy (Section 5.1) include Simple tests (symmetry, conservation, Gallilean invariance)

azure
Download Presentation

Code verification and mesh uncertainty

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Code verification and mesh uncertainty • The goal is to verify that a computer code produces the right solution to the mathematical model underlying it. • Tests detailed by Oberkampf and Roy (Section 5.1) include • Simple tests (symmetry, conservation, Gallilean invariance) • Code to code comparisons. • Discretization error quantification. • Convergence tests. • Order of accuracy tests. • We will focus on 3,4 and 5.

  2. Truncation and discretization errors • In Taylor series the truncation error is estimated by the last term. • We have used this in the integration of the paper helicopter fall velocity to get the distance travelled • For a given time increment, the truncation error is • The truncation error decreases as the square of the time interval. • The discretization error is the error in the final distance h(tf) • However, it decreases approximately linearly with the time interval. Why?

  3. Order of accuracy • Order of accuracy p is the power in the relationship between discretization error and interval size h • For simple problems like integration of the paper helicopter distance we can estimate the order of accuracy analytically. • For most complex problems we have to estimate it from different meshes, say hcoarse and hfine • If we know the errors (from an exact solution) we can solve for p.

  4. Richardson extrapolation • When we do not know what the error is, we can use Richardson extrapolation to estimate what our solution will be with an infinitely fine discretization • Now we need f values from three values of h to estimate p and f0 • Unfortunately, the result is exact as h goes to zero, but you often cannot get near enough. • In addition there is noise when fine meshes change boundaries compared to coarse mesh. So it is popular to reduce h by a factor of 2.

  5. Top hat question • For 4 meshes with h=1,0.5,0.25, and 0.125, the results were, 20, 14.5, 12.5, 11.7. Estimate the converged value and the order • f=11, p=1.5 • f=10.5, p=1 • f=11, p=1 • f=11.2, p=1.5

  6. AIAA 2002-5531OBSERVATIONS ON CFD SIMULATION UNCERTAINTIES SerhatHosder, Bernard Grossman, William H. Mason, and Layne T. Watson Virginia Polytechnic Institute and State University Blacksburg, VA Raphael T. Haftka University of Florida Gainesville, FL 9th AIAA/ISSMO Symposium on Multidisciplinary Analysis and Optimization 4-6 September 2002 Atlanta, GA Hosder, S. Grossman, B., Haftka, R. T., Mason, W. H., and Watson, L. T. (2006), “Quantitative Relative Comparison of CFD Simulation Uncertainties for a Transonic Diffuser,” Computers and Fluids, 35 (10), 1444-1458, December.

  7. Introduction • Computational fluid dynamics (CFD) as an aero/hydrodynamic analysis and design tool • CFD being used increasingly in multidisciplinary design and optimization (MDO) problems • Different levels of fidelity • from linear potential solvers to RANS codes • CFD results have an associated uncertainty, originating from different sources • Sources and magnitudes of the uncertainty important to assess the accuracy of the results

  8. Drag polar results from 1st AIAA Drag Prediction Workshop (Hemsch, 2001)

  9. Objective of the Paper • Finding the magnitude of CFD simulation uncertainties that a well informed user may encounter and analyzing their sources • We study 2-D, turbulent, transonic flow in a converging-diverging channel • complex fluid dynamics problem • affordable for making multiple runs

  10. Transonic Diffuser Problem Weak shock case (Pe/P0i=0.82) Pe/P0i experiment CFD Strong shock case (Pe/P0i=0.72) Pe/P0i streamlines Separation bubble Contour variable: velocity magnitude

  11. Uncertainty Sources (following Oberkampf and Blottner) • Physical Modeling Uncertainty • PDEs describing the flow • Euler, Thin-Layer N-S, Full N-S, etc. • boundary conditions and initial conditions • geometry representation • auxiliary physical models • turbulence models, thermodynamic models, etc. • Discretization Error • Iterative Convergence Error • Programming Errors We show that uncertainties from different sources interact

  12. Computational Modeling • General Aerodynamic Simulation Program (GASP) • A commercial, Reynolds-averaged, 3-D, finite volume Navier-Stokes (N-S) code • Has different solution and modeling options. An informed CFD user still “uncertain” about which one to choose • For inviscid fluxes (most commonly used options in CFD) • Upwind-biased 3rd order accurate Roe-Flux scheme • Flux-limiters: Min-Mod and Van Albada • Turbulence models (typical for turbulent flows) • Spalart-Allmaras (Sp-Al) • k- (Wilcox, 1998 version) with Sarkar’s compressibility correction

  13. Grids Used in the Computations Grid 2 y/ht A single solution on grid 5 requires approximately 1170 hours of total node CPU time on a SGI Origin2000 with six processors (10000 cycles) Grid 2 is the typical grid level used in CFD applications

  14. Nozzle efficiency Nozzle efficiency (neff ), a global indicator of CFD results: H0i : Total enthalpy at the inlet He : Enthalpy at the exit Hes : Exit enthalpy at the state that would be reached by isentropic expansion to the actual pressure at the exit

  15. Uncertainty in Nozzle Efficiency

  16. Uncertainty in Nozzle Efficiency Strong Shock Weak Shock Maximum value of

  17. Discretization Error by Richardson’s Extrapolation error coefficient order of the method a measure of grid spacing grid level

  18. Major Observations on the Discretization Errors • Grid convergence is not achieved with grid levels that have moderate mesh sizes. For the strong shock case, even with the finest mesh level we can afford, asymptotic convergence is not certain • As a consequence of above result, it is difficult to separate physical modeling uncertainties from numerical errors • Shock-induced flow separation, thus the flow structure, has a significant effect on grid convergence • Discretization error magnitudes are different for different turbulence models. The magnitudes of numerical errors are affected by the physical models chosen.

More Related