Viscosity Notes 3#
These are some supporting notes for the document Effective Viscosity.
Saint-Venant Equations#
Here we consider the following 1D version of the Navier-Stokes equations called the Saint-Venant equations:
A Physical Analogy: Shallow Water
These equations follow from the flow of an incompressible fluid of mass density \(\rho\) like water flowing along a channel of width \(w\) whose bottom height \(b(x)\) varies, but not enough to excite appreciable vertical dynamics. If the fluid height is \(\eta(x)\), then the internal energy density is given by the gravitational potential energy (here \(a_g\) is the acceleration due to gravity)
This suggests identifying the following 1D number density and coupling constant to match the GPE.
To help with intuition, we will sometimes plot our flow \(n(x, t)\) and \(u(x, t)\) in terms of this channel flow:
For the purposes of plotting, we will choose the width of the channel \(w\) and fluid density \(\rho\) such that \(m/\rho w = 1\).
Comparison with Wikipedia
To compare with the conservative form of the shallow water equations, note that, in 2D, the following are equivalent, after application of the continuity equation:
Their form does not include the potential \(V(x)\) (they consider a flat bed). Explicitly
Numerical Implementation#
We start with a simple numerical implementation of these equations on a periodic lattice. This should work well when everything is smooth, but will likely fail when the density drops to zero which will produce a kink. Another potential failure mode appears if the local flow velocity exceeds the speed of sound. Finite viscosity allows for mild supersonic flow
In this example, we add a gradient to our potential, noting that only \(V'(x)\) appears in our equations of motion. Thus, although the potential is not periodic, the force is. This constant is needed to ensure that a finite flow remains.