Horizontal Film Boiling
Horizontal Film Boiling
Horizontal Film Boiling
Introduction
This tutorial provides guidelines and recommendations for setting up and solving film boiling
problems and suggests mesh resolution and solver settings. In such problems, the wall
temperature is much higher than the saturation temperature of the liquid in contact with
the wall, and the entire wall surface is immersed in vapor. Due to the boiling mass exchange
occurring at the vapor-liquid interface, bubbles of gas are periodically produced and emitted
upward. Such a regime is known as film boiling.
This tutorial demonstrates how to do the following:
Set up the volume of fluid (VOF) model.
Use user-defined functions (UDFs) to specify a model which is not available with
ANSYS FLUENT.
Solve the case using appropriate solver settings and solution monitors.
Postprocess the resulting data.
Prerequisites
This tutorial is written with the assumption that you have completed Tutorial 1 from ANSYS
FLUENT13.0 Tutorial Guide, and that you are familiar with the ANSYS FLUENTnavigation
pane and menu structure. Some steps in the setup and solution procedure will not be shown
explicitly.
In this tutorial, you will use VOF multiphase model. If you have not used this model before,
refer to Section 26.3, Setting Up the VOF Model in ANSYS FLUENT13.0 Users Guide.
For more information about UDFs, see ANSYS FLUENT13.0 UDF Manual.
Problem Description
The problem to be solved in this tutorial is shown in Figure 1.
The wall has a temperature 10 K above saturation. Initially, the linear temperature profile
(from Twall to Tsat in the positive Y direction) is patched on the liquid domain.
Transient
Step 3: Models
1. Define the multiphase model.
Models
Multiphase Edit...
Energy Edit...
Step 4: Materials
1. Create a new material, liquid.
Materials Create/Edit...
Value
5
200
1
0.005
(b) Click Change/Create and close the Create/Edit Materials dialog box.
A Question dialog box will appear asking whether to overwrite liquid, click NO.
Step 5: Phases
1. Define the primary phase (vapor).
Phases
Ensure that the UDF source file (boiling.c) is in the same folder that contains your
case and data files.
(a) Click Add... and select the source file, boiling.c.
(b) Click Build and then click Load to load the library.
2. Define function hooks.
Define User-Defined Function Hooks...
(a) Click Edit... for the Initialization to open Initialization Functions dialog box.
i. Select my init function::libudf from the Available Initializations Functions list.
ii. Click Add and OK to close the Initialization Functions dialog box.
(b) Click Edit... for the Adjust to open Adjust Functions dialog box.
i. Select area density::libudf from the Available Adjust Functions list.
ii. Click Add and OK to close the Adjust Functions dialog box.
(c) Click OK to close the User-Defined Function Hooks dialog box.
3. Set the Number of User-Defined Memory Locations to 3.
Define User-Defined Memory...
This step is necessary because the UDF uses three UDMs.
Step 7: Cell Zone Conditions
Cell Zone Conditions
fluid
1. Retain the selection of mixture from the Phase drop-down list and click Edit....
(a) Enable Source Terms and click the Source Terms tab.
(b) Click the Edit... for the Energy to open the Energy sources dialog box.
(b) Click the Edit... for the Mass to open the Mass sources dialog box.
heat
(a) Select mixture from the Phase drop-down list and click Edit....
i. Click the Thermal tab.
ii. Select Temperature from the Thermal Conditions list and enter a value of
510 k.
This indicates 10 K superheat with respect to the saturation temperature
500 K.
iii. Click OK to close the Wall dialog box.
outlet
(a) Retain mixture from the Phase drop-down list and click Edit....
i. Click the Thermal tab and enter 500 k for Backflow Total Temperature.
This prevents gas from entering the outlet and also sets the saturation temperature for the liquid in case reverse flow occurs.
ii. Click OK to close the Pressure Outlet dialog box.
(b) Select fluid from the Phase drop-down list and click Edit....
i. Click Multiphase tab and enter 1 for Backflow Volume Fraction.
ii. Click OK to close the Pressure Outlet dialog box.
Step 9: Operating Conditions
Boundary Conditions Operating Conditions...
1. Enable Gravity.
2. Set the Gravitational Acceleration in the Y direction to -9.81 m/s2 .
3. Enable Specified Operating Density and set the Operating Density to 5 kg/m3 .
Step 10: Solution
1. Set the surface tension calculation options using the following TUI commands:
You may need to press the <Enter> key to get the > prompt.
> solve/set/st
Use node based smoothing
[no]
Number of smoothings
[1]
Smoothing relaxation Factor
[1]
use vof gradients at the nodes for curvature calculation? [yes] no
10
11
13
14
2. Display filled contours of volume fraction of gas after 1100 time steps (t = 1.1s). See
Figure 6.
15
3. Display filled contours of user-defined memory after 1000 time steps (t = 1.0s).
(a) Increase Levels to 9.
(b) Select User Defined Memory... and User Memory 1 in the Contours of drop-down
lists.
(c) Click Display (see Figure 7).
16
5. Display contours of volume fraction of fluid after 1000 time steps (t = 1.0s). See
Figure 9.
17
Results
This problem requires a UDF for implementing mass exchange source terms in mass equations for each phase (liquid and vapor). It also requires a source term in the energy equation
to account for latent heat transfer.
The general form of the mass source in the vapor phase is:
00
00
(qg ql ). 5 1
=
L
S s
(1)
00
Here, q is the heat flux across the interface per unit area of the interface, the subscripts g
and l refer to vapor and liquid, respectively, and L is the latent heat.
As a first order approximation, the heat flux difference is represented as:
00
00
(qg ql ) (l kl + g kg ) 5 T
(2)
(kl l + kg g )(5T. 5 l )
L
(3)
Since there is no internal mass source, mass source for liquid phase becomes:
S l = S g
(4)
(5)
Interfacial properties include surface tension 0.1 N/m, latent heat 1e5 J/kg, saturation temperature Tsat = 500 K. The length scale of the problem is the most dangerous wavelength
of Taylor-Raleigh instability:
3
(l g )gy
0 = 2
!1/2
= 0.0787 m
(6)
gy 0 = 0.878 m/s
(7)
(8)
18
The domain horizontal width is 0 /2 and the vertical height is 30 /2. The mesh resolution
is 64(hor)x192(ver). The initial shape of the vapor-liquid interface must be perturbed to
initiate bubble growth. Therefore, there is another initialization UDF which fills with gas
all the cells satisfying the following condition:
y 0.00292 + 0.0006 cos(2x/0 )
(9)
Nu =
| q | 0
kl (Twall Tsat )
(10)
Since the time scale of this problem is 0.1s, the time step is 0.001, i.e., 100 time steps
resolution. In all, the problem should run for about 1200 time steps to capture the first
bubble emission.
Postprocessing the results will show void fraction and temperature profiles at 900th and
1100th time steps, corresponding to 0.9 and 1.1 seconds. These times correspond to the
minimum and maximum thickness of the boiling film at the heated wall. They correspond
to minimum and maximum values of Nusselt number, respectively.
Summary
This tutorial demonstrated the application of the VOF model in a film boiling regime. Also,
UDFs were used to enhance the standard features of ANSYS FLUENT.
DEFINE ADJUST (area density) is a general purpose macro that can be used to adjust
or modify ANSYS FLUENT variables. In this tutorial, it calculated the dot product
and stored the value in accordance with Equation 3.
For details, see Section 2.2.1, DEFINE ADJUST in ANSYS FLUENT 13.0 UDF Manual.
DEFINE SOURCE (gas) uses UDMI(0) and the user input for L to compute the mass
source term (refer Equation 3) for the gas phase and stores it in UDMI(1). This macro
also computes the energy source (refer Equation 5) and stores it in UDMI(2).
For details, see Section 2.3.22, DEFINE SOURCE in ANSYS FLUENT 13.0 UDF Manual.
DEFINE SOURCE (liquid) assigns UDMI(1) with a negative sign as a liquid mass source
in accordance with Equation 4.
DEFINE SOURCE (energy) assigns UDMI(2) as a latent heat source.
19
DEFINE INIT (my init function) initializes the gas void fraction in accordance with
Equation 7.
For details, see Section 2.2.8, DEFINE INIT in ANSYS FLUENT 13.0 UDF Manual.
20