Академический Документы
Профессиональный Документы
Культура Документы
7.1. Introduction
This tutorial examines the flow of two fluids in a single die. Two polymer melts with distinct physical
properties are fed through different channels into a die. The aim of the calculation is to predict the
location of the interface between the two fluids.
Set material properties and boundary conditions for a moving interface problem.
7.2. Prerequisites
This tutorial assumes that you are familiar with the menu structure in Polydata and Workbench and
that you have solved or read 2.5D Axisymmetric Extrusion (p. ?). Some steps in the set up procedure
will not be shown explicitly.
Incompressibility and momentum equations are solved in the fluid domains. To solve the fully coupled
problem, two sub-tasks are defined one each for fluid 1 (sub-task 1) and fluid 2 (sub-task 2). Each sub-
task will contain a particular model, domain of definition, material properties, and boundary conditions,
including the moving interface along the intersection of the two sub-tasks.
The domain of definition for the problem is divided into four subdomains: sub-task 1 is defined on
subdomain 1 and subdomain 2, and sub-task 2 is defined on subdomain 3 and subdomain 4 (see Fig-
ure 7.2: Boundary Sets and Subdomains for the Problem (p. 3)). Each sub-task is defined over two
subdomains to allow for the definition of the remeshing method only where it is necessary, (in the area
near the moving interface).
Fluid 1 has a viscosity of = 10000 poise, and fluid 2 has a viscosity of = 5000 poise.
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 1
Flow of Two Immiscible Fluids
The boundary sets for the problem are shown in Figure 7.2: Boundary Sets and Subdomains for the
Problem (p. 3).
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
2 of ANSYS, Inc. and its subsidiaries and affiliates.
Problem Description
An interface is defined at the intersection of subdomain 2 and subdomain 4. In this problem, the interface
is a moving one, since the exact line of separation between the fluids is unknown.
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 3
Flow of Two Immiscible Fluids
7.4. Preparation
To prepare for running this tutorial:
Note
If you do not have a User Name and Password, you can register by clicking Customer
Registration on the Log In page.
4. Narrow the results by using the filter on the left side of the page.
7. Unzip the Two-Fluids_R150.zip file you have downloaded to your working folder.
8. Start Workbench from Start All Programs ANSYS 15.0 Workbench 15.0.
2. Save the ANSYS Workbench project using File Save, entering two-fluids as the name of the
project.
When Polydata starts, the Create a new task menu item is highlighted, and the geometry for the
problem is displayed in the Graphics Display window.
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
4 of ANSYS, Inc. and its subsidiaries and affiliates.
Step 2a: Definition of Sub-Task 1
F.E.M. task
Steady-state problem(s)
2D axisymmetric geometry
Create a sub-task
Sub-task 1 is defined for SUBDOMAIN2 (the region of fluid 1 near the moving interface) and SUBDOMAIN1
(the rest of fluid 1), as shown in Figure 7.2: Boundary Sets and Subdomains for the Problem (p. 3).
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 5
Flow of Two Immiscible Fluids
Material Data
Polydata indicates which material properties are relevant for your sub-task by graying out the irrelevant
properties. In this case, viscosity, density, inertia terms, and gravity are available for specification. For
this model, define only the viscosity of the material.
Modify fac
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
6 of ANSYS, Inc. and its subsidiaries and affiliates.
Step 2a: Definition of Sub-Task 1
6. Click Upper level menu three times to return to the fluid 1 menu.
7. Specify the flow boundary conditions for fluid 1 (SUBDOMAIN1 and SUBDOMAIN2).
The boundary uses the interface condition, which is the standard boundary condition between two
adjacent fluids. This condition establishes the continuity of the velocity field and the contact forces
in the momentum equation.
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 7
Flow of Two Immiscible Fluids
The position of the line separating the two fluids is unknown at the start of the problem and is
calculated as part of the solution, so the intersection will be defined as a moving interface. In
steady flows and problems involving immiscible fluids, the interface must be a streamline. To sat-
isfy this condition and to obtain the exact location of the line of separation, an additional equation,
the kinematic condition, ( = 0), is added to the system. This guarantees that the material points
do not cross the interface.
Polydata asks you to select the boundary or subdomain on which the position of the moving
surface is to be imposed.
viii. Click Upper level menu twice to return to the Kinematic condition menu.
ix. Select Upwinding in the kinematic equation. Click Upper level menu.
x. Click Accept the current setup to return to the Flow boundary conditions menu.
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
8 of ANSYS, Inc. and its subsidiaries and affiliates.
Step 2a: Definition of Sub-Task 1
i. Select Zero wall velocity (vn=vs=0) along BOUNDARY1 and click Modify.
When this option is selected, Polydata automatically chooses the most appropriate method
to compute the inflow condition.
vi. Retain the default condition Zero wall velocity (vn=vs=0) along BOUNDARY2 at the outer
wall of SUBDOMAIN1 (BOUNDARY2).
At a solid-liquid interface, the velocity of the liquid is that of the solid surface. Hence the fluid
is assumed to stick to the wall. This is known as the no-slip assumption because the liquid is
assumed to adhere to the wall, and so has no velocity relative to the wall.
It is assumed that a fully developed velocity profile is reached at the exit, so the outflow condition
is most appropriate. This condition essentially imposes a zero normal force ( ) that includes a
pressure term, and zero tangential velocity ( ).
i. Select Zero wall velocity (vn=vs=0) along BOUNDARY5 and click Modify.
d. Retain the default condition Zero wall velocity (vn=vs=0) along BOUNDARY6 at the outer wall
common to SUBDOMAIN1 and SUBDOMAIN2 (BOUNDARY6).
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 9
Flow of Two Immiscible Fluids
The fluid is assumed to stick to the wall, since at a solid-liquid interface the velocity of the liquid
is that of the solid surface.
This model involves a moving interface for which the position is unknown. A portion of the mesh is af-
fected by the relocation of this boundary. Hence a remeshing technique is applied on this part of the
mesh. The moving interface is entirely contained within SUBDOMAIN2, and hence only SUBDOMAIN2
will be affected by the relocation of the moving interface.
Global remeshing
If you have a complex geometry, it may be necessary to split it into additional subdomains in order
to define a specific remeshing method on each of them.
For this purpose, Polydata allows you to create several local remeshings. For this problem, a single
local remeshing is sufficient.
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
10 of ANSYS, Inc. and its subsidiaries and affiliates.
Step 2a: Definition of Sub-Task 1
The purpose of the remeshing technique is to relocate internal nodes according to the displacement
of boundary nodes due to the motion of the interface. Mesh nodes must be organized along lines
of remeshing (spines), which are collections of nodes logically arranged in a one-dimensional
manner. Polydata requires the specification of the first and last spines that the fluid encounters
(inlet of spines and outlet of spines, respectively). In this case, the inlet of spines is the intersection
of SUBDOMAIN2 with SUBDOMAIN1, and the outlet of spines is the intersection of SUBDOMAIN2
with the flow exit (BOUNDARY5).
Method of Spines
i. To specify the inlet for the system of spines, select Intersection with SUBDOMAIN1 and click
Confirm.
ii. Specify the outlet for the system of spines, select Intersection with BOUNDARY5 and click
Confirm.
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 11
Flow of Two Immiscible Fluids
Create a sub-task
a. Polydata asks you if you want to copy data from an existing sub-task.
b. Click No, since this sub-task has different parameters associated with it.
Material Data
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
12 of ANSYS, Inc. and its subsidiaries and affiliates.
Step 2b: Definition of Sub-Task 2
Modify fac
d. Click Upper level menu three times to return to the fluid 2 menu.
4. Specify the flow boundary conditions for fluid 2 (SUBDOMAIN3 and SUBDOMAIN4).
i. Select Zero wall velocity (vn=vs=0) along SUBDOMAIN2 and click Modify.
The interface condition was defined as a moving interface when setting the boundary condi-
tions for fluid 1. So further inputs are not required to define the moving interface for fluid 2.
Surface tension effects are neglected in this problem.
b. Retain the default condition Zero wall velocity (vn=vs=0) along BOUNDARY2 at the outer wall
of SUBDOMAIN3 (BOUNDARY2).
i. Select Zero wall velocity (vn=vs=0) along BOUNDARY3 and click Modify.
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 13
Flow of Two Immiscible Fluids
iv. Accept the default value of 1 for the flow rate by clicking OK.
d. Retain the default condition Zero wall velocity (vn=vs=0) along BOUNDARY4 at the outer wall
common to SUBDOMAIN3 and SUBDOMAIN4 (BOUNDARY4).
i. Select Zero wall velocity (vn=vs=0) along BOUNDARY5 and click Modify.
f. Click Upper level menu to return to the Flow boundary conditions menu.
Global remeshing
In this case, the inlet of spines is the intersection of SUBDOMAIN3 with SUBDOMAIN4, and the
outlet of spines is the intersection of SUBDOMAIN4 with the flow exit (BOUNDARY5).
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
14 of ANSYS, Inc. and its subsidiaries and affiliates.
Step 3: Save the Data and Exit Polydata
Method of Spines
i. Specify the inlet for the system of spines by selecting Intersection with SUBDOMAIN3 and
click Confirm.
ii. Specify the outlet for the system of spines by selecting Intersection with BOUNDARY5 and
click Confirm.
Polydata asks you to confirm the current system units and fields that are to be saved to the results file for
postprocessing.
2. Click Accept.
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 15
Flow of Two Immiscible Fluids
3. Click Continue.
This accepts the default names for graphical output files (cfx.res) that are to be saved for postpro-
cessing, and for the Polyflow format results file (res).
1. Run Polyflow by right-clicking the Solution cell of the simulation and selecting Update.
This executes Polyflow using the data file as standard input, and writes information about the problem
description, calculations, and convergence to a listing file (polyflow.lst).
Workbench opens the View listing file panel, which displays the listing file.
b. It is a common practice to confirm that the solution proceeded as expected by looking for the
following printed at the bottom of the listing file:
The computation succeeded.
1. Double-click the Results tab in the Workbench analysis and read the results files saved by Polyflow.
CFD-Post reads the solution fields that were saved to the results file.
a. In the graphical window, right-click, and select the option Predefined Camera.
The central-mouse button allows you to zoom in and zoom out. The left-mouse button allows ro-
tating the image. The right-mouse button allows you to translate the image.
a. Click the Insert menu and select Contour or click the button.
b. Click OK to accept the default name (Contour 1) and display the details view below the Outline
tab.
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
16 of ANSYS, Inc. and its subsidiaries and affiliates.
Step 5: Postprocessing
ii. In the Location Selector dialog box that opens, select SUBDOMAIN1_surf, SUBDOMAIN2_surf,
SUBDOMAIN3_surf, and SUBDOMAIN4_surf (use Ctrl for multiple selection) and then click
OK.
iii. Select VELOCITIES from the Variable drop-down list (or by clicking ).
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 17
Flow of Two Immiscible Fluids
The velocity is much larger at the inlet of fluid 1 than at the inlet of fluid 2. There are two reasons for
this:
The flow rate is three times larger for fluid 1 than for fluid 2.
You are modeling an annular die. Hence the flow section is smaller for the interior channel than for the
exterior channel.
When the two fluids come into contact with each other, the interface between the two fluids is pushed
towards the exterior of the annular die.
The die is annular, so even identical flow rates cause the interface to move in order to equilibrate the flow
sections.
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
18 of ANSYS, Inc. and its subsidiaries and affiliates.
Step 5: Postprocessing
The viscosity of fluid 1 is higher than the viscosity of fluid 2. In the process of giving more room to the
most viscous fluid, its shearing decreases. This leads to a smaller global dissipation.
In the Outline tree tab, under User Locations and Plots deselect Contour 1.
b. Click the Insert menu and select Contour or click the button.
c. Click OK to accept the default name (Vector 1) and display the details view below the Outline
tab.
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 19
Flow of Two Immiscible Fluids
ii. In the Location Selector dialog box that opens, select SUBDOMAIN1_surf, SUBDOMAIN2_surf,
SUBDOMAIN3_surf, and SUBDOMAIN4_surf (use Ctrl for multiple selection) and click OK.
iv. In the Symbol tab, set Symbol to Arrow3D and increase the Symbol Size to 3.
v. Click Apply.
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
20 of ANSYS, Inc. and its subsidiaries and affiliates.
Step 5: Postprocessing
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 21
Flow of Two Immiscible Fluids
You can see that the velocity is continuous across the interface. As both the fluids are Newtonian, the
velocity profile is a parabola on both sides of the interface. Since the force must be continuous across
the interface, the shear stress generated within fluid 1 is equal to the shear stress generated within fluid
2 along the interface.
7.12. Summary
This tutorial introduced the concept of fluid layers owing in the same duct. In Polydata, you learned
how to set up a multiple-domain calculation, including the definition of a moving interface and associated
remeshing methods.
The location of the interface depends largely on the physical properties of the fluids involved, the
geometry of the channels, and the operating conditions (for example: flow rates of the fluids). A CFD
simulation with Polyflow allows you to test different setups (for example: in order to optimize the
feeding of a co-extrusion die).
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
22 of ANSYS, Inc. and its subsidiaries and affiliates.