Skip to content

Commit

Permalink
fix velocity in Y direction
Browse files Browse the repository at this point in the history
  • Loading branch information
aelligp committed Apr 5, 2024
1 parent 94dbc42 commit aedfc17
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions src/stokes/VelocityKernels.jl
Original file line number Diff line number Diff line change
Expand Up @@ -206,11 +206,12 @@ end
Vx[i + 1, j + 1, k + 1] += Rx_ijk * ηdτ / av_x(ητ)
end
if all((i, j, k) .< size(Vy) .- 1)
Ry_ijk = Ry[i, j, k]
_dx * (τxy[i + 1, j + 1, k] - τxy[i, j + 1, k]) +
_dy * (τyy[i, j + 1, k] - τyy[i, j, k]) +
_dz * (τyz[i, j + 1, k + 1] - τyz[i, j + 1, k]) - d_ya(P) - av_y(fy)
Vy[i + 1, j + 1, k + 1] += Ry_ijk * ηdτ / av_y(ητ)
Ry_ijk =
Ry[i, j, k] =
_dx * (τxy[i + 1, j + 1, k] - τxy[i, j + 1, k]) +
_dy * (τyy[i, j + 1, k] - τyy[i, j, k]) +
_dz * (τyz[i, j + 1, k + 1] - τyz[i, j + 1, k]) - d_ya(P) - av_y(fy)
Vy[i + 1, j + 1, k + 1] += Ry_ijk * ηdτ / av_y(ητ)
end
if all((i, j, k) .< size(Vz) .- 1)
Rz_ijk =
Expand Down

0 comments on commit aedfc17

Please sign in to comment.