Some Fluid Mechanics Basics

January 23, 2015   |   Reading time: ~11 mins

At the moment I’m intently studying fluid mechanics for an exam on planetary science. As you may have guessed, the fluid mechanics in question is for modelling planetary atmospheres, but the mathematics is universally applicable. I’ve wanted to learn fluid mechanics for many years so I thought I’d just go through some of the basics and a few examples of  fluid mechanics in action. Before we get started, I just want to say that it’s probably not as hard as you think it is. When you’ve got some of the fundamentals out of the way, there’s just a little mathematics and heaped helping of thermodynamics that should get us all the results we need. Without further ado, off we go on a breakneck tour of fluid mechanics.

The Momentum Equation

In classical mechanics, there’s a very famous equation that more or less everybody knows which describes how an object with mass m moves when a force is applied to it. This is so famous that it is given the name of Newton’s 2nd Law of Motion and is expressed as:

    \[\vec{F} = m \vec{a}\]

All this equation states is that the force \vec{f} you apply to an object makes the object you apply it to accelerate in the same direction as the force with an acceleration \vec{a} of the force divided by it’s mass. This applies excellently for a non-relativistic object, however it somewhat fails to describe a continuum of objects, like a liquid that has a force applied to it. This is where fluid mechanics comes in. In this case, the equation we use to describe the dynamics of a liquid is called the Navier-Stokes equation and we’re going to use it a lot. For an incompressible fluid, this can be expressed as:

    \[\rho \left( \frac{\partial \vec{v}}{\partial t} + \vec{u} \cdot \nabla \vec{u} \right) = \ - \nabla P + \rho \vec{g} + \mu \nabla^2 \vec{v}\]

Initially, this equation may seem long and terrifying, but let’s take it apart and see how it works. Let’s say that we’re using the Lagrangian description of fluid mechanics, where we consider a parcel of material moving through the system and follow it. In this description we need to consider how the properties of the parcel change locally and in relation to the flow through the bulk fluid. Considering this mathematical details, the equation that describes a this system is:

    \[\rho \left( \underbrace{\frac{\partial \vec{v}}{\partial t}}_a + \underbrace{\vec{u} \cdot \nabla \vec{u}}_b \right)  = \underbrace{\ - \nabla P}_c + \underbrace{\rho \vec{g}}_d + \underbrace{\mu \nabla^2 \vec{v}}_e\]

The terms in this equation each correspond to an important bit of physics:

  1. Local acceleration term: Describes how the flow accelerates locally in the packet of material.
  2. Inertial / non-linear term: Describes how the flow of a packet of material affects a property; in this case the flow itself.
  3. Pressure gradient term: This tells us the direction in which direction the pressure change is in.
  4. Gravity term: This introduces the effect of gravity into the system. For some systems, this isn’t important so we can just lose it.
  5. Viscosity term: This term describes how viscosity affects the system.

In the context of a rotating fluid, we can also add in another term to describe the affect of rotation on a fluid; which is particularly important in planetary and climate science. This is called the Coriolis term, and it’s given by:

    \[- 2 \vec{\Omega} \times \vec{u}\]

where \vec{\Omega} is the rotation of the planet.

The Advective Derivative

Because it’s so useful, the terms on the left hand side of the Navier-Stokes equation can be merged into a single term. This is known as the advective derivative, or the material derivative. We adopt this notation because our coordinates are following a parcel of fluid. Because of this, we need to add the advective derivative to compensate. It’s expressed like so:

    \[\frac{D \vec{v}}{D t} = \underbrace{\frac{\partial \vec{v}}{\partial t}}_\text{Local Acceleration Term} + \underbrace{\vec{v} \cdot \nabla \vec{v}}_\text{Non-Linear / Inertial Term}\]

Some Super Simple Fluid Mechanics Problems

Now we have the equation that governs motion down, let’s try it out with some really simple problems, take a look at some of the results we can get and see if they make sense.

The Case of No Flow

The first case we want to consider is the case of no flow in a miscellaneous material. This essentially means that we set \vec{u} = u_x = u_y = u_z = 0. This makes our fairly complex equation of motion above actually pretty simple, like so:

    \[\require{cancel} \cancelto{0}{\frac{\partial \vec{u}}{\partial t}} + \cancelto{0}{\vec{u} \cdot \nabla \vec{u}} = - \nabla P + \rho \vec{g} + \cancelto{0}{\mu \nabla^2 \vec{u}}\]

This gives us:

    \[\rho \vec{g} = - \nabla P\]

which gives us an equation balancing gravitational force and pressure. We should consider that if we sensibly define our coordinates system, such that the \hat{z} direction is vertically downward, we can see that the gravitational term is only going to act in one direction; because \vec{g} = g \hat{z}. This further simplifies our equation down to:

    \[\rho g = - \frac{d P}{d z}\]

For anyone familiar this astrophysics, this will be immediately recognisable as the equation of hydrostatic equilibrium. This equation applies when the downward force due to gravity is being balanced by the upward force due to the pressure of the fluid. This not only useful in planetary science but also in the study of stars; which are generally in hydrostatic equilibrium during stable stages of their evolution.

The Case of Steady Flow Around an Object

Another common application of fluid mechanics is for a steady flow around an object. For this situation, all time derivatives are neglected as is gravity, so  our equation of motion for steady flow becomes:

    \[\rho \vec{u} \cdot \nabla \vec{u} = - \nabla P + \mu \nabla^2 \vec{u}\]

It should be noted that all terms of the equation come out to dimensions of energy, therefore we can define non-dimensional numbers by taking the ratios of terms within this equation. For this situation we can define the Reynolds number Re:

    \[Re = \frac{\text{Inertial term}}{\text{Viscous term}}\]

High Reynolds Number Flow

If this number is adequately high, it means that the viscosity is small on comparison to the fast flow. Because of this we can simplify our equation by neglecting the viscosity term.

    \[\rho \vec{u} \cdot \nabla \vec{u} \sim \nabla P\]

This gives us a balance between pressure and inertia. If we now adopt scale analysis and we take g \sim v and \nabla \sim 1 / L, we get:

    \[P \sim \rho v^2\]

This introduces the idea of ram pressure. This describes a body that is moving through a fluid medium; either with the fluid stationary and the body moving, or the body stationary and the body moving. There are many applications in astrophysics for this situation, some of these include a meteorite falling through an atmosphere and generating shock waves and the solar wind hitting planetary bodies.

Low Reynolds Number Flow

What if instead of having a large Reynolds number, we have a small Reynolds number. This suggests a slow flow, where the inertial term is small in comparison to the viscous term. This makes the inertial term negligible, thus we neglect it giving us:

    \[\nabla P \sim \mu \nabla^2 \vec{u}\]

If we once again adopt the scale analysis  as we did previously, taking \vec{u} \sim v and \nabla \sim 1 / L, we finally get:

    \[P \sim \mu \frac{v}{L}\]

This equation is known as Stokes’ Law of Resistance. It essentially gives you the force of viscosity on an object moving through the fluid. Another term for this is the drag force.

We can see that, even though we are considering very simplified situations, we can get some important results from considering these situations. Now we’ll get a tad more complex.

Poiseuille Flow

Let us consider the situation of steady flow through a circular tube. For this situation we’ll use a cylindrical coordinates system with r being the radial coordinate, \theta being the angular coordinate and x being the coordinate directed up along the symmetry axis of the tube.

poiseuille-tube

For this situation we once again consider a steady flow, which means:

    \[\frac{\partial}{\partial t} = 0\]

We also assume that the problem is axially symmetric, which means that there’s no angular dependence in the problem:

    \[\frac{\partial}{\partial \theta} = 0\]

Another simplification that we can make is that the pipe is semi-infinite, which means that the flow will remain constant along the pipe and won’t vary with x:

    \[\frac{\partial \vec{u}}{\partial x} = 0\]

One of the important equations in fluid dynamics is the continuity equation, which enforces mass conservation on the mathematics. Put simply, as material flows in and out of our parcel of data, none of it is allowed to go missing. The continuity equation for a Newtonian fluid is (\nabla \cdot \vec{u} = 0), but under all of these simplifications we’ve made it becomes:

    \[\frac{1}{r} \frac{\partial (r U_r)}{ \partial r} + \cancelto{0}{\frac{1}{r} \frac{\partial U_\theta}{\partial \theta}} + \cancelto{0}{\frac{1}{r} \frac{\partial U_x}{\partial x}} = 0\]

    \[\implies \frac{1}{r} \frac{\partial (r U_r)}{ \partial r} = 0\]

Therefore, we can reduce the x-component of the Navier-Stokes equation to:

    \[0 = \underbrace{- \frac{d P}{d x}}_\text{A} + \underbrace{\frac{\mu}{r} \frac{\partial}{\partial r} \left(  r \frac{\partial U_x}{\partial r} \right)}_\text{B}\]

This allows the problem to be solved analytically; as the non-linear inertial term vanishes. Much of the complexity in solving these equations comes from the inertial term. We now take a look at the r component:

    \[0 =\ - \frac{\partial p}{\partial r} + \cancelto{0}{\frac{\mu}{\rho} \nabla^2 U_r}\]

We can now see that \frac{\partial p}{\partial r} = 0, which means that p is not a function of r. If we now consider parts A and B of the x component, we can also see that both terms in that equation must be constant along the pipe; because A should only be a function of x and B should only be a function of r. Given this fact, \frac{d p}{d x} must be constant. This means that pressure p must vary linearly along the pipe. We can now integrate the momentum equation along the tube to get:

    \[U = \frac{r^2 - a^2}{4 \mu} \left( \frac{d p}{d x} \right)\]

This gives you the flow through the tube. Using this equation it’s possible to also figure out the volume flow rate and other properties. This particular problem may seem a little contrived, however it’s actually very useful. This result is valid for any fluid flowing through a pipe; given the correct conditions. This has applications for modeling prototypes in engineering. Other situations where you could apply this is modeling the ascent of magma through the lithosphere and flow of blood through vessels.

In the Context of Planets

My interest in all of this mathematics is in the context of planetary atmospheres. I’ve always been intrigued by the work of the Met Office in Exeter and their modelling of our atmosphere. It’s impressive how they can manage to model such a chaotic system and be as accurate as they are with weather forecasting. The cool thing about their work is that it doesn’t just apply to this planet. If you strip out all of the things that apply specifically to the Earth it’s an exceedingly powerful tool for modelling the atmospheres of other planets. This is just what the astrophysics group at the University of Exeter is doing. One of the papers from this research is down in the references. There’s a lot more that we can go into, so in my next post I’ll describe some of the hydrodynamics which is especially useful for dealing with planetary atmospheres. Until then thanks very much for reading.

References

Leave a Reply

Your email address will not be published. Required fields are marked *

Comments

Sorry, there are currently no comments for this artcle. Why not start a conversation?