Professional Documents
Culture Documents
Tank Flushing
Introduction to CFX
Pardad Petrodanesh.Co
Lecturer: Ehsan Saadati
ehsan.saadati@gmail.com
www.petrodanesh.ir
ANSYS, Inc. Proprietary
2009 ANSYS, Inc. All rights reserved.
WS7-1
Introduction
Workshop Supplement
This workshop models a water tank filling and then emptying through a
siphon. The problem is transient in nature and solved as a two fluid
multiphase case (air + water).
An initial water level is set in the tank. The water supply is turned on for
the first second of the simulation and then shut off for the rest of the
simulation. The water level rises until water flows out the U-tube
generating a siphoning effect which effectively empties the tank.
WS7-2
Mesh Import
Workshop Supplement
WS7-3
Workshop Supplement
WS7-4
Workshop Supplement
Definition
Click on the New icon
Name the new fluid Air
Set the Material to Air at 25C and the
Morphology to Continuous Fluid
Create another fluid named Water
Set the Material to Water and the
Morphology to Continuous Fluid
WS7-5
Workshop Supplement
WS7-6
Workshop Supplement
WS7-7
Workshop Supplement
WS7-8
Workshop Supplement
WS7-9
Workshop Supplement
WS7-10
Workshop Supplement
Water will flow into the tank at a rate of 0.2 [kg s^-1] for 1 [s]; it will then
be shut off for the remainder of the simulation. Therefore the inlet flow
rate must be a function of time. You will write an expression using the
if() function to define this behavior, then create the Inlet boundary:
WS7-11
Workshop Supplement
WS7-12
Define Expressions
Workshop Supplement
Next you will create expressions to define the initial water height and
the initial hydrostatic pressure field. These expressions must define the
correct initial flow field because the transient simulation is started cold
(it is not started from a converged steady-state simulation).
waterHt = 6 [cm]
waterVF = if(y<waterHt,1,0)*if(y>-0.01 [m],1,0)* if(x>-0.028
[m],1,0)
waterDen = 998 [kg m^-3]
HydroP = waterDen * g * (waterHt - y) * waterVF
waterHt is the initial height of the water in the tank. waterVF provides
the initial volume fraction distribution in the tank (see next slide).
waterDen is the density of water. HydroP provides the initial pressure
distribution due to the hydrostatic pressure of water.
ANSYS, Inc. Proprietary
2009 ANSYS, Inc. All rights reserved.
WS7-13
Define Expressions
Workshop Supplement
x = - 0.028
y = waterHt
y = - 0.01
WS7-14
Workshop Supplement
WS7-15
Workshop Supplement
By default results are only written at the end of the simulation. You must
define transient results to view the intermediate solution:
4. In the Output Variables List, use the icon and the Ctrl
key to pick Air.Volume Fraction, Velocity, and
Water.Volume Fraction
5. Under Output Frequency, set the Timestep Interval to 2,
then click OK
Transient results will be written every second timestep, thus
creating a total of 125 Transient Results files
ANSYS, Inc. Proprietary
2009 ANSYS, Inc. All rights reserved.
WS7-16
Workshop Supplement
Next create a Monitor Point to track the volume of water in the domain
during the solution:
WS7-17
Run Solver
Workshop Supplement
Note the shape of the Water Volume curve, and see that less water is in the
domain after the run is complete than there was at the beginning
WS7-18
Post-Process Results
Workshop Supplement
WS7-19
Post-Process Results
Workshop Supplement
WS7-20
Post-Process Results
Workshop Supplement
WS7-21
Additional Notes
Workshop Supplement
WS7-22