Introduction to Stokes flow
The Stokes equation describes the flow of a viscous fluid in a slow regime. It is a simplification of the Navier-Stokes equation, which describes the flow of a fluid in a fast regime. The Navier-Stokes equation is a non-linear partial differential equation and is difficult to solve. The Stokes equation is a linear partial differential equation and is easier to solve. The Stokes equation is often used in geodynamics to describe the flow of the Earth’s mantle.
It’s derivation can be done based on conservation laws for mass and momentum.
Conservation of Mass
Conservation of mass means that the amount of mass in our model space is always constant; no mass is created or destroyed. Mass \(m\) is directly related to density \(\rho\) by unit volume, and a change in mass will result in an equivalent change in density. The change in density in our model box is equal to the sum of the mass flux through all boundaries:
This describes the change of density in a fixed observation cell due to the in- and outflux of mass. Such a fixed node is called an Euler node and is formulated from the node’s point of view.
Using Leibniz’s Law (\(\frac{\partial}{\partial x} \left(u v\right) = \frac{\partial u}{\partial x} v + \frac{\partial v}{\partial x} u\)), the continuity equation can be extended:
One term (\(v \nabla \rho\)) describes the change of density in our observation volume due to mass flux through the boundaries with the same velocity but different density. This term describes Advection or Advective transport. The other term (\(\rho \nabla \cdot v\)) describes the change of density in the observational volume due to mass flux of constant density but varying velocity.
For the case of constant density, it follows that \(\frac{\partial \rho}{\partial t}=0\), \(\nabla \rho=0\) and \(\frac{D \rho}{D t}=0\). This assumption is valid for incompressible material and is often used in geodynamics. The incompressible continuity equation in 2D looks like:
and describes the conservation of mass in an incompressible material.
Conservation of Momentum
Stress
Stress \(\sigma\) is the force acting on the side of a body. In a 2D square, we can have a force acting in the x-direction on both sides perpendicular to x: \(\sigma_{xx}\). A second force \(\sigma_{yy}\) acts in the y-direction on the sides perpendicular to y. These forces can be understood as ‘pulling’ in both x- and y-directions.
In addition, forces in the x-direction can also act on the sides parallel to x: shear stress \(\sigma_{xy}\). A second shear stress acts in the y-direction on the sides parallel to y: \(\sigma_{yx}\).
To describe all these forces acting on a body with only one name, we will need a tensor. In 2D, the stress tensor has the following form:
In the absence of internal forces, the angular momentum has to be conserved. This means that shear stresses can only act on our body if they won’t create a rotational component. This can only be achieved if the following condition is fulfilled: \(\sigma_{ij}=\sigma_{ji}\).
The mean of all acting perpendicular stresses defines the pressure in our body. The minus sign appears because stresses are designed as pulling forces, while pressure is the force pushing into the body.
No shear forces are acting on a fluid at rest. The forces perpendicular to the body define the hydrostatic pressure. In addition, we can now define the deviatoric stress \(\sigma'_{ij}\), which denotes the deviation in the stress state from hydrostatic pressure.
where \(\delta_{i,j} P\) denotes the hydrostatic pressure (making use of the Kronecker delta \(\delta_{ij}\) where \(\delta_{i,j}=1\) for \(i=j\) and \(\delta_{ij}=0\) for \(i\neq j\), this selects the main diagonal of a matrix) and \(\sigma'_{ij}\) is the deviatoric stress component. This means that:
Strain and strain rate
Strain describes the actual deformation of a body due to stress acting on it. Strain is also described as a tensor with components acting perpendicular to the x- and y-directions, and shear components acting parallel to the direction of deformation.
where \(\epsilon_{ij}\) denotes the change of material displacement \(u_x, u_y\), i.e., deformation.
The deformation in each direction and all sides is denoted by the mean of the two deformations working opposite each other:
In fluids, and therefore in most convection problems in geodynamics, a constituative relationship between stress and strain rate is used and the equations are formulated as the rate of change in material displacement or the strain rate \(\dot{\epsilon}_{ij}\), which is the change of strain \(\epsilon_{ij}\) in time. For a displacement velocity \(v_i = \frac{D u_i}{D t}\), the strain rate can be expressed as:
From this formulation, we can immediately recognize that \(\dot{\epsilon}_{xy}=\dot{\epsilon}_{yx}\).
Similar to the stress tensor, one can define a deviatoric strain rate tensor \(\dot{\epsilon}'_{ij}\) which describes the deviation from strain rate \(\dot{\epsilon}_{ij}\) due to net rotational forces or rigid body rotation. No shear strain rate acts on a rigid body (\(\dot{\epsilon}'_{xy}=\dot{\epsilon}'_{yx}=0\)), and the divergence of such a body is described as \(\nabla \cdot v = \dot{\epsilon}'_{xx} + \dot{\epsilon}'_{yy} = \dot{\epsilon}'_{kk}\).
Stress balance
According to Newton’s second law of motion:
the net force acting on a body is equal to its mass times its acceleration or change of velocity. To apply this in the x-direction, we will need to gather all forces acting on the body in the x-direction.
The forces can be described in terms of stresses:
Dividing equation equation (158) by the volume of our test cube \(V= \Delta x \Delta y \Delta z\) then gives us:
Or in a more general form for all directions:
By making use of equation equation (155) for the deviatoric stress, we arrive at the Navier-Stokes equation, which describes the conservation of momentum:
This equation makes use of the Einstein notation or Einstein summation convention. If an index appears twice in one term, this term actually stands for the sum of all possible values for this index. For example, the first term in the above equation equation (159) in 2D formulated in x actually hides the following:
So the full Navier-Stokes equation in 2D actually has more terms and is a system of equations:
The term \(\rho \frac{D v_i}{D t}\) describes inertia and can be neglected in most geodynamic applications as it is much smaller than the gravitational acceleration. For a typical plate velocity of several \(\mathrm{cm/yr} \, (\sim 10^{-9} \mathrm{m/s})\) and a typical time for change in mantle flow of a few million years (\(\sim 10^{13} \mathrm{s}\)), inertia is of the magnitude of \(\sim 10^{-22} \mathrm{m/s^2}\). Compared to gravitational acceleration (\(\sim 10 \mathrm{m/s^2}\)), inertia is by a magnitude of \(\sim 10^{-23}\) smaller and can be safely neglected.
The resulting equation:
is called the Stokes equation of slow flow.
Stress-strain rate relationships
In elasticity, the stress is related to the strain by the Hooke’s Law: \(\sigma = C \epsilon\), where \(C\) is the stiffness tensor.
In viscous materials, the stress-strain rate relationship is typically written in terms of deviatoric stresses, deviatoric strain rates, and the shear vicscosity \(\eta\). The shear viscosity is a measure of the resistance of a fluid to flow. The shear viscosity is a scalar in isotropic materials and a tensor in anisotropic materials.
The relationship between deviatoric stress and strain rates can be written as:
The factor of 2 is introduced from the way the strain rate tensor is symmetrized in eqs:sym_strain_rate_tensor.
As our goal is to solve for the velocity field, we write the deviatoric strain rates as full strain rates using deviatoric_strain_rate.
By using this onstituative relation and knowing that \(\dot()\epsilon_{zz}') = 0\), we can write the equation in terms of full strain rates.
And by substituting the defintion of the strain rates tensor, we arrive at the Stokes equation for slow flow in terms of velocities:
These two equations, for the x and y directions, have three unknowns: the x and y components of the velocity field and the pressure field. The pressure field is not directly solved for in the Stokes equation, but is determined by the incompressibility condition equation (153).
where \(\kappa\) is a penalty parameter, a large number. The incompressibility condition is often solved using a penalty method, where the pressure is determined by the velocity field. The pressure is then used to calculate the viscous forces acting on the fluid.