Solve the generalized Stokes problem in spectral space.
Solves with the divergence-free constraint enforced in Fourier space. This solver is for 2D and 3D only.
This solver uses a MAC staggered grid. U and rhsx must be at x-face centers, V and rhsy at y-face centers, W and rhsz at z-face centers, and p cell-centered.
Parameters
U
x-component of velocity (output, at x-face centers).
V
y-component of velocity (output, at y-face centers).
W
z-component of velocity (output, at z-face centers, 3D only).
p
Pressure (output, cell-centered).
rhsx
x-component of the right-hand side (at x-face centers).
rhsy
y-component of the right-hand side (at y-face centers).
rhsz
z-component of the right-hand side (at z-face centers, 3D only).
alpha
Coefficient multiplying the velocity.
eta
Coefficient multiplying the velocity Laplacian.
The documentation for this class was generated from the following file: