Steady Flow: Lid-Driven Cavity Flow

Similar documents
Isotropic Porous Media Tutorial

Solution Recording and Playback: Vortex Shedding

STAR-CCM+ User Guide 6922

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

Simulation of Flow Development in a Pipe

Non-Newtonian Transitional Flow in an Eccentric Annulus

STAR-CCM+: Wind loading on buildings SPRING 2018

Calculate a solution using the pressure-based coupled solver.

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

Tutorial 2. Modeling Periodic Flow and Heat Transfer

FEMLAB Exercise 1 for ChE366

Compressible Flow in a Nozzle

Tutorial: Hydrodynamics of Bubble Column Reactors

Using the Eulerian Multiphase Model for Granular Flow

Use 6DOF solver to calculate motion of the moving body. Create TIFF files for graphic visualization of the solution.

Tutorial: Simulating a 3D Check Valve Using Dynamic Mesh 6DOF Model And Diffusion Smoothing

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

Using a Single Rotating Reference Frame

ANSYS AIM Tutorial Turbulent Flow Over a Backward Facing Step

Supersonic Flow Over a Wedge

Simulation of Turbulent Flow in an Asymmetric Diffuser

Simulation of Laminar Pipe Flows

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

Lab 9: FLUENT: Transient Natural Convection Between Concentric Cylinders

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

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

ANSYS AIM Tutorial Steady Flow Past a Cylinder

Optimization of under-relaxation factors. and Courant numbers for the simulation of. sloshing in the oil pan of an automobile

Driven Cavity Example

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

Solved with COMSOL Multiphysics 4.0a. COPYRIGHT 2010 COMSOL AB.

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

SolidWorks Flow Simulation 2014

Verification of Laminar and Validation of Turbulent Pipe Flows

Free Convection Cookbook for StarCCM+

Simulation of Turbulent Flow around an Airfoil

An Introduction to SolidWorks Flow Simulation 2010

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

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

Tutorial 17. Using the Mixture and Eulerian Multiphase Models

First Steps - Ball Valve Design

Simulation of Turbulent Flow around an Airfoil

STAR-CCM+: Ventilation SPRING Notes on the software 2. Assigned exercise (submission via Blackboard; deadline: Thursday Week 9, 11 pm)

Simulation and Validation of Turbulent Pipe Flows

Modeling Evaporating Liquid Spray

Introduction to ANSYS CFX

EXPERIMENTAL VALIDATION OF STAR-CCM+ FOR LIQUID CONTAINER SLOSH DYNAMICS

In this problem, we will demonstrate the following topics:

Solved with COMSOL Multiphysics 4.2

Step 1: Create Geometry in GAMBIT

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

Adjoint Solver Workshop

Compressible Flow Modeling in STAR-CCM+

Module D: Laminar Flow over a Flat Plate

Terminal Falling Velocity of a Sand Grain

Modeling External Compressible Flow

Shape optimisation using breakthrough technologies

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

Modeling Flow Through Porous Media

Solid Conduction Tutorial

Express Introductory Training in ANSYS Fluent Workshop 07 Tank Flushing

Appendix: To be performed during the lab session

Simulation of Turbulent Flow over the Ahmed Body

ANSYS FLUENT. Airfoil Analysis and Tutorial

Flow in an Intake Manifold

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

Express Introductory Training in ANSYS Fluent Workshop 08 Vortex Shedding

Solved with COMSOL Multiphysics 4.2

Chapter 3: Rate Laws Excel Tutorial on Fitting logarithmic data

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

Simulation of the Airflow Characteristic inside a Hard Disk Drive by Applying a Computational Fluid Dynamics Software

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

SU 2 : Advanced Analysis Topics

Tutorial: Riser Simulation Using Dense Discrete Phase Model

Using the Discrete Ordinates Radiation Model

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

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

Face to Face Thermal Link with the Thermal Link Wizard

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

AIR LOAD CALCULATION FOR ISTANBUL TECHNICAL UNIVERSITY (ITU), LIGHT COMMERCIAL HELICOPTER (LCH) DESIGN ABSTRACT

Heat Exchanger Efficiency

Workbench Tutorial Flow Over an Airfoil, Page 1 ANSYS Workbench Tutorial Flow Over an Airfoil

Advanced ANSYS FLUENT Acoustics

Tutorial: Modeling Liquid Reactions in CIJR Using the Eulerian PDF transport (DQMOM-IEM) Model

Introduction and Overview Extracting the input file Loading the input file into FLOW-3D Cast v

TABLE OF CONTENTS INTRODUCTION... 2 OPENING SCREEN BEGIN ANALYSIS... 4 Start a New File or Open a Previously Saved File... 4

OpenFOAM GUIDE FOR BEGINNERS

Introduction To FLUENT. David H. Porter Minnesota Supercomputer Institute University of Minnesota

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

Multigrid Solvers in CFD. David Emerson. Scientific Computing Department STFC Daresbury Laboratory Daresbury, Warrington, WA4 4AD, UK

SimCafe. ANSYS WB - Airfoil - Setup (Physics) Added by Benjamin J Mullen, last edited by Benjamin J Mullen on Apr 29, :18

Tutorial 1: Welded Frame - Problem Description

Computational Fluid Dynamics (CFD) Simulation in Air Duct Channels Using STAR CCM+

Modeling Evaporating Liquid Spray

November c Fluent Inc. November 8,

MESHLESS SOLUTION OF INCOMPRESSIBLE FLOW OVER BACKWARD-FACING STEP

Flow Sim. Chapter 14 P-51. A. Set Up. B. Create Flow Simulation Project. Step 1. Click Flow Simulation. SolidWorks 10 Flow Sim P-51 Page 14-1

c Fluent Inc. May 16,

Ryian Hunter MAE 598

Problem description. The FCBI-C element is used in the fluid part of the model.

Transcription:

STAR-CCM+ User Guide Steady Flow: Lid-Driven Cavity Flow 2 Steady Flow: Lid-Driven Cavity Flow This tutorial demonstrates the performance of STAR-CCM+ in solving a traditional square lid-driven cavity flow. The problem geometry consists of a two-dimensional 1 m 2 cavity, covered by an impermeable wall that moves in the x-direction with constant velocity of 1 m/s. A stretched quadrilateral mesh with 6400 cells is used. Material properties: Density (kg/m 3 ) 1.0 Dynamic viscosity (PaS) 0.0002 Boundary conditions: Top wall U = 1.0 (m/s), V=0.0 Bottom wall U = V = 0.0

STAR-CCM+ User Guide Steady Flow: Lid-Driven Cavity Flow 3 Left wall U = V = 0.0 Right wall U = V = 0.0 Initial conditions: U, V velocity components (m/s) 0.0 Operating pressure (Pa) 0.0 The Reynolds number based on the width of the cavity, top wall velocity, fluid density and fluid dynamic viscosity is 5000. The calculation is performed using the Segregated Flow model. Both the U- and V-velocity profiles along lines passing through the center of the cavity are compared with data from the literature [1]. Importing the Mesh and Naming the Simulation Start up STAR-CCM+ in a manner that is appropriate to your working environment and select the New Simulation option from the menu bar. STAR-CCM+ will create a window for the new simulation in the Explorer pane and give it the default name Star 1. A quadrilateral-cell mesh has been prepared for this analysis and is stored in a.ccm format file. Import it into the simulation: Select File > Import > Import Volume Mesh... from the menu bar. In the Open dialog, navigate to the doc/tutorials/simpleflow subdirectory of your STAR-CCM+ installation directory and select the file cavityquad.ccm. Click the Open button to start the import. STAR-CCM+ will provide feedback on the import process in the Output window. A mesh region named cell-2 is created under the Regions node to represent the solution domain. Save the new simulation to disk as cavityquad.sim. Visualizing the Imported Mesh We will view the imported mesh, and access various parts contained in the region. Right-click the Scenes node and then select New Scene > Mesh. The mesh will appear in a new scene in the Graphics window. The edges of the square are boundaries. Click on one of them. The

STAR-CCM+ User Guide Steady Flow: Lid-Driven Cavity Flow 4 boundary selected is highlighted and a label with its name appears on the display. In the cavityquad window, the node that corresponds to this boundary is also highlighted. Similarly, if any other boundary node is selected in the cavityquad window, the part corresponding to that boundary will be highlighted in the Graphics window.

STAR-CCM+ User Guide Steady Flow: Lid-Driven Cavity Flow 5 Setting up the Models The default continuum (Physics 1) will be edited so that the appropriate physical models for the simulation are selected. To select physical models for this continuum: Right-click the Continua > Physics 1 > Models node and choose the item Select models... The Physics 1 Model Selection dialog will guide us through the model selection process by showing only options that are appropriate to the choices made so far. In the Physics 1 Model Selection dialog: Ensure that the Auto-select recommended models checkbox is ticked. Make sure that Two Dimensional and Gradients are selected. Select Liquid in the Material group box. Select Segregated Flow in the Flow group box. Select Constant Density in the Equation of State group box. Select Steady in the Time group box. Select Laminar in the Viscous Regime group box. Click Close. The color of the Physics 1 node has turned from gray to blue to indicate that models have been activated. Save the simulation.

STAR-CCM+ User Guide Steady Flow: Lid-Driven Cavity Flow 6 Setting Fluid Properties The density and dynamic viscosity fluid properties must be set. Select the Continua > Physics 1 > Models > Liquid > H2O > Material Properties > Density > Constant node. In the Properties window, set the Value to 1.0 kg/m^3. Within the same H2O node, select the Constant node in the Dynamic Viscosity node. Set the Value to 2.0E-4 Pa-s. Setting Boundary Conditions and Values This problem requires only two boundary conditions: moving and stationary. In STAR-CCM+ it is possible to combine two or more boundaries into one. In the cavityquad window, open the Regions > cell-2 > Boundaries node. Use the <Ctrl><Click> approach to select the boundary nodes wall-3,

STAR-CCM+ User Guide Steady Flow: Lid-Driven Cavity Flow 7 wall-4 and wall-7. Right-click and select Combine. This will create a single boundary, wall-3, that consists of all sides of the square except the top. Right-click on the wall-3 node and rename it Stationary Wall. Rename the wall-5 boundary node Moving Wall. For the moving wall boundary, the velocity of 1 m/s in the x-direction needs to be set. Open the Moving Wall > Physics Conditions node and select the Tangential Velocity Specification node. In the Properties window, select Vector from the drop-down list of the Method property.

STAR-CCM+ User Guide Steady Flow: Lid-Driven Cavity Flow 8 Now open the Physics Values node that was added to the object tree. Open the Velocity node and select the Constant node. Enter 1,0,0 in the Value property. Save the simulation. Visualizing the Solution Post-processing scenes can be updated every iteration (or time-step) in STAR-CCM+. This allows for dynamic monitoring of various quantities, such as the velocity that we want to visualize in this tutorial. A vector scene will therefore be created prior to running. Right-click the Scenes node and then select New Scene > Vector. A new Vector Scene 1 display will appear. The vector bar should show the default setting of Velocity. Click and drag the vector bar toward the right side of the display until it switches to a vertical orientation. The edges of the bar can be dragged to make the label larger. Move the square to make more room for the vector bar. This scene should have the entire region selected for the data. To verify this, select the Scenes > Vector Scene 1 > Displayers > Vector 1 > Parts node. In the

STAR-CCM+ User Guide Steady Flow: Lid-Driven Cavity Flow 9 Properties window, the Parts property should show cell-2, the name of the region. Setting up Lines for Plotting Data will be plotted for both the U- and V-velocity profiles along line probes passing through the center of the cavity. To create these lines: Make sure at least one scene display is active in the Graphics window. Right-click on the Derived Parts node and select New Part > Probe > Line...

STAR-CCM+ User Guide Steady Flow: Lid-Driven Cavity Flow 10 The Create Line Probe dialog will appear in the Explorer pane to specify the desired line. The following settings will be for the U line. In the Input Parts group box, cell-2 should be the only part. Change Point 1 to [0.5, 0, 0] m. Change Point 2 to [0.5, 1, 0] m. Specify the Resolution at 50. Under Display, select the No Displayer radio button. Click Create, then click Close.

STAR-CCM+ User Guide Steady Flow: Lid-Driven Cavity Flow 11 A new derived part named line-probe will be created in the Derived Parts manager node. Rename this node Simulation (U). Next, the V line probe needs to be created. This can be done simply by making a copy of the existing derived part and modifying it. Right-click on the Simulation (U) node and select Copy. Right-click on the Derived Parts node and select Paste. Rename the new node Simulation (V). In the Properties window, enter 0, 0.5, 0 for the Point 1 property. Enter 1, 0.5, 0 for the Point 2 property. Save the simulation. Plotting Simulation Data This part of the tutorial produces the plots of the U- and V-velocity profiles. In a subsequent step, experimental data will be imported from files and plotted alongside the numerical data. The development of the solution can be observed throughout the run by viewing these plots. To create the U-velocity plot: Right-click on the Plots node and select New Plot > X-Y. A new node named XY Plot 1 will appear. Rename the XY Plot 1 node U-Velocity Profile. With this node still selected, in the Properties window, click on the right-hand side of the Parts property. Select Derived Parts > Simulation (U) in the Parts dialog and click OK.

STAR-CCM+ User Guide Steady Flow: Lid-Driven Cavity Flow 12 Select the U-Velocity Profile > X Type > Position node. In the Properties window, change the Direction vector to [0,1,0]. Select the U-Velocity Profile > Y Types > Y Type 1 > Scalar node. Select Velocity(i) for the Scalar property.

STAR-CCM+ User Guide Steady Flow: Lid-Driven Cavity Flow 13 In the same Y Type 1 node, select the Simulation (U) > Line Style node. In the Properties window, change the Style property to Solid. Select the Symbol Style node. Change the Shape property to None. Select the U-Velocity Profile > Axes > Y Axis > Labels node. Change the Minimum and Maximum properties to -0.6 and 1.0, respectively. Change the Label Spacing expert property to 0.2. To create the V-velocity plot: Right-click on the Plots node and again select New Plot > X-Y. A new node named XY Plot 1 will appear. Rename this XY Plot 1 node V-Velocity Profile. With this node still selected, in the Properties window, click on the right-hand side of the Parts property. Select Derived Parts > Simulation (V) in the Parts dialog and click OK. Select the V-Velocity Profile > Y Types > Y Type 1 > Scalar node. Select Velocity(j) for the Scalar property. In the same Y Type 1 node, select the Simulation (V) > Line Style node. In the Properties window, change the Style property to Solid.

STAR-CCM+ User Guide Steady Flow: Lid-Driven Cavity Flow 14 Select the Symbol Style node. Change the Shape property to None. Select the V-Velocity Profile > Axes > Y Axis > Labels node. Change the Minimum and Maximum properties to -0.7 and 0.5, respectively. Change the Label Spacing expert property to 0.2. Save the simulation. Plotting Reference Data To compare the experimental velocity data with the velocity plots, it is necessary to import the data in supplied files into STAR-CCM+ tables: Open the Tools node. Right-click on the Tables node and select New Table > File... In the Open dialog navigate to the doc/tutorials/simpleflow subdirectory of your STAR-CCM+ installation directory, set the File Type drop-down list to (*.xy), and select the file UVelocity.xy. Click Open. The data in that file is now stored in a table named UVelocity. To display it on the U-velocity plot: Return to the U-Velocity Profile node. Right-click on the Tabular node and select New Tabular Data Set.

STAR-CCM+ User Guide Steady Flow: Lid-Driven Cavity Flow 15 A new node named tabular will appear. In the Properties window, select UVelocity for the Table property. Rename the node Reference Data (U). Select column 0 for the X column and column 1 for the Y column. Select the Reference Data (U) > Line Style node. In the Properties window, make sure that the Style property is set to None. Select the Symbol Style node. Change the Size property to 6. Change the Color property to blue. Change the Shape property to Triangle. The supplied experimental data will now appear in the U-velocity plot. Numerical data will be shown once the simulation run has started. Use the same techniques for the V-velocity plot: Right-click on the Tables node and select New Table > File... In the Open dialog, select the file VVelocity.xy and click Open. In the V-Velocity Profile > Tabular node, create a new tabular data set and select VVelocity for the Table property. Rename the node Reference Data (V). Select column 0 for the X column and column 1 for the Y column. Select the Reference Data (V) > Line Style node. In the Properties window, make sure that the Style property is set to None. Select the Symbol Style node. Change the Size property to 6. Change the Color property to blue. Change the Shape property to Triangle. Now both plots will show experimental data alongside the numerical data. Save the simulation. Preparing Solver Parameters and Stopping Criteria Before running the analysis, we will take a look at the velocity solver, as well as the maximum number of iterations to be performed.

STAR-CCM+ User Guide Steady Flow: Lid-Driven Cavity Flow 16 Select the Solvers > Segregated Flow > Velocity node. In the Properties window, make sure that the Under-Relaxation Factor is 0.7. Open the Stopping Criteria node and then select the Maximum Steps node. In the Properties window, make sure that the Maximum Steps value is 1000. The pre-processing task is now complete. Initializing and Running the Simulation To initialize the solution and run the analysis: Click on the (Initialize Solution) button in the Solution toolbar or use the Solution > Initialize Solution menu item. The initial zero velocity condition will be shown in the plot displays. Click on the (Run) button in the Solution toolbar to run the analysis. The Residuals display will automatically be created and will show the solver s progress. If necessary, click on the Residuals tab to bring the Residuals plot into view. An example of a residual plot is shown in a separate part of the User Guide. During the run it is possible to stop the process by clicking the (Stop) button in the toolbar. The simulation can be continued later by clicking on the (Run) button. If left alone, the simulation will continue until the stopping criteria are satisfied. After the run is finished, save the simulation.

STAR-CCM+ User Guide Steady Flow: Lid-Driven Cavity Flow 17 Analyzing the Results Once the calculations are finished, the displays will show the results based on the pre-processing settings. Click on the Vector Scene 1 display tab to view the vectors. The plots also contain numerical results that can be compared to the experimental data:

STAR-CCM+ User Guide Steady Flow: Lid-Driven Cavity Flow 18 U-velocity

STAR-CCM+ User Guide Steady Flow: Lid-Driven Cavity Flow 19 V-velocity Summary This tutorial demonstrated the following STAR-CCM+ features: Defining physical models. Defining material properties required for the selected models. Defining boundary conditions. Reviewing solver parameters and stopping criteria. Monitoring the solution progress. Running the solver until the residuals are satisfactory. Analyzing results using STAR-CCM+ s visualization and XY-plot facilities. Bibliography [1] Ghia, U., Ghia, K.N., and Shir, C.T. 1982. High-Re solution for incompressible flow using the Navier-Stokes equations and a multigrid method, J. Comp. Phys., 48, p. 387.