Stokes and continuity equations in 2D¶
Stokes¶
The equation for the conservation of mass, for an incompressible fluid with negligible inertial forces (in comparison to gravitational acceleration), i.e. the Stokes equation, is
In 2D, this gives us two equations,
In the case of incompressible fluid a rheological law relates the deviatoric stress to strain rate:
This is called the Newtonian viscous rheology, where the deviatoric stress is linearly dependent on the strain rate. Non-Newtonian rheologies, on the other hand, relate these with an exponent \((\sigma'_{ij})^n = 2\eta\dot\epsilon_{ij}\).
The strain rate is defined as
which can be plugged in the Stokes equations (1) to get
If viscosity is constant in respect to \(x\) and \(z\), this simplifies to
As can be seen here, the Stokes equation relates fluid velocity to pressure gradients and body forces (gravitational forces); the flow is driven by either one or both.
Exercise
In what geological process would the fluid (rock) flow be driven by
- gravitational forces
- pressure gradients?
Exercise
Discretize equation (5).
- What are the unknowns in the equation?
- Can you rearrange the equations to solve for those unknowns explicitly?
Continuity¶
The continuity equation states that for an infinitesimally small volume of material, the incoming flux of new material is balanced by same amount of material going out. This applies for incompressible fluids.
Exercise
Discretize equation (6).
- What are the unknowns in the equation?
- Can you rearrange the equation to solve for those unknowns explicitly?
Stokes and continuity¶
In two-dimensional problems we have two Stokes equations (so called x-Stokes and z-Stokes here), and one continuity equation. So for each grid point we can formulate three equations. With these three equations we can solve for the three unknowns using an implicit formulation.
Note that the Stokes/continuity equations do not include time: they are used to find out the velocity field caused by density differences and external forcing (pressure gradients). If one knows the velocity and has chosen a \(\Delta t\), one can calculate where the material would advect during the next time step.
Boundary conditions¶
Similarly to a constant temperature boundary condition for the heat equation, one can define constant velocity boundary conditions for the Stokes equation
This is so called “no-slip” boundary condition. Another often used boundary condition is so called free-slip. E.g. at boundary \(x=x_0\) this would be stated as
If the velocity perpendicular to the boundary does not change across the boundary, the boundary condition is so called “stress free” boundary condition:
This would permit the outflow and inflow of material across the boundary.