Skip to content

Commit b4f2e56

Browse files
glwagnernavidcy
andauthored
Change default gustiness to 1 (#464)
* Update similarity_theory_turbulent_fluxes.jl * Update PrescribedAtmospheres.jl * Update PrescribedAtmospheres.jl * Update similarity_theory_turbulent_fluxes.jl * Update src/OceanSeaIceModels/InterfaceComputations/similarity_theory_turbulent_fluxes.jl * Update src/OceanSeaIceModels/PrescribedAtmospheres.jl * Update src/OceanSeaIceModels/PrescribedAtmospheres.jl * Apply suggestions from code review * Update PrescribedAtmospheres.jl --------- Co-authored-by: Navid C. Constantinou <[email protected]>
1 parent e93ad8b commit b4f2e56

File tree

2 files changed

+12
-11
lines changed

2 files changed

+12
-11
lines changed

src/OceanSeaIceModels/InterfaceComputations/similarity_theory_turbulent_fluxes.jl

+6-6
Original file line numberDiff line numberDiff line change
@@ -58,10 +58,10 @@ end
5858

5959
"""
6060
SimilarityTheoryFluxes(FT::DataType = Float64;
61-
gravitational_acceleration = convert(FT, 9.81),
62-
von_karman_constant = convert(FT, 0.4),
63-
turbulent_prandtl_number = convert(FT, 1),
64-
gustiness_parameter = convert(FT, 6.5),
61+
gravitational_acceleration = 9.81,
62+
von_karman_constant = 0.4,
63+
turbulent_prandtl_number = 1,
64+
gustiness_parameter = 1,
6565
stability_functions = default_stability_functions(FT),
6666
roughness_lengths = default_roughness_lengths(FT),
6767
similarity_form = LogarithmicSimilarityProfile(),
@@ -77,7 +77,7 @@ Keyword Arguments
7777
7878
- `von_karman_constant`: The von Karman constant. Default: 0.4.
7979
- `turbulent_prandtl_number`: The turbulent Prandtl number. Default: 1.
80-
- `gustiness_parameter`: The gustiness parameter that accounts for low wind speed areas. Default: 6.5.
80+
- `gustiness_parameter`: Increases surface fluxes in low wind conditions. Default: 1.
8181
- `stability_functions`: The stability functions. Default: `default_stability_functions(FT)` that follow the
8282
formulation of Edson et al. (2013).
8383
- `roughness_lengths`: The roughness lengths used to calculate the characteristic scales for momentum, temperature and
@@ -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 = 6.5,
93+
gustiness_parameter = 1,
9494
stability_functions = edson_stability_functions(FT),
9595
roughness_lengths = default_roughness_lengths(FT),
9696
similarity_form = LogarithmicSimilarityProfile(),

src/OceanSeaIceModels/PrescribedAtmospheres.jl

+6-5
Original file line numberDiff line numberDiff line change
@@ -343,6 +343,8 @@ function default_freshwater_flux(grid, times)
343343
return (; rain, snow)
344344
end
345345

346+
""" The standard unit of atmospheric pressure; 1 standard atmosphere (atm) = 101,325 Pascals (Pa) in SI units.
347+
This is approximately equal to the mean sea-level atmospheric pressure on Earth. """
346348
function default_atmosphere_pressure(grid, times)
347349
pa = FieldTimeSeries{Center, Center, Nothing}(grid, times)
348350
parent(pa) .= 101325
@@ -371,7 +373,7 @@ end
371373
PrescribedAtmosphere(grid, times;
372374
clock = Clock{Float64}(time = 0),
373375
surface_layer_height = 10, # meters
374-
boundary_layer_height = 600 # meters,
376+
boundary_layer_height = 512 # meters,
375377
thermodynamics_parameters = PrescribedAtmosphereThermodynamicsParameters(FT),
376378
auxiliary_freshwater_flux = nothing,
377379
velocities = default_atmosphere_velocities(grid, times),
@@ -385,8 +387,8 @@ state with data given at `times`.
385387
"""
386388
function PrescribedAtmosphere(grid, times;
387389
clock = Clock{Float64}(time = 0),
388-
surface_layer_height = convert(eltype(grid), 10),
389-
boundary_layer_height = convert(eltype(grid), 600),
390+
surface_layer_height = 10,
391+
boundary_layer_height = 512,
390392
thermodynamics_parameters = nothing,
391393
auxiliary_freshwater_flux = nothing,
392394
velocities = default_atmosphere_velocities(grid, times),
@@ -422,7 +424,7 @@ end
422424
"""
423425
TwoBandDownwellingRadiation(shortwave=nothing, longwave=nothing)
424426
425-
Return a two-band model for downwelling radiation (split in a shortwave band
427+
Return a two-band model for downwelling radiation (split into a shortwave band
426428
and a longwave band) that passes through the atmosphere and arrives at the surface of ocean
427429
or sea ice.
428430
"""
@@ -434,4 +436,3 @@ Adapt.adapt_structure(to, tsdr::TwoBandDownwellingRadiation) =
434436
adapt(to, tsdr.longwave))
435437

436438
end # module
437-

0 commit comments

Comments
 (0)