Stream Function-Vorticity CFD Solver MAE 6263

Similar documents
Driven Cavity Example

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

1.2 Numerical Solutions of Flow Problems

Calculate a solution using the pressure-based coupled solver.

Simulation of Turbulent Flow in an Asymmetric Diffuser

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

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

Compressible Flow in a Nozzle

MESHLESS SOLUTION OF INCOMPRESSIBLE FLOW OVER BACKWARD-FACING STEP

Strömningslära Fluid Dynamics. Computer laboratories using COMSOL v4.4

Simulation of Flow Development in a Pipe

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

Introduction to ANSYS CFX

Tutorial 2. Modeling Periodic Flow and Heat Transfer

Modeling Unsteady Compressible Flow

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

Computation of Velocity, Pressure and Temperature Distributions near a Stagnation Point in Planar Laminar Viscous Incompressible Flow

Tutorial 17. Using the Mixture and Eulerian Multiphase Models

Simulation of Turbulent Flow over the Ahmed Body

Verification of Laminar and Validation of Turbulent Pipe Flows

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

FLUENT Secondary flow in a teacup Author: John M. Cimbala, Penn State University Latest revision: 26 January 2016

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

Supersonic Flow Over a Wedge

Solution Recording and Playback: Vortex Shedding

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

The viscous forces on the cylinder are proportional to the gradient of the velocity field at the

cuibm A GPU Accelerated Immersed Boundary Method

Inviscid Flows. Introduction. T. J. Craft George Begg Building, C41. The Euler Equations. 3rd Year Fluid Mechanics

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

Numerical Study of Turbulent Flow over Backward-Facing Step with Different Turbulence Models

CFD Analysis of 2-D Unsteady Flow Past a Square Cylinder at an Angle of Incidence

ANSYS AIM Tutorial Turbulent Flow Over a Backward Facing Step

Simulation of Laminar Pipe Flows

Estimation of Flow Field & Drag for Aerofoil Wing

STAR-CCM+: Wind loading on buildings SPRING 2018

Non-Newtonian Transitional Flow in an Eccentric Annulus

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

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

CFD Analysis of a Fully Developed Turbulent Flow in a Pipe with a Constriction and an Obstacle

Simulating Sinkage & Trim for Planing Boat Hulls. A Fluent Dynamic Mesh 6DOF Tutorial

This tutorial illustrates how to set up and solve a problem involving solidification. This tutorial will demonstrate how to do the following:

MASSACHUSETTS INSTITUTE OF TECHNOLOGY. Analyzing wind flow around the square plate using ADINA Project. Ankur Bajoria

Prerequisites: This tutorial assumes that you are familiar with the menu structure in FLUENT, and that you have solved Tutorial 1.

Module D: Laminar Flow over a Flat Plate

Computational Flow Analysis of Para-rec Bluff Body at Various Reynold s Number

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

Lab 9: FLUENT: Transient Natural Convection Between Concentric Cylinders

and to the following students who assisted in the creation of the Fluid Dynamics tutorials:

TUTORIAL#3. Marek Jaszczur. Boundary Layer on a Flat Plate W1-1 AGH 2018/2019

µ = Pa s m 3 The Reynolds number based on hydraulic diameter, D h = 2W h/(w + h) = 3.2 mm for the main inlet duct is = 359

Introduction to C omputational F luid Dynamics. D. Murrin

Simulation of Turbulent Flow around an Airfoil

Modeling Flow Through Porous Media

Modeling Supersonic Jet Screech Noise Using Direct Computational Aeroacoustics (CAA) 14.5 Release

NUMERICAL 3D TRANSONIC FLOW SIMULATION OVER A WING

Shape optimisation using breakthrough technologies

CFD MODELING FOR PNEUMATIC CONVEYING

The Level Set Method THE LEVEL SET METHOD THE LEVEL SET METHOD 203

FLOW PAST A SQUARE CYLINDER CONFINED IN A CHANNEL WITH INCIDENCE ANGLE

and to the following students who assisted in the creation of the Fluid Dynamics tutorials:

Free Convection Cookbook for StarCCM+

Application of A Priori Error Estimates for Navier-Stokes Equations to Accurate Finite Element Solution

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

Flow in an Intake Manifold

Simulation and Validation of Turbulent Pipe Flows

Smoothing the Path to Simulation-Led Device Design

Simulations of the vortex in the Dellenback abrupt expansion, resembling a hydro turbine draft tube operating at part-load

Appendix: To be performed during the lab session

Auto Injector Syringe. A Fluent Dynamic Mesh 1DOF Tutorial

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

TryItNow! Step by Step Walkthrough: Spoiler Support

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

IJISET - International Journal of Innovative Science, Engineering & Technology, Vol. 2 Issue 11, November

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

Aerodynamic Study of a Realistic Car W. TOUGERON

ALE Seamless Immersed Boundary Method with Overset Grid System for Multiple Moving Objects

Comparison of different solvers for two-dimensional steady heat conduction equation ME 412 Project 2

CFD VALIDATION FOR SURFACE COMBATANT 5415 STRAIGHT AHEAD AND STATIC DRIFT 20 DEGREE CONDITIONS USING STAR CCM+

Viscous/Potential Flow Coupling Study for Podded Propulsors

Effect of Yaw Angle on Drag Over Clean Rectangular Cavities

Step 1: Create Geometry in GAMBIT

EVALUATION OF A GENERAL CFD-SOLVER FOR A MICRO-SCALE URBAN FLOW

Flow and Heat Transfer in a Mixing Elbow

An Introduction to SolidWorks Flow Simulation 2010

Simulation of Turbulent Flow around an Airfoil

Project #3 MAE 598 Applied CFD

Modeling External Compressible Flow

Ryian Hunter MAE 598

The Development of a Navier-Stokes Flow Solver with Preconditioning Method on Unstructured Grids

SolidWorks Flow Simulation 2014

The Spalart Allmaras turbulence model

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

Team 194: Aerodynamic Study of Airflow around an Airfoil in the EGI Cloud

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

ANALYSIS OF VORTEX INDUCED VIBRATION USING IFS

Using a Single Rotating Reference Frame

First Steps - Ball Valve Design

ENERGY-224 Reservoir Simulation Project Report. Ala Alzayer

Computational Fluid Dynamics using OpenCL a Practical Introduction

Transcription:

Stream Function-Vorticity CFD Solver MAE 66 Charles O Neill April, 00 Abstract A finite difference CFD solver was developed for transient, two-dimensional Cartesian viscous flows. Flow parameters are solved through iterating stream function and time marching vorticity. The governing equations and discrete representations for Cartesian, two dimensional flow are reviewed. Two internal flows through an expansion box are solved and discussed. The stream function-vorticity CFD program works correctly. Conclusions regarding the solution technique and general CFD are made. Introduction The objective is to solve D Cartesian transient viscous flows. The governing equations for continuity and momentum are reviewed[] and finite difference forms are developed. Next, the developed FOR- TRAN CFD program is discussed. Then, the geometry and fluid properties for the internal flow problem are shown. Results are given and discussed. Finally, conclusions are made. Governing Equations The fluid flow is solved for a transient, constantdensity Cartesian coordinate system based on the stream function and vorticity approach. Continuity and momentum are inherently imbedded in the stream function and vorticity. Finally, the flow relationships are transformed to discrete representations for input into a computer routine.. Continuity Continuity for a D Cartesian coordinate system is given as, du dx + dv dy =0 The stream function definitions u = dψ/dy and v = dψ/dx can be imbedded into the continuity equation with vorticity,ω = dv,to form a dx du dy simple Ψ vs ω expression. Ψ = ω This expression must be made discrete for use in the computer program. Applying the appropriate nd order finite differentials and solving for Ψ at the center point,p, yields, Ψ p = A E Ψ E + A W Ψ W + A N Ψ N + A S Ψ S + A ω Ψ ω where the influence coefficients are given by A E,W = ( ( x) ( x) + ) ( y) A N,S = ( ( y) ( x) + ) ( y) ( A ω = ( x) + ) ( y) This discrete form of the continuity equation is ready for Gauss-Seidel iteration in the computer program.. Momentum Similarly, the expression for vorticity is substituted into the governing momentum equations. Thus, the momentum relationship in terms of ω and velocity is, dω dt + d(uω) dx + d(uω) = ν ω dy

As before, this expression is discretized by the appropriate finite differentials. The discrete expression must account for the convection terms and perform the appropriate forward time-march in vorticity. Generally, the discrete governing equation (solved at the center point P) is, ω P = ω Pold + T ( Adv x Adv y +Visc) where the terms Adv x,y are the appropriate upstream differenced expressions and Visc expresses the viscous terms. This expression for ω is time marched forward. ((uω) E (uω) W )/( x) u P =0 Adv x = ((uω) P (uω) W )/( x) u P > 0 ((uω) E (uω) P )/( x) u P < 0 ((uω) N (uω) S )/( y) v P =0 Adv y = ((uω) P (uω) S )/( y) v P > 0 ((uω) N (uω) P )/( y) v P < 0 Visc= (ω N ω P + ω S ) ν/( y) +(ω E ω P + ω W ) ν/( x). Boundary Conditions There are two types of boundary conditions needed. First, symmetry and adiabatic boundary conditions are needed for symmetrical and outlet edges. Second, boundary conditions on the wall are needed. Symmetry boundary condition are created by creating fictious points just outside the flow domain. These fictious points mirror the fluid properties just inside the flow domain. Thus at a symmetry boundary, the relationship between the neighboring properties normal to the symmetry plane are ζ i+ = ζ i atpointi. This is equivalent to the point second derivative at i being equal to zero. The second boundary condition concerns vorticity at the walls. At a solid boundary, the update expression for ω is, ω p = (Ψ p Ψ i )/δ where δ and i are in the direction (inward) normal to the wall. Computer Code A FORTRAN computer code was written to solve the governing equations developed above. The complete code is given in the Appendix. The overall solution strategy combines iterating stream function and time-marching vorticity. The general steps of the program are given below.. Generate Mesh: The program begins by creating the finite difference mesh. The matrices for Ψ,ω,ω old,u and v are initialized and filled with zeros. Next, the grid intervals and sizes in the x and y direction are created. Finally, the Ψ influence coefficients are calculated.. Problem Properties: The viscosity, inlet velocity and solution time properties are set. The output files for stream function and vorticity are created.. Initial Conditions: The velocity and stream function initial conditions are calculated for the four walls. The program determines the inlet stream function values by integrating the inlet velocity.. Advance Time: This step begins the main time-marching routine. Time is advanced through a DO loop.. Internal ω: An ω sweep is made over the internal nodes. The appropriate influence coefficients for the convection and viscosity are calculated. Next, the vorticity values to the west of the east wall are copied to create an east symmetry plane. Finally, the time-marched internal values of vorticity are calculated according to the influence coefficients and the old vorticity values. 6. Iterate Ψ: The stream function values are iterated to conform to the new values of vorticity. This step enforces continuity. A residual checking routine stops the iterations if the stream function field is sufficiently converged. 7. Find Velocities: The u and v velocities are found from the local values of stream function. Corner values of velocity are not needed. However, these corner velocities are set to match neighboring points so the final solution graphs are smoother.

8. Vorticity Boundary Values: Boundary values of vorticity are calculated from wall and just-internal stream function values. Nonphysical vorticity values appear near sharp convex corners when two velocities are not equal. Roache and Mueller[] discuss this problem. 9. Repeat Time March: The time march is repeated as specified in the Advance Time DO loop. 0. Output Results: Intermediate and final values of Ψ,ω and velocities are output. A special final WRITE statement is needed to properly view the results in MATLAB. Problem Geometry The problem consists of a two dimensional backstep internal flow. The flow transitions from a 0. meter duct to a 0.0 meter duct. A symmetry plane exists at the centerline of the duct, thus computations are performed only on one half. The geometrical mesh as input into the CFD solver is shown in Figure. The flow domain consists of a 0. meter high and y Ψ = constant Outlet the computer program and solution technique given above.. Steady State A steady state flow solution was attempted based on the above flow geometry. The domain was divided into a by 7 grid. The Reynolds number (based on step height) was 000. Figure plots the vorticity residuals versus time. The residuals converge at approximately. seconds. The prob- Vorticity Residual 0 0 6 0 7 0 8 0 9 0 0 0 0. 0. 0.6 0.8...6.8 Time [sec] Figure : Vorticity Residuals vs. Time lem s velocity vectors and Ψ contours for the converged steady state solution are shown in Figure. Vorticity contours for the problem are given in Fig-. Inlet dψ = 0 dx. Ψ = 0 Figure : Solution Grid x.. 6 7 0. meter length rectangle. Fluid enters on the left. The outlet boundary condition, dψ/dx = 0, approximates no-property-changes in outgoing fluid. Results and Discussion Two testcases are presented and discussed: a steady state and a transient case. Both were solved with Figure : Velocities and Ψ Contours at Steady State ure. The vorticity contours directly off the north wall are due to a forming boundary layer. Similarly, the vorticity behind the step (west wall) corresponds to flow expanding around the corner. From intuition, the flow solver appears to solve the governing equations correctly. While the flow domain is rather coarse, the solver still managed to

. quickly forms a vortex behind the step. The vorticity visibly convects downstream. Figure 7 shows the steady state velocities.. Velocity TIME Vorticity. 0.00. 6 7 0.0 Figure : Vorticity Contours at Steady State converge to a steady state solution. Decreasing the grid sizes would improve resolution at the expense of solution time. From Roache and Mueller[], it is expected that the time step for stability approximately decreases with the square of grid size. Better solutions will take vastly longer. 0.0 0.0. Transient A transient case was next attempted. While the steady case was a converged transient case, a new testcase was needed to test convection of a completely swirling flow where vorticity would clearly convect downstream. This transient testcase required an increase in grid resolution to 0 by. The fluid properties were changed to a Reynolds number based on step size of.. Figure shows the vorticity residuals. The flow solution converges; however, the solution is clearly more complex because the residuals are jagged. The transient velocities and vorticity time 0 9 8 7 6 Figure 6: Transient Velocity and Vorticity 6 8 0 Vorticity Residual 0 Figure 7: Converged Velocity and Vorticity 0 0 0 This testcase demonstrated the transient abilities of the flow solver. The flow solution appears reasonable and follows the expected flow physics. 0 0 0. 0. 0. 0. 0. 0.6 0.7 0.8 0.9 Time Figure : Transient Vorticity Residuals slices are shown in figure 6. The initial flow at t=0 6 Conclusions A transient D stream function-vorticity flow solver was successfully implemented. A FORTRAN code is used to iteratively solve for stream function and

vorticity. The flow solver appears to solve transient D viscous flows correctly. The stream function combines both flow velocities which simplifies the overall flow solution and creates an intuitive output function. However, the method requires coupling stream function and vorticity through velocities. Thus, the method doesn t eliminate finding velocities. The current implementation does have problems. As described in Roache and Mueller[], corners and edges are often difficult to properly define when working with discrete expressions. Also, there are often too many nodes in low gradient areas. These extra nodes waste computer effort. Overall, the stream function-vorticity solution technique works and is moderately simple to implement. Two testcases based on a backstep expansion were analyzed with the developed computer code.the code was used to determine an easy steady state problem and a more difficult swirling transient problem References [] Lilley, D. G., Computational Fluid Dynamics. Vol I-III, Stillwater, OK, 99. [] Roache, P. J. and Mueller, T. J, Numerical Solutions of Laminar Separated Flows, AIAA Journal, Vol. 8, March 970, pp. 0-7.