Chapter 13: Non-Newtonian Fluid Flow in an Annulus

13.1. Tutorial Features

In this tutorial you will learn about:

  • Defining a non-Newtonian fluid.

  • Using the Moving Wall feature to apply a rotation to the fluid at a wall boundary.

Component

Feature

Details

CFX-Pre

User Mode

General mode

Analysis Type

Steady State

Fluid Type

General Fluid

Domain Type

Single Domain

Turbulence Model

Laminar

Heat Transfer

None

Boundary Conditions

Symmetry Plane

Wall: No-Slip

Wall: Moving

Timestep

Auto Time Scale

CFD-Post

Plots

Sampling Plane

Vector

13.2. Overview of the Problem to Solve

In this tutorial, a shear-thickening liquid rotates in a 2D eccentric annular pipe gap. The outer pipe remains stationary while the inner pipe rotates at a constant rate about its own axis, which is the Z axis. Both pipes have nonslip surfaces.

The fluid used in this simulation has material properties that are not a function of temperature. The ambient pressure is 1 atmosphere.

The shear-thickening liquid that is used in this tutorial obeys the Ostwald de Waele model with a viscosity consistency of 10.0 kg m-1 s-1, a Power Law index of 1.5, and a time constant of 1 s. This model is assumed to be valid for shear-strain rates ranging from 1.0E-3 s-1 to 100 s-1. The fluid has a density of 1.0E4 kg m-3. The viscosity is plotted over this range in Figure 13.2: Apparent Viscosity of a Shear-thickening Fluid.

13.3. Background Theory

A Newtonian fluid is a fluid for which shear stress is linearly proportional to shear-strain rate, with temperature held constant. For such a fluid, the dynamic viscosity is constant and equal to the shear stress divided by the shear-strain rate.

A non-Newtonian fluid is a fluid for which the shear stress in not linearly proportional to the shear-strain rate. For such fluids, the apparent viscosity is the ratio of shear stress to shear-strain rate for a given shear-strain rate.

A shear-thickening fluid is a type of non-Newtonian fluid for which the apparent viscosity increases with increasing shear-strain rate.

Figure 13.1: Shear Stress of a Shear-thickening Fluid

Shear Stress of a Shear-thickening Fluid

Figure 13.2: Apparent Viscosity of a Shear-thickening Fluid

Apparent Viscosity of a Shear-thickening Fluid

This tutorial involves a shear thickening fluid that obeys the Ostwald de Waele model between apparent viscosity and shear-strain rate:

(13–1)

where is the apparent viscosity, is the viscosity consistency, is the shear-strain rate, is a normalizing time constant, and is the Power Law index. Note that the units for are not tied to the value of because the quantity in parentheses is dimensionless.

If this is the first tutorial you are working with, it is important to review the following topics before beginning:

13.4. Preparing the Working Directory

  1. Create a working directory.

    Ansys CFX uses a working directory as the default location for loading and saving files for a particular session or project.

  2. Download the non_newton.zip file here .

  3. Unzip non_newton.zip to your working directory.

    Ensure that the following tutorial input file is in your working directory:

    • NonNewtonMesh.gtm

  4. Set the working directory and start CFX-Pre.

    For details, see Setting the Working Directory and Starting Ansys CFX in Stand-alone Mode.

13.5. Defining the Case Using CFX-Pre

  1. In CFX-Pre, select File > New Case.

  2. Select General and click OK.

  3. Select File > Save Case As.

  4. Under File name, type NonNewton.

  5. Click Save.

13.5.1. Importing the Mesh

  1. Right-click Mesh and select Import Mesh > CFX Mesh.

    The Import Mesh dialog box appears.

  2. Configure the following setting(s):

    Setting

    Value

    File name

    NonNewtonMesh.gtm

  3. Click Open.

13.5.2. Creating the Fluid

As stated in the problem description, the shear-thickening liquid that is used in this tutorial obeys the Ostwald de Waele model with a viscosity consistency () of 10.0 kg m-1 s-1, a Power Law index () of 1.5, and a time constant of 1 s. This model is assumed to be valid for shear-strain rates ranging from 1.0E-3 s-1 to 100 s-1. The fluid has a density of 1.0E4 kg m-3.

  1. Create a new material named myfluid.

  2. Configure the following setting(s):

    Tab

    Setting

    Value

    Basic Settings

    Thermodynamic State

    (Selected)

    Thermodynamic State

    > Thermodynamic State

     

    Liquid

    Material Properties

    Thermodynamic Properties

    > Equation of State

    > Molar Mass

     

     

    1.0 [kg kmol^-1] [ a ]

    Thermodynamic Properties

    > Equation of State

    > Density

     

     

    1.0E+4 [kg m^-3]

    Transport Properties

    > Dynamic Viscosity

     

    (Selected)

    Transport Properties

    > Dynamic Viscosity

    > Option

     

     

    Non Newtonian Model

    1. While this is not the correct molar mass, it is not a value used by CFX-Solver in this particular case.

  3. Configure the following setting(s) under Transport Properties > Dynamic Viscosity > Non Newtonian Viscosity Model:

    Setting

    Value

    Option

    Ostwald de Waele

    Viscosity Consistency

    10.0 [kg m^-1 s^–1]

    Min. Shear Strn. Rate

    0.001 [s^-1]

    Max. Shear Strn. Rate

    100 [s^-1]

    Time Constant

    1 [s]

    Power Law Index

    1.5

  4. Click OK.

13.5.3. Creating the Domain

The flow is expected to be laminar because the Reynolds number, based on the rotational speed, the maximum width of the pipe gap, and a representative viscosity (calculated using the shear-strain rate in the widest part of the gap, assuming a linear velocity profile), is approximately 30, which is well within the laminar-flow range.

From the problem description, the ambient pressure is 1 atmosphere.

Create a fluid domain that uses the non-Newtonian fluid you created in the previous section, and specify laminar flow with a reference pressure of 1 atmosphere:

  1. Click Domain   and set the name to NonNewton.

  2. Configure the following setting(s) of NonNewton:

    Tab

    Setting

    Value

    Basic Settings

    Location

    B8

    Fluid and Particle Definitions

    Fluid 1

    Fluid and Particle Definitions

    > Fluid 1

    > Material

     

     

    myfluid

    Fluid Models

    Heat Transfer

    > Option

     

    None

    Turbulence

    > Option

     

    None (Laminar)

  3. Click OK.

13.5.4. Creating the Boundaries

The inner and outer pipes both have nonslip surfaces. A rotating-wall boundary is required for the inner pipe. For the outer pipe, which is stationary, the default boundary is suitable. By not explicitly creating a boundary for the outer pipe, the latter receives the default wall boundary.

This tutorial models 2D flow in a pipe gap, where the latter is infinite in the Z direction. The flow domain models a thin 3D slice (in fact, just one layer of mesh elements) that has two surfaces of constant-Z coordinate that each require a boundary. Symmetry boundary conditions are suitable in this case, since there is no pressure gradient or velocity gradient in the Z direction.

13.5.4.1. Wall Boundary for the Inner Pipe

From the problem description, the inner pipe rotates at 31.33 rpm about the Z axis. Create a wall boundary for the inner pipe that indicates this rotation:

  1. Create a new boundary named rotwall.

  2. Configure the following setting(s):

    Tab

    Setting

    Value

    Basic Settings

    Boundary Type

    Wall

    Location

    rotwall

    Boundary Details

    Mass And Momentum

    > Option

     

    No Slip Wall

    Mass And Momentum

    > Wall Velocity

     

    (Selected)

    Mass And Momentum

    > Wall Velocity

    > Option

     

     

    Rotating Wall

    Mass And Momentum

    > Wall Velocity

    > Angular Velocity

     

     

    31.33 [rev min^-1]

    Mass And Momentum

    > Axis Definition

    > Option

     

     

    Coordinate Axis

    Mass And Momentum

    > Axis Definition

    > Rotation Axis

     

     

    Global Z

  3. Click OK.

13.5.4.2. Symmetry Plane Boundary

In order to simulate the presence of an infinite number of identical 2D slices while ensuring that the flow remains 2D, apply a symmetry boundary on the high-Z and low-Z sides of the domain:

  1. Create a new boundary named SymP1.

  2. Configure the following setting(s):

    Tab

    Setting

    Value

    Basic Settings

    Boundary Type

    Symmetry

    Location

    SymP1

  3. Click OK.

  4. Create a new boundary named SymP2.

  5. Configure the following setting(s):

    Tab

    Setting

    Value

    Basic Settings

    Boundary Type

    Symmetry

    Location

    SymP2

  6. Click OK.

    The outer annulus surfaces will default to the no-slip stationary wall boundary.

13.5.5. Setting Initial Values

A reasonable guess for the initial velocity field is a value of zero throughout the domain. In this case, the problem converges adequately and quickly with such an initial guess. If this were not the case, you could, in principle, create and use CEL expressions to specify a better approximation of the steady-state flow field based on the information given in the problem description.

Set a static initial velocity field:

  1. Click Global Initialization  .

  2. Configure the following setting(s):

    Tab

    Setting

    Value

    Global Settings

    Initial Conditions

    > Cartesian Velocity Components

    > Option

     

     

    Automatic with Value

    Initial Conditions

    > Cartesian Velocity Components

    > U

     

     

    0 [m s^-1]

    Initial Conditions

    > Cartesian Velocity Components

    > V

     

     

    0 [m s^-1]

    Initial Conditions

    > Cartesian Velocity Components

    > W

     

     

    0 [m s^-1]

  3. Click OK.

13.5.6. Setting Solver Control

Because this flow is low-speed, laminar, and because of the nature of the geometry, the solution converges very well. For this reason, set the solver control settings for a high degree of accuracy and a high degree of convergence.

  1. Click Solver Control  .

  2. Configure the following setting(s):

    Tab

    Setting

    Value

    Basic Settings

    Advection Scheme

    > Option

     

    Specified Blend Factor

    Advection Scheme

    > Blend Factor

     

    1.0 [ a ]

    Convergence Control

    > Max. Iterations

     

    50

    Convergence Criteria

    > Residual Type

     

    RMS

    Convergence Criteria

    > Residual Target

     

    1e-05 [ b ]

    1. This is the most accurate but least robust advection scheme.

    2. This target demands a solution with a very high degree of convergence.

  3. Click OK.

13.5.7. Writing the CFX-Solver Input (.def) File

  1. Click Define Run  .

  2. Configure the following setting(s):

    Setting

    Value

    File name

    NonNewton.def

  3. Click Save.

    CFX-Solver Manager automatically starts and, on the Define Run dialog box, Solver Input File is set.

  4. If using stand-alone mode, quit CFX-Pre, saving the simulation (.cfx) file at your discretion.

13.6. Obtaining the Solution Using CFX-Solver Manager

When CFX-Pre has shut down and CFX-Solver Manager has started, you can obtain a solution to the CFD problem by following the instructions below:

  1. Ensure that the Define Run dialog box is displayed.

  2. Click Start Run.

    CFX-Solver runs and attempts to obtain a solution. At the end of the run, a dialog box is displayed stating that the simulation has ended.

  3. Select Post-Process Results.

  4. If using stand-alone mode, select Shut down CFX-Solver Manager.

  5. Click OK.

13.7. Viewing the Results Using CFD-Post

The following steps instruct you on how to create a vector plot showing the velocity values in the domain.

  1. Right-click a blank area in the viewer and select Predefined Camera > View From -Z from the shortcut menu.

  2. Create a new plane named Plane 1.

    This plane will be used as a locator for a vector plot. To produce regularly-spaced sample points, create a circular sample plane, centered on the inner pipe, with a radius sufficient to cover the entire domain, and specify a reasonable number of sample points in the radial and theta directions. Note that the sample points are generated over the entire plane, and only those that are in the domain are usable in a vector plot.

  3. Configure the following setting(s):

    Tab

    Setting

    Value

    Geometry

    Definition

    > Method

     

    Point and Normal

    Definition

    > Point

     

    0, 0, 0.015 [ a ]

    Definition

    > Normal

     

    0, 0, 1

    Plane Bounds

    > Type

     

    Circular

    Plane Bounds

    > Radius

     

    0.3 [m]

    Plane Type

    Sample

    Plane Type

    > R Samples

     

    32

    Plane Type

    > Theta Samples

     

    24

    Render

    Show Faces

    (Cleared)

    Show Mesh Lines

    (Selected)

    Show Mesh Lines

    > Color Mode

     

    User Specified

    Line Color

    (Choose green, or some other color, to distinguish the sample plane from the Wireframe object.)

    1. This is the point on the axis of the inner pipe, in the middle of the domain in the Z direction.

  4. Click Apply.

  5. Examine the sample plane. The sample points are located at the line intersections. Note that many of the sample points are outside the domain. Only those points that are in the domain are usable for positioning vectors in a vector plot.

  6. Turn off the visibility of Plane 1.

  7. Create a new vector plot named Vector 1 on Plane 1.

  8. Configure the following setting(s):

    Tab

    Setting

    Value

    Geometry

    Definition

    > Locations

     

    Plane 1

    Definition

    > Sampling

     

    Vertex [ a ]

    Definition

    > Reduction

     

    Reduction Factor

    Definition

    > Factor

     

    1.0 [ b ]

    Definition

    > Variable

     

    Velocity

    Definition

    > Boundary Data

     

    Hybrid [ c ]

    Symbol

    Symbol Size

    3 [ d ]

    1. This causes the vectors to be located at the nodes of the sample plane you created previously. Note that the vectors can alternatively be spaced using other options that do not require a sample plane.

    2. A reduction factor of 1.0 causes no reduction in the number of vectors so that there will be one vector per sample point.

    3. The hybrid values are modified at the boundaries for postprocessing purposes.

    4. Because CFD-Post normalizes the size of the vectors based on the largest vector, and because of the large variation of velocity in this case, the smallest velocity vectors would normally be too small to see clearly.

  9. Click Apply.

In CFX-Pre, you created a shear-thickening liquid that obeys the Ostwald de Waele model for shear-strain rates ranging from 1.0E-3 s-1 to 100 s-1. The values of dynamic viscosity, which are a function of the shear-strain rate, were calculated as part of the solution. You can post-process the solution using these values, which are stored in the Dynamic Viscosity variable. For example, you can use this variable to color graphics objects.

Color Plane 1 using the Dynamic Viscosity variable:

  1. Turn on the visibility of Plane 1.

  2. Edit Plane 1.

  3. Configure the following setting(s):

    Tab

    Setting

    Value

    Color

    Mode

    Variable

    Variable

    Dynamic Viscosity

    Render

    Show Faces

    (Selected)

  4. Click Apply

Try plotting Shear Strain Rate on the same plane. Note that the distribution is somewhat different than that of Dynamic Viscosity, as a consequence of the nonlinear relationship (see Figure 13.2: Apparent Viscosity of a Shear-thickening Fluid).

When you have finished, quit CFD-Post.