Professional Documents
Culture Documents
Tank Flushing
Introduction to CFX
WS7-1
Release 13.0
December 2010
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
Release 13.0
December 2010
Mesh Import
Workshop Supplement
WS7-3
Release 13.0
December 2010
Workshop Supplement
WS7-4
Release 13.0
December 2010
Workshop Supplement
WS7-5
Release 13.0
December 2010
Workshop Supplement
WS7-6
Release 13.0
December 2010
Workshop Supplement
WS7-7
Release 13.0
December 2010
Workshop Supplement
WS7-8
Release 13.0
December 2010
Workshop Supplement
WS7-9
Release 13.0
December 2010
Workshop Supplement
WS7-10
Release 13.0
December 2010
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
Release 13.0
December 2010
Workshop Supplement
WS7-12
Release 13.0
December 2010
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
2010 ANSYS, Inc. All rights reserved.
WS7-13
Release 13.0
December 2010
Define Expressions
Workshop Supplement
x = - 0.028
y = waterHt
y = - 0.01
WS7-14
Release 13.0
December 2010
Workshop Supplement
WS7-15
Release 13.0
December 2010
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
2010 ANSYS, Inc. All rights reserved.
WS7-16
Release 13.0
December 2010
Workshop Supplement
Next create a Monitor Point to track the volume of water in the domain
during the solution:
WS7-17
Release 13.0
December 2010
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
Release 13.0
December 2010
Post-Process Results
Workshop Supplement
WS7-19
Release 13.0
December 2010
Post-Process Results
Workshop Supplement
WS7-20
Release 13.0
December 2010
Post-Process Results
Workshop Supplement
WS7-21
Release 13.0
December 2010
Additional Notes
Workshop Supplement
WS7-22
Release 13.0
December 2010