Skip to content

Commit

Permalink
corrected flume walls
Browse files Browse the repository at this point in the history
  • Loading branch information
markwoodhouse committed Jan 29, 2024
1 parent 80fa6f8 commit 46dfda1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/TopogFuncs.f90
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,7 @@ pure subroutine flume(RunParams, x, y, b0)
! Build topography along x
do ii=1,size(x)
if (x(ii)<0.0_wp) then
b0(ii,:) = -tan(31.0_wp*pi/180.0_wp)*x(ii)
b0(ii,:) = -tan(theta0*pi/180.0_wp)*x(ii)
elseif (x(ii)>x1) then
b0(ii,:) = zc0 + alpha*cosh((x1-xc0)/alpha) - tan(theta1*pi/180.0_wp)*(x(ii)-x1)
else
Expand All @@ -228,7 +228,7 @@ pure subroutine flume(RunParams, x, y, b0)
if (x(ii)<xwall) then
do jj=1,size(y)
b0(ii,jj) = b0(ii,jj) + 0.5_wp*wallH*(tanh(sigma*(y(jj)-0.5_wp*wallW)) &
- tanh(sigma*(y(jj)-0.5_wp*wallW)) + tanh(sigma*(y(jj)+0.5_wp*wallW)) - tanh(sigma*(y(jj)+0.5_wp*wallW)))
- tanh(sigma*(y(jj)-1.5_wp*wallW)) + tanh(sigma*(y(jj)+1.5_wp*wallW)) - tanh(sigma*(y(jj)+0.5_wp*wallW)))
end do
end if
end do
Expand Down

0 comments on commit 46dfda1

Please sign in to comment.