Skip to content

Commit 455a12a

Browse files
fix the edson stability function
1 parent 2a9922b commit 455a12a

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/OceanSeaIceModels/InterfaceComputations/similarity_theory_turbulent_fluxes.jl

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ Keyword Arguments
9090
function SimilarityTheoryFluxes(FT::DataType = Oceananigans.defaults.FloatType;
9191
von_karman_constant = 0.4,
9292
turbulent_prandtl_number = 1,
93-
gustiness_parameter = 1,
93+
gustiness_parameter = 6.5,
9494
stability_functions = edson_stability_functions(FT),
9595
roughness_lengths = default_roughness_lengths(FT),
9696
similarity_form = LogarithmicSimilarityProfile(),
@@ -302,7 +302,7 @@ stability function for _stable_ or _unstable_ atmospheric conditions, respective
302302
:: FT = 0.35
303303
:: FT = 0.7
304304
:: FT = 0.75
305-
:: FT = 5/0.35
305+
:: FT = 5 / 0.35
306306
Aᵘ :: FT = 15.0
307307
Bᵘ :: FT = 2.0
308308
Cᵘ :: FT = π/2
@@ -326,10 +326,10 @@ end
326326

327327
ζ⁻ = min(zero(ζ), ζ)
328328
ζ⁺ = max(zero(ζ), ζ)
329-
= min(ζmax, Aˢ * ζ⁺)
329+
= min(ζmax, Aˢ * ζ⁺) # ok
330330

331331
# Stability parameter for _stable_ atmospheric conditions
332-
ψₛ = - (* ζ⁺ +* (ζ⁺ -)) * exp(- dζ) -*
332+
ψₛ = -* ζ⁺ -* (ζ⁺ - Dˢ) * exp(- dζ) -*
333333

334334
# Stability parameter for _unstable_ atmospheric conditions
335335
fᵤ₁ = sqrt(sqrt(1 - Aᵘ * ζ⁻))

0 commit comments

Comments
 (0)