Skip to content

Commit 877be99

Browse files
committed
formatting changes
1 parent fbb7793 commit 877be99

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

examples/SurfaceFluxExample/kappa_calibration.jl

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,10 @@ the equation: u(z) = u^* / κ log (z / z0),
66
which represents the wind profile in Monin-Obukhov
77
Similarity Theory (MOST) formulations. In order to recover the empirically determined κ = 0.4,
88
we use data from the John Hopkins Tubulence Channel Flow, which offers DNS simulations of a channel flow with
9-
smooth wall boundary conditions, i.e. z0m ≈ 0 m. The dataset can be found here: https://turbulence.pha.jhu.edu/Channel_Flow.aspx
9+
smooth wall boundary conditions, i.e. z0m ≈ 0 m. The dataset can be found here: https://turbulence.pha.jhu.edu/Channel\_Flow.aspx.
1010
We use the dataset's u^* as an observable, and each ensemble member estimates u^* through the
11-
SurfaceFluxes.jl function surface_conditions, see https://github.com/CliMA/SurfaceFluxes.jl
12-
In order to calculate u^*, the function surface_conditions is provided a set of thermodynamic params,
11+
SurfaceFluxes.jl function surface\_conditions, see https://github.com/CliMA/SurfaceFluxes.jl
12+
In order to calculate u^*, the function surface\_conditions is provided a set of thermodynamic params,
1313
a functional form for stability functions (Businger, Gryanick, Grachev), and the constants corresponding
1414
to that functional form. In this example, we elect the Businger functions.
1515
=#
@@ -52,10 +52,10 @@ include("setup_parameter_set.jl")
5252
Next, we download and read data from the John Hopkins Tubulence Channel Flow dataset,
5353
specifically those concerning mean velocity and its variance over various heights.
5454
The parameters defining the dataset are given by:
55-
- u_star = 4.14872e-02
55+
- u\_star = 4.14872e-02
5656
- δ = 1.000
5757
- ν = 8.00000e-06
58-
- Re_tau = 5185.897
58+
- Re\_tau = 5185.897
5959
=#
6060
mkpath(joinpath(@__DIR__, "data")) # create data folder if not exists
6161
web_datafile_path = "https://turbulence.oden.utexas.edu/channel2015/data/LM_Channel_5200_mean_prof.dat"
@@ -69,7 +69,7 @@ z = data_mean_velocity[:, 1]
6969
u = data_mean_velocity[:, 3] * u_star_obs
7070

7171
# Next, we define our physical model, where we first define thermodynamic parameters
72-
# and MOST parameters to pass into the surface_conditions function from SurfaceFluxes.jl.
72+
# and MOST parameters to pass into the surface\_conditions function from SurfaceFluxes.jl.
7373
# We define the MOST stability functions to be of the Businger type.
7474
"""
7575
physical_model(inputs, parameters)
@@ -116,7 +116,7 @@ function physical_model(parameters, inputs)
116116

117117
κ_nt = (; von_karman_const = κ)
118118

119-
# Now, we initialize the variable surf_flux_params, which we will eventually pass into
119+
# Now, we initialize the variable surf\_flux\_params, which we will eventually pass into
120120
# surface_conditions along with mean wind data
121121
UFP = typeof(ufp)
122122
TPtype = typeof(thermo_params)
@@ -262,4 +262,4 @@ png("final_and_initial_ensemble")
262262
# ![see plot: ](../assets/kappa_calibration_plot2.png)
263263

264264
# Evidently, EKI was highly successful at recovering the von karman constant κ = 0.4. This process will be extended to recover
265-
# stability function parameters such as a_m, a_h, b_m, b_h, and Pr_0.
265+
# stability function parameters such as a\_m, a\_h, b\_m, b\_h, and Pr\_0.

0 commit comments

Comments
 (0)