Hi Upasana,
It’s actually a little complicated here. In some simulations,
you’ll see this BC applied to the horizontal-mean Fourier mode
(kx=0). In that case, it’s setting the pressure gauge — the
overall constant pressure, which is dynamically insignificant in
incompressible simulations.
This case is different — for the eigenvalue problem, each variable
takes the form f(x)e^{ikx}, where the x-dependence is implied by
the substitution defining the x-derivative. So this condition
isn’t setting the pressure gauge, it’s actually a boundary
condition that you can show is equivalent to setting w=0 on the
other wall for the linear problem.
I think this is an outdated version of the example script though — the current version should include Dirichlet preconditioning and utilize the sparse eigenvalue solver, which is much faster when you’re only interested in finding a subset of the eigenmodes.
Best,
-Keaton