Simple Flow Examples¶
simple_flows¶
- class SimpleShear(grid, dimensions, velcomp, amplitudes)[source]¶
- prescribe velocity for a simple shear flow on a general grid
roughly: product(
amplitudes [i] * x[i]for i indimensions) wherex[i]is the coordinate in the i’th direction
- Variables:
grid – grid which provices coordinates
dimensions – labels of shearing directions
velcomp – 0-indexed component of velocity vector that is sheared (all others are set to 0)
amplitudes – amplification factor of gradient along dimensions