NUMERICAL VISCOSITY. Convergent Science White Paper. COPYRIGHT 2017 CONVERGENT SCIENCE. All rights reserved.

Similar documents
Flow and Heat Transfer in a Mixing Elbow

Fluent User Services Center

Lab 9: FLUENT: Transient Natural Convection Between Concentric Cylinders

Faculty of Mechanical and Manufacturing Engineering, University Tun Hussein Onn Malaysia (UTHM), Parit Raja, Batu Pahat, Johor, Malaysia

Driven Cavity Example

Numerical Analysis of Shock Tube Problem by using TVD and ACM Schemes

CFD-1. Introduction: What is CFD? T. J. Craft. Msc CFD-1. CFD: Computational Fluid Dynamics

Supersonic Flow Over a Wedge

Three Dimensional Numerical Simulation of Turbulent Flow Over Spillways

Introduction to C omputational F luid Dynamics. D. Murrin

Introduction to ANSYS CFX

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

1.2 Numerical Solutions of Flow Problems

Possibility of Implicit LES for Two-Dimensional Incompressible Lid-Driven Cavity Flow Based on COMSOL Multiphysics

Topology optimization of heat conduction problems

Compressible Flow in a Nozzle

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

On the high order FV schemes for compressible flows

Recent developments for the multigrid scheme of the DLR TAU-Code

CS205b/CME306. Lecture 9

Computational Fluid Dynamics using OpenCL a Practical Introduction

Using a Single Rotating Reference Frame

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

Finite Volume Discretization on Irregular Voronoi Grids

Investigation of cross flow over a circular cylinder at low Re using the Immersed Boundary Method (IBM)

A Study of the Development of an Analytical Wall Function for Large Eddy Simulation of Turbulent Channel and Rectangular Duct Flow

Numerical and theoretical analysis of shock waves interaction and reflection

Non-Newtonian Transitional Flow in an Eccentric Annulus

Verification and Validation in CFD and Heat Transfer: ANSYS Practice and the New ASME Standard

Solver Settings. Introductory FLUENT Training ANSYS, Inc. All rights reserved. ANSYS, Inc. Proprietary

Continued Investigation of Small-Scale Air-Sea Coupled Dynamics Using CBLAST Data

Techniques for Using the Method of Manufactured Solutions for Verification and Uncertainty Quantification of CFD Simulations Having Discontinuities

Lagrangian methods and Smoothed Particle Hydrodynamics (SPH) Computation in Astrophysics Seminar (Spring 2006) L. J. Dursi

Use of CFD in Design and Development of R404A Reciprocating Compressor

Development of a Maxwell Equation Solver for Application to Two Fluid Plasma Models. C. Aberle, A. Hakim, and U. Shumlak

NIA CFD Seminar, October 4, 2011 Hyperbolic Seminar, NASA Langley, October 17, 2011

CFD MODELING FOR PNEUMATIC CONVEYING

in:flux - Intelligent CFD Software

Final Report. Discontinuous Galerkin Compressible Euler Equation Solver. May 14, Andrey Andreyev. Adviser: Dr. James Baeder

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

c Fluent Inc. May 16,

FEMLAB Exercise 1 for ChE366

Aurélien Thinat Stéphane Cordier 1, François Cany

Realistic Animation of Fluids

Partial Differential Equations

Solving Partial Differential Equations on Overlapping Grids

Study on the Numerical Accuracy for the CFD

Shape optimisation using breakthrough technologies

Pressure Drop Evaluation in a Pilot Plant Hydrocyclone

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

LATTICE-BOLTZMANN METHOD FOR THE SIMULATION OF LAMINAR MIXERS

Investigating The Stability of The Balance-force Continuum Surface Force Model of Surface Tension In Interfacial Flow

Outline. Level Set Methods. For Inverse Obstacle Problems 4. Introduction. Introduction. Martin Burger

Application of CFD to Industrial Safety Studies (with Prediction Accuracy and Error estimations)

FOURTH ORDER COMPACT FORMULATION OF STEADY NAVIER-STOKES EQUATIONS ON NON-UNIFORM GRIDS

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

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

Auto Injector Syringe. A Fluent Dynamic Mesh 1DOF Tutorial

computational Fluid Dynamics - Prof. V. Esfahanian

Turbulent Premixed Combustion with Flamelet Generated Manifolds in COMSOL Multiphysics

Parallel Computing for Reacting Flows Using Adaptive Grid Refinement

Simulation of Flow Development in a Pipe

Simulation of Turbulent Axisymmetric Waterjet Using Computational Fluid Dynamics (CFD)

Tutorial Four Discretization Part 1

Chapter 6. Petrov-Galerkin Formulations for Advection Diffusion Equation

Middle East Technical University Mechanical Engineering Department ME 485 CFD with Finite Volume Method Fall 2017 (Dr. Sert)

Microwell Mixing with Surface Tension

Multigrid Pattern. I. Problem. II. Driving Forces. III. Solution

Two-dimensional laminar shock wave / boundary layer interaction

MESHLESS SOLUTION OF INCOMPRESSIBLE FLOW OVER BACKWARD-FACING STEP

Industrial wind tunnel analysis based on current modeling and future outlook

Numerical Methods for (Time-Dependent) HJ PDEs

Solved with COMSOL Multiphysics 4.2

Homogenization and numerical Upscaling. Unsaturated flow and two-phase flow

Continuum-Microscopic Models

The Spalart Allmaras turbulence model

Stream Function-Vorticity CFD Solver MAE 6263

Modeling and simulation the incompressible flow through pipelines 3D solution for the Navier-Stokes equations

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

Coupling of STAR-CCM+ to Other Theoretical or Numerical Solutions. Milovan Perić

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

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

Metafor FE Software. 2. Operator split. 4. Rezoning methods 5. Contact with friction

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

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

1. Mathematical Modelling

Modeling of Laminar Flow Static Mixers

Fluid Simulation. [Thürey 10] [Pfaff 10] [Chentanez 11]

A Novel Approach to High Speed Collision

FAST ALGORITHMS FOR CALCULATIONS OF VISCOUS INCOMPRESSIBLE FLOWS USING THE ARTIFICIAL COMPRESSIBILITY METHOD

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

ENERGY-224 Reservoir Simulation Project Report. Ala Alzayer

A FULLY COUPLED FINITE VOLUME SOLVER FOR THE SOLUTION OF INCOMPRESSIBLE FLOWS ON LOCALLY REFINED NON-MATCHING BLOCK-STRUCTURED GRIDS

The study of air distribution in tunnels and large industrial buildings

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

ON THE NUMERICAL MODELING OF IMPINGING JET HEAT TRANSFER

Water. Notes. Free surface. Boundary conditions. This week: extend our 3D flow solver to full 3D water We need to add two things:

Numerical Simulation of Fuel Filling with Volume of Fluid

Numerical Methods in Aerodynamics. Fluid Structure Interaction. Lecture 4: Fluid Structure Interaction

CFD in COMSOL Multiphysics

Transcription:

Convergent Science White Paper COPYRIGHT 2017 CONVERGENT SCIENCE. All rights reserved. This document contains information that is proprietary to Convergent Science. Public dissemination of this document in full is permitted.

OVERVIEW When using computational fluid dynamics (CFD) to solve the Navier-Stokes equations, the act of discretizing the equations necessarily replaces terms in the equations with approximations. These approximations add error to the solution. Some of this error can be represented as an additional diffusive term, which is referred to in the literature as numerical diffusion, diffusive error, or numerical viscosity. Whatever your preferred terminology, this is a nonphysical artifact of CFD that can pollute your results. CONVERGE has several features to minimize the effects of numerical viscosity and improve solution quality. In order to understand the adverse influence of numerical viscosity, consider the following thought experiment. Suppose we have a laminar flow of two parallel flow streams, one hot and one cold. If we set the fluid diffusion coefficients to zero, the analytical solution should not show any diffusion of mass, momentum, or energy. In other words, the temperature profile would remain discontinuous, as shown in Figure 1(b). Any smearing of the temperature profile in a numerical solution, as in Figure 1(a), can be attributed to nonphysical numerical diffusion. Hot Hot T T Cold Cold (a) (b) Figure 1: A bifurcated unidirectional stream of two fluids with different temperatures, with physical diffusion coefficients set to zero. The idealized solution is shown on the right. We will discuss three pathways that introduce diffusive errors to a CFD solution and how CONVERGE minimizes such errors. NUMERICAL SCHEME When solving the Navier-Stokes equations using a finite volume technique, the convective term is discretized and the spatial derivative is approximated. As the Navier-Stokes equations are elliptic in nature for subsonic flows, a central difference scheme is appropriate. 1 Convergent Science

A second-order central scheme has a leading dissipative error term on the order of ΔX 2, rather than the ΔX of a first-order upwinded scheme. Because a first-order upwind scheme is more stable than a central scheme, CFD codes switch to a first-order scheme in some regions to maintain global stability. The criteria for the local switch from second-order to first-order influence the tradeoff between global accuracy and global stability. A highly conservative switch may guarantee convergence by switching to first-order fluxes in challenging regions, but it may converge to an inaccurate solution due to the introduction of excessive numerical viscosity. Many CFD codes prioritize stability, and so they readily switch to a first-order scheme. This switching is often hidden from the user. The majority of a flow domain may be solved using first-order numerics, even if second-order was selected by the user. There is rarely an easy way for the user to ascertain how many cells have been switched to a first-order scheme. To evaluate switching behavior, a user can run both first- and second-order simulations and compare the results. If the results are similar, then it is likely that the CFD code has switched to first-order fluxes in a large portion of the domain. CONVERGE maximizes the usage of second-order numerics by using strict switching criteria, which minimize the numerical diffusion. Specifically, CONVERGE incorporates Total-Variation Diminishing (TVD) switches to minimize the use of first-order spatial fluxes. A TVD switch dynamically evaluates local fluxes as first-order upwind in regions where the existing flux scheme would diverge from the existing flow state. CONVERGE automatically detects and recovers from diverging residuals, so the TVD switches can maximize the use of second-order fluxes throughout the domain. INFLUENCE OF MESH ALIGNMENT Typically, a CFD solution is represented by piecewise constant values at every cell center (or every node). A spatial gradient in any physical quantity is best represented if the gradient vector is exactly aligned with the grid. Any misalignment of the flow with the grid results in a stair-stepping pattern that generates numerical viscosity and pollutes the solution. For a uniform Cartesian grid, it can be shown using Eq. 1 that numerical diffusion is maximized when the flow is at 45 degrees to the grid cells: Γ = false ρu x ysin(2θ) 3 3 4 ysin θ+ xcosθ Equation 1: False diffusion equation. Courtesy Patankar. CONVERGE CFD 2

We can consider our idealized mixing flow with a 45-degree grid as a worst-case test for numerical diffusion. Figure 2 presents a solution, which was run in CONVERGE. The flow is from lower left to upper right, with a 2000 K stream above a 1000 K stream. In this case, fluid diffusion coefficients are again set to zero, so the temperature profile should remain discontinuous. As can be seen for this coarse mesh solution below, the temperature profile broadens as it moves across the domain. This is due to numerical viscosity generated by the misalignment of the flow and the mesh. T=2000 K All of the diffusion is due to numerical viscosity. CFD Solution (coarse mesh) Theoretical Solution T=1000 K Figure 2: Numerical diffusion test case with a coarse grid. Usually, we cannot predict the exact direction of physical gradients in a real engineering flow before we perform a calculation. Worse, complicated flows often feature physical gradients that are not even aligned with each other. A gradient-aligned grid is not possible in such a case. Fortunately, Equation 1 tells us that the numerical diffusion generated by grid misalignment is also a function of cell size. Accordingly, if we can use a fine grid in regions of strong gradients, we can minimize the effects of numerical viscosity due to misalignment. CONVERGE incorporates Adaptive Mesh Refinement (AMR), which automatically refines cells based on curvature in field variables such as temperature and velocity. If we activate temperature-based AMR for our 45-degree test case, we see that AMR automatically refines the grid in the vicinity of the large temperature gradient. In Figure 3, we see that as CONVERGE refines the cells in the mixing region, the numerical viscosity decreases. As a result, the smeared nonphysical temperature distribution seen in Figure 2 collapses to the correct physical temperature profile. By adding mesh refinement when and where it is most needed, AMR allows CONVERGE to minimize the 3 Convergent Science

(a) (b) (c) (d) Figure 3: Numerical diffusion test with adaptive mesh refinement enabled. As AMR automatically adds grid cells in the high-gradient region, the nonphysical broadening of the solution disappears. numerical viscosity without foreknowledge of the final result and without an infeasibly fine grid that is dense everywhere. INFLUENCE OF MESH MOTION Many engineering applications of interest contain moving components. Internal combustion engines, compressors, and gas turbines all exhibit a complex fluid flow strongly affected by boundary motion. To perform a CFD simulation for such cases, either a single initial grid must move with the boundary, or the grid must be re-generated after motion has taken place. Motion of a pre-generated mesh may not be able to accommodate the necessary deformation without excess skewness and associated poor solution quality. Furthermore, any mesh motion in regions of flow gradients will generate numerical diffusion, even if the subsequent meshes remain of high quality (Koltakov and Fringer). Consider the discontinuous temperature profile on an aligned 1D mesh, as shown in Figure 4(a). It is an exact piecewise constant representation of the profile. If we move the mesh upward, that profile cannot be represented exactly. Energy either will be transported with the motion of the mesh as shown in Figure 4(b), or the spatial temperature profile will broaden as shown in Figure 4(c). This effect is independent of the flow solver or numerical method. CONVERGE CFD 4

400 T (a) (b) (c) Figure 4: Numerical diffusion due to mesh motion. At left, exact piecewise representation. At center, mesh motion transports energy. At right, mesh motion broadens temperature distribution. CONVERGE does not move or deform the mesh. Rather, for cases with boundary motion, CONVERGE generates a high-quality, orthogonal, stationary mesh automatically at each time-step. Because the Navier-Stokes equations are always solved on a stationary mesh, numerical viscosity due to mesh motion is eliminated. Figure 5: Schematic illustrating CONVERGE using orthogonal and stationary mesh elements for a case with moving components. As the geometry moves through the volume, cells are resized, created, and removed. CONCLUSION All CFD methods and approaches generate some nonzero level of diffusive error due to the contribution of numerical viscosity. In order to produce the most accurate simulation possible, we must minimize this diffusive error. CONVERGE limits the production of numerical diffusion by: 5 Convergent Science

1. Using central differencing schemes wherever possible, 2. Using a fine mesh in regions of substantial gradients, and 3. Using a stationary mesh. As a result, CONVERGE produces characteristically low levels of diffusive error and helps you generate accurate flow solutions. Questions or comments? Please email contact@convergecfd.com. REFERENCES Patankar, S.V., Numerical Heat Transfer and Fluid Flow, CRC Press, 1980. Koltakov, S. and Fringer, O.B., Moving grid method for numerical simulation of stratified flows, Int. J. Numer. Meth. Fluids, 71(12), 1524 1545, 2012. DOI: 10.1002/ fld.3724 COPYRIGHT 2017 CONVERGENT SCIENCE. All rights reserved. This document contains information that is proprietary to Convergent Science. Public dissemination of this document in full is permitted. CONVERGE CFD 6

Founded in Madison, Wisconsin, Convergent Science is a world leader in computational fluid dynamics (CFD) software. Its flagship product, CONVERGE, includes groundbreaking technology that eliminates the user-defined mesh, fully couples the automated mesh and the solver at runtime, and automatically refines the mesh when and where it is needed. CONVERGE is revolutionizing the CFD industry and shifting the paradigm toward predictive CFD. CONVERGENT SCIENCE: WORLD HEADQUARTERS 6400 Enterprise Ln Madison, WI 53719 Tel: +1 (608) 230-1 CONVERGENT SCIENCE: TEXAS 1619 E. Common St., Suite 1204 New Braunfels, TX 78130 Tel: +1 (830) 625-5 CONVERGENT SCIENCE: DETROIT 21 Haggerty Rd. Detroit, MI 48167 Tel: +1 (248) 465-6005 CONVERGENT SCIENCE: EUROPE Hauptstraße 10 Linz, Austria 4040 Tel: +43 720 010 660 For additional information or to contact us, visit convergecfd.com