Difference between revisions of "Transition to Turbulence"

From UMaine SECS Numerical Modeling Laboratory
Jump to: navigation, search
Line 9: Line 9:
 
= Basics =
 
= Basics =
  
When we talk about flow, we need to first describe the fluid. Some of the fundamental characteristics of fluid are density, viscosity, compressibility, heat capacity, and thermal conductivity. In this exercise we will ignore the thermal properties entirely, define constant density and compressibility, but focus most of our attention on how viscosity affects the kinematics of a fluid system.
+
When we talk about flow, we need to first describe the fluid. Some of the fundamental characteristics of fluid are density, viscosity, compressibility, heat capacity, and thermal conductivity. In this exercise we will ignore the thermal properties entirely, define constant compressibility, and use the density of a few well-known fluids at room temperature, but focus most of our attention on how viscosity affects the kinematics of a fluid system.
  
Compressibility and density are fairly easy to define. Compressibility is the tendency of a fluid to change its volume due to pressure. Water's compressibility is 45 * 10<sup>-11</sup> Pascal seconds (Pa s). For the purposes of this exercise, since we are not dealing with immense pressure, we assume that compressibility is zero.
+
Compressibility and density are fairly easy to define. [https://en.wikipedia.org/wiki/Compressibility Compressibility] is the tendency of a fluid to change its volume due to pressure. For the purposes of this exercise, since we are not dealing with immense pressure, we assume that compressibility is zero across all models. [https://en.wikipedia.org/wiki/Density Density] is the quantity of mass per unit volume.
 
 
Density is the quantity of mass per unit volume. Water's density is 1000 kilograms per cubic meter. Both compressibility and density will be constant throughout our model runs.
 
  
 
These parameters will be fed into the Navier-Stokes fluid momentum equation (below) for each location in the model at each time step.  
 
These parameters will be fed into the Navier-Stokes fluid momentum equation (below) for each location in the model at each time step.  
Line 45: Line 43:
 
|}
 
|}
  
Since we are looking at viscosity's effect on flow, let's look at the viscosities of fluids we'll be working with.
+
Since we are changing density and viscosity and looking at viscosity's effect on flow, let's look at the densities and viscosities of fluids we'll be working with.
  
 
{| class="wikitable" style=""
 
{| class="wikitable" style=""
 
!Fluid
 
!Fluid
 
!µ (viscosity)
 
!µ (viscosity)
 +
!ρ (density)
 
|-
 
|-
 
|'''Honey'''
 
|'''Honey'''
 
|1 * 10<sup>1.5</sup> Pa s
 
|1 * 10<sup>1.5</sup> Pa s
 +
|1.45 * 10<sup>3</sup> kg/m<sup>3</sup>
 
|-
 
|-
 
|'''Water'''
 
|'''Water'''
 
|1 * 10<sup>-3</sup> Pa s
 
|1 * 10<sup>-3</sup> Pa s
 +
|0.997 * 10<sup>3</sup> kg/m<sup>3</sup>
 
|-
 
|-
 
|'''Air'''
 
|'''Air'''
 
|1 * 10<sup>-5</sup> Pa s
 
|1 * 10<sup>-5</sup> Pa s
 +
|1.225 * 10<sup>0</sup> kg/m<sup>3</sup>
 
|}
 
|}
  
Line 70: Line 72:
 
This is a two-dimensional COMSOL model, which assumes that the channel is of infinite depth and thus does not produce drag from the bottom of the flow in any way. Both the horizontal (long) walls and the walls of the cylinder have a "no slip" condition. This means that as the flow gets closer to the wall, velocity goes to zero. This condition sets up a velocity gradient between the walls at zero and the center of the flow. The wall on the far left side has an inflow condition of 1 meter per second, and the wall on the right side has a zero-pressure outlet condition, which lets flow pass out of the model unhindered.
 
This is a two-dimensional COMSOL model, which assumes that the channel is of infinite depth and thus does not produce drag from the bottom of the flow in any way. Both the horizontal (long) walls and the walls of the cylinder have a "no slip" condition. This means that as the flow gets closer to the wall, velocity goes to zero. This condition sets up a velocity gradient between the walls at zero and the center of the flow. The wall on the far left side has an inflow condition of 1 meter per second, and the wall on the right side has a zero-pressure outlet condition, which lets flow pass out of the model unhindered.
  
When we run the model, we are executing a variation of the Navier-Stokes momentum equation for each mesh element of the model at each time step. This equation, shown below, is fundamental to describing the behavior of fluids in continuum mechanics.
+
When we run the model, we are executing a variation of the Navier-Stokes momentum equation for each mesh element of the model at each time step. This equation, shown above, is fundamental to describing the behavior of fluids in continuum mechanics.
 +
 
  
 
== Honey (μ = 10<sup>1.5</sup> Pa s) ==
 
== Honey (μ = 10<sup>1.5</sup> Pa s) ==
Line 79: Line 82:
 
[[File:Mu101.5_ux1_velocity.gif]]
 
[[File:Mu101.5_ux1_velocity.gif]]
  
So, things are pretty orderly and logical here. Not a whole lot changes over time. You might describe this flow system as "'''laminar'''," since you can describe what will happen at any given point in the model space at any given time fairly easily. Note that velocity is highest near the cylinder where the honey must "squeeze by" the cylinder in order to keep up with the 1 m s<sup>-1</sup> inflow rate. This sets up a steep velocity gradient near the no-slip boundary of the cylinder, which we can see in the shear rate:
+
So, things are pretty orderly and logical here. Not a whole lot changes over time. You might describe this flow system as "'''[https://en.wikipedia.org/wiki/Laminar_flow laminar]'''," since you can describe what will happen at any given point in the model space at any given time fairly easily. Note that velocity is highest near the cylinder where the honey must "squeeze by" the cylinder in order to keep up with the 1 m s<sup>-1</sup> inflow rate. This sets up a steep velocity gradient near the no-slip boundary of the cylinder, which we can see in the shear rate:
  
 
=== Shear rate ===
 
=== Shear rate ===
 
[[File:Mu101.5 ux1 shear.gif]]
 
[[File:Mu101.5 ux1 shear.gif]]
  
Shear rate is by definition the derivative of the velocity field, so it is no surprise that the highest shear values are in the areas next to the cylinder where the steep velocity gradient exists. If we break shear down into its component parts, we get vorticity, or the curl of the velocity field:
+
[https://en.wikipedia.org/wiki/Shear_stress Shear rate] is by definition the derivative of the velocity field, so it is no surprise that the highest shear values are in the areas next to the cylinder where the steep velocity gradient exists. If we break shear down into its component parts, we get [https://en.wikipedia.org/wiki/Vorticity vorticity], or the curl of the velocity field:
  
 
=== Vorticity magnitude ===
 
=== Vorticity magnitude ===
Line 93: Line 96:
 
=== Pressure ===
 
=== Pressure ===
 
[[File:Mu101.5 ux1 pressure.gif]]
 
[[File:Mu101.5 ux1 pressure.gif]]
 +
 +
The pressure field should also make sense, because our one obstacle in this model sets up the overall gradient from inflow to outflow pretty nicely. Notice that the pressure values are very slightly higher on the [https://en.wiktionary.org/wiki/stoss stoss side] and slightly lower on the [https://en.wiktionary.org/wiki/lee lee side] of the cylinder. Note also that pressure gradients define the shortening and stretching of a system. Flow is shortened as it is forced towards the front of the cylinder and stretched as it goes past the cylinder.
  
 
=== Reynolds number ===
 
=== Reynolds number ===
 
[[File:Mu101.5 ux1 reynolds.gif]]
 
[[File:Mu101.5 ux1 reynolds.gif]]
  
Reynolds number
+
[https://en.wikipedia.org/wiki/Reynolds_number Reynolds number] describes how chaotic a system is. Since our system has almost no chaos, this plot is pretty boring at this viscosity.
  
  
Line 123: Line 128:
 
[[File:Mu10-3 ux1 reynolds.gif]]
 
[[File:Mu10-3 ux1 reynolds.gif]]
  
 +
The stippling is an artifact of the meshing process in COMSOL.
  
  
 
== Air (μ = 10<sup>-5</sup> Pa s) ==
 
== Air (μ = 10<sup>-5</sup> Pa s) ==

Revision as of 21:57, 21 February 2019

Created by Ian Nesbitt and Jukes Liu on 2019-02-19

In this module, you will learn how viscosity affects the dynamics of a simple fluid system with a single cylindrical impediment placed in the flow path. Our tools in this endeavor are COMSOL Multiphysics and ParaView. At the end of the module, you should be able to describe the initial conditions of a system, the transition from laminar to turbulent flow, and the effect viscosity has on the inertia, complexity, and predictability of a system.

We will move from looking at models with higher viscosity regimes and move to lower viscosity.

First, let's start by learning how to talk about the various components of flow.

Basics

When we talk about flow, we need to first describe the fluid. Some of the fundamental characteristics of fluid are density, viscosity, compressibility, heat capacity, and thermal conductivity. In this exercise we will ignore the thermal properties entirely, define constant compressibility, and use the density of a few well-known fluids at room temperature, but focus most of our attention on how viscosity affects the kinematics of a fluid system.

Compressibility and density are fairly easy to define. Compressibility is the tendency of a fluid to change its volume due to pressure. For the purposes of this exercise, since we are not dealing with immense pressure, we assume that compressibility is zero across all models. Density is the quantity of mass per unit volume.

These parameters will be fed into the Navier-Stokes fluid momentum equation (below) for each location in the model at each time step.

Navier-Stokes momentum equation

∂v / ∂t = ρg + µ∇2U - ∇P

where
∂v = change in velocity
∂t = change in time
ρ = density
g = acceleration due to gravity
µ = viscosity
2U = divergence of velocity (gradient)
∇P = divergence of pressure (gradient)

Since we are changing density and viscosity and looking at viscosity's effect on flow, let's look at the densities and viscosities of fluids we'll be working with.

Fluid µ (viscosity) ρ (density)
Honey 1 * 101.5 Pa s 1.45 * 103 kg/m3
Water 1 * 10-3 Pa s 0.997 * 103 kg/m3
Air 1 * 10-5 Pa s 1.225 * 100 kg/m3


Model

Below is the geometry of our simple COMSOL model.

Geometry of cylinder model.png

This is a two-dimensional COMSOL model, which assumes that the channel is of infinite depth and thus does not produce drag from the bottom of the flow in any way. Both the horizontal (long) walls and the walls of the cylinder have a "no slip" condition. This means that as the flow gets closer to the wall, velocity goes to zero. This condition sets up a velocity gradient between the walls at zero and the center of the flow. The wall on the far left side has an inflow condition of 1 meter per second, and the wall on the right side has a zero-pressure outlet condition, which lets flow pass out of the model unhindered.

When we run the model, we are executing a variation of the Navier-Stokes momentum equation for each mesh element of the model at each time step. This equation, shown above, is fundamental to describing the behavior of fluids in continuum mechanics.


Honey (μ = 101.5 Pa s)

In the first example, we have a fluid with the viscosity of about that of honey, 101.5 Pascal seconds (Pa s). You might imagine honey to be pretty "sticky," which has something to do with its viscosity. What do you think will happen? Let's look at a few parameters of flow in the honey model.

Velocity field

Mu101.5 ux1 velocity.gif

So, things are pretty orderly and logical here. Not a whole lot changes over time. You might describe this flow system as "laminar," since you can describe what will happen at any given point in the model space at any given time fairly easily. Note that velocity is highest near the cylinder where the honey must "squeeze by" the cylinder in order to keep up with the 1 m s-1 inflow rate. This sets up a steep velocity gradient near the no-slip boundary of the cylinder, which we can see in the shear rate:

Shear rate

Mu101.5 ux1 shear.gif

Shear rate is by definition the derivative of the velocity field, so it is no surprise that the highest shear values are in the areas next to the cylinder where the steep velocity gradient exists. If we break shear down into its component parts, we get vorticity, or the curl of the velocity field:

Vorticity magnitude

Mu101.5 ux1 vorticity.gif

Again, unsurprisingly, the curl is highest where the gradient of velocity is high. This makes sense because as two particles slip past each other at different velocities, their orientation changes (rotates) with regards to one another. Vorticity will be highest near the no-slip boundaries in a simple laminar system like this.

Pressure

Mu101.5 ux1 pressure.gif

The pressure field should also make sense, because our one obstacle in this model sets up the overall gradient from inflow to outflow pretty nicely. Notice that the pressure values are very slightly higher on the stoss side and slightly lower on the lee side of the cylinder. Note also that pressure gradients define the shortening and stretching of a system. Flow is shortened as it is forced towards the front of the cylinder and stretched as it goes past the cylinder.

Reynolds number

Mu101.5 ux1 reynolds.gif

Reynolds number describes how chaotic a system is. Since our system has almost no chaos, this plot is pretty boring at this viscosity.


Discussion

Okay, so what's happening here? Things look pretty "boring" so far. With the exception of the very first frame in which the fluid has not begun to move yet, all of the frames are visually nearly the same. As you can tell by the color scale on the velocity plot, the fluid is moving as fast as 1.8 m s-1 past the cylinder, but apart from that, there seems to be no instability here. This system is the result of kinematic forces at work, but the system seems to be stable, i.e. there is very little dynamic element to this system. Another way to say this is that there is not much variance in any given cell through time.


Water (μ = 10-3 Pa s)

Velocity field

Mu10-3 ux1 velocity.gif

Shear rate

Mu10-3 ux1 shear.gif

Vorticity magnitude

Mu10-3 ux1 vorticity.gif

Pressure

Mu10-3 ux1 pressure.gif

Reynolds number

Mu10-3 ux1 reynolds.gif

The stippling is an artifact of the meshing process in COMSOL.


Air (μ = 10-5 Pa s)