Skip to content

Commit

Permalink
edge case again (?)
Browse files Browse the repository at this point in the history
  • Loading branch information
jagoosw committed Dec 27, 2023
1 parent 931ac4d commit 8e35c5b
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/surface_heating.jl
Original file line number Diff line number Diff line change
Expand Up @@ -216,12 +216,14 @@ end

z₀ = find_velocity_roughness_length(wind_speed, 10, params)

= κ * wind_speed / log(2 / z₀)
= κ * wind_speed / log(10 / z₀)

isfinite(ū) ||= 0

Rᵣ =* z₀ / params.ν
zₒₜ = min(1.15e-4, 5.5e-5 * Rᵣ ^ -0.6)

result = params.κ ^ 2 / (log(2/z₀) * log(2/zₒₜ))
result = params.κ ^ 2 / (log(10/z₀) * log(10/zₒₜ))

isfinite(result) || (result = 0) # this should only occur if wind speed is zero in which case stress is zero anyway

Expand Down

0 comments on commit 8e35c5b

Please sign in to comment.