Fluent-Intro 14.5 WS07 Tank Flush
Fluent-Intro 14.5 WS07 Tank Flush
Fluent-Intro 14.5 WS07 Tank Flush
PRACE Autumn School 2013 - Industry Oriented HPC Simulations, September 21-27, University of Ljubljana, Faculty of Mechanical Engineering, Ljubljana, Slovenia
Release 14.5
Introduction [1]
Workshop Description:
In this workshop, you will model the filling and emptying of a water tank. The simulation will be multiphase (volume of fluid) and transient (time dependant).
Learning Aims:
This workshop aims to teach skills in running multiphase simulation in Fluent. The
entire simulation approach is covered, including: Setting up a 2phase simulation. Using "patch" tools to control initialization. Preparing a transient animation. Using Solution Controls to modify the problem definition (turn off the valve).
Learning Objectives:
This workshop teaches skills in the use of multiphase modelling, transient flow modelling, generating images onthefly and preparing animations.
Introduction
2012 ANSYS, Inc.
Basic Setup
September 19, 2013
Preparing to Solve
3
Solving
PostProcessing
Summary
Release 14.5
Read or import the mesh file. tankflush.msh.gz Use the parallel processing operation if it is available on the training computers.
Scale the mesh to units of cm. Set "View Length Unit In" to cm to have
Fluent display lengths in centimeters.
Basic Setup
September 19, 2013
Preparing to Solve
5
Solving
PostProcessing
Summary
Release 14.5
Outlet
Introduction
2012 ANSYS, Inc.
Basic Setup
September 19, 2013
Preparing to Solve
6
Solving
PostProcessing
Summary
Release 14.5
Introduction
2012 ANSYS, Inc.
Basic Setup
September 19, 2013
Preparing to Solve
7
Solving
PostProcessing
Summary
Release 14.5
Introduction
2012 ANSYS, Inc.
Basic Setup
September 19, 2013
Preparing to Solve
8
Solving
PostProcessing
Summary
Release 14.5
Doubleclick on Multiphase.
Enable "Volume of Fluid". Set "Number of Eulerian Phases" to 2. Ensure that Scheme is set to Explicit. Enable Implicit Body Force. Click OK.
Zonal Discetrization can help to make the simulation more robust in cases where sharp resolution of the interface is not needed in all fluid zones. Fluid1: Position of Phase Interface is important solve High Order Discretisation Scheme. Fluid2: Position of Phase Interface not important setup low order Disretisation Scheme here.
Introduction
2012 ANSYS, Inc.
Basic Setup
September 19, 2013
Preparing to Solve
9
Solving
PostProcessing
Summary
Release 14.5
Basic Setup
September 19, 2013
Preparing to Solve
10
Solving
PostProcessing
Summary
Release 14.5
Introduction
2012 ANSYS, Inc.
Basic Setup
September 19, 2013
Preparing to Solve
11
Solving
PostProcessing
Summary
Release 14.5
The operating density should be set to the density of the lightest fluid in the domain when using the VOF model; otherwise, an erroneous hydrostatic pressure distribution will occur.
Introduction
2012 ANSYS, Inc.
Basic Setup
September 19, 2013
Preparing to Solve
12
Solving
PostProcessing
Summary
Release 14.5
Select Normal to Boundary for Direction Specification Method. For the turbulent quantities, select Intensity and Hydraulic Diameter, with TI of 5% and HD of 2.1 cm. Click OK.
Phase and doubleclick again on inlet. Set the Mass Flow Rate of air to 0 (kg/s). Click OK.
Basic Setup
September 19, 2013
Introduction
2012 ANSYS, Inc.
Preparing to Solve
13
Solving
PostProcessing
Summary
Release 14.5
Introduction
2012 ANSYS, Inc.
Basic Setup
September 19, 2013
Preparing to Solve
14
Solving
PostProcessing
Summary
Release 14.5
The Copy Conditions panel is a quick way of transferring common settings from one boundary to another. The "To Boundary Zones" automatically displays boundaries of the same type as the "From Boundary Zone" selection.
Select "air" under "Phase" and again click Copy. Click OK when asked if you want to copy the boundary conditions for air. Close the Copy Conditions panel.
Introduction
2012 ANSYS, Inc.
Basic Setup
September 19, 2013
Preparing to Solve
15
Solving
PostProcessing
Summary
Release 14.5
Set Scheme to PISO. Under Spatial Discretization. Gradient Least Squares Cell Based. Pressure PRESTO! Momentum Second Order Upwind. Turbulent Kinetic Energy and Turbulent Dissipation Rate First Order Upwind. Volume Fraction Geo Reconstruct.
Problem Setup>Solution Controls. Set the UnderRelaxation Factor for momentum to 0.3. Set the UnderRelaxation Factors for "Turbulent Kinetic Energy" and "Turbulent Dissipation Rate" to 0.5.
Introduction
2012 ANSYS, Inc.
Basic Setup
September 19, 2013
Preparing to Solve
16
Solving
PostProcessing
Summary
Release 14.5
This will instruct the solver to fill the tank with air. The next step is to partially fill the tank with water, resulting in the proper initial condition.
Introduction
2012 ANSYS, Inc.
Basic Setup
September 19, 2013
Preparing to Solve
17
Solving
PostProcessing
Summary
Release 14.5
Basic Setup
September 19, 2013
Preparing to Solve
18
Solving
PostProcessing
Summary
Release 14.5
In the Manage Adaption Register on the previous slide, use the Options... button to enable mesh display together with the cells in the adaption register.
Introduction
2012 ANSYS, Inc.
Basic Setup
September 19, 2013
Preparing to Solve
19
Solving
PostProcessing
Summary
Release 14.5
Introduction
2012 ANSYS, Inc.
Basic Setup
September 19, 2013
Preparing to Solve
20
Solving
PostProcessing
Summary
Release 14.5
Choose Graphics and Animations in the Outline Tree. Choose Contour in Graphics.
Switch to Phases. Volume Fraction air. choose sym1 at Surface list. Check "Filled".
In multiphase problems, displaying contours of volume fraction to confirm the correct initial condition before beginning to iterate is highly recommended.
Solving PostProcessing Summary
Release 14.5
Introduction
2012 ANSYS, Inc.
Basic Setup
September 19, 2013
Preparing to Solve
21
Choose Colormap.
Set Colormap size to 10. Choose the gray Scheme. Apply.
Introduction
2012 ANSYS, Inc.
Basic Setup
September 19, 2013
Preparing to Solve
22
Solving
PostProcessing
Summary
Release 14.5
Introduction
2012 ANSYS, Inc.
Basic Setup
September 19, 2013
Preparing to Solve
23
Solving
PostProcessing
Summary
Release 14.5
Introduction
2012 ANSYS, Inc.
Basic Setup
September 19, 2013
Preparing to Solve
24
Solving
PostProcessing
Summary
Release 14.5
Basic Setup
September 19, 2013
Preparing to Solve
25
Solving
PostProcessing
Summary
Release 14.5
Introduction
2012 ANSYS, Inc.
Basic Setup
September 19, 2013
Preparing to Solve
26
Solving
PostProcessing
Summary
Release 14.5
Outline Tree.
Monitors.
Residuals. Choose Window 1 for Plot. Click "OK".
Introduction
2012 ANSYS, Inc.
Basic Setup
September 19, 2013
Preparing to Solve
27
Solving
PostProcessing
Summary
Release 14.5
Enter 0.01 s for Time Step Size. Enter 350 under Number of Time Steps. Click Calculate.
The solution will require approximately half an hour to compute. You can choose to run all of the calculations or stop the iterations, read final data file or check the provided animation.
Introduction
2012 ANSYS, Inc.
Basic Setup
September 19, 2013
Preparing to Solve
28
Solving
PostProcessing
Summary
Release 14.5
This is a snapshot of the graphics windows after the completion of the first 53 time steps.
Introduction
2012 ANSYS, Inc.
Basic Setup
September 19, 2013
Preparing to Solve
29
Solving
PostProcessing
Summary
Release 14.5
Introduction
2012 ANSYS, Inc.
Basic Setup
September 19, 2013
Preparing to Solve
30
Solving
PostProcessing
Summary
Release 14.5
The "Animation Playback" tool can also be used to generate a sequence of picture frames.
Introduction
2012 ANSYS, Inc.
Basic Setup
September 19, 2013
Preparing to Solve
31
Solving
PostProcessing
Summary
Release 14.5
Further Work
There are many ways the simulation in this tutorial could be extended for instance reloading the saved initial case and data files and then try:
Compressive or Modifed HRIC. Modify the Time Step size. Reduce the Time Step Size by Factor 2 or 5. Use Variable Time Stepping to ensure that the time step size corresponds to a predetermined value for the Courant Number in the region of the phase interface.
Courant Number of 2 means the Phase Interphase is passing only two Cells per Time Step.
Introduction
2012 ANSYS, Inc.
Basic Setup
September 19, 2013
Preparing to Solve
32
Solving
PostProcessing
Summary
Release 14.5
WrapUp
This workshop has shown the basic steps that are applied in VOF simulations: Setup Phase and Interaction. Setting boundary conditions per Phase and Solver Settings. Running a transient simulation whilst write data and animation data. Postprocessing the results.
One of the important things to remember in your own work is, before even starting the ANSYS software, is to think WHY you are performing the simulation: What information are you looking for. What do you know about the inlet conditions. In this case we were interested in the how long it would take to completely empty the tank. Knowing your aims from the start will help you make sensible decisions of how much of the part to simulate, the level of mesh refinement needed, and which numerical schemes should be selected.
Introduction
2012 ANSYS, Inc.
Basic Setup
September 19, 2013
Preparing to Solve
33
Solving
PostProcessing
Summary
Release 14.5