Skip to content

Commit

Permalink
making small edits to docs, changing normalization to adding mean pro…
Browse files Browse the repository at this point in the history
…file
  • Loading branch information
gdeskos committed Mar 4, 2024
1 parent f7f3105 commit cd1b4de
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 9 deletions.
8 changes: 4 additions & 4 deletions examples/08_mann_box_generation_IEC.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,13 +95,13 @@
)

#######################################################################################
# Scaling of the field (normalization)
# Adding the mean velocity profile
# ------------------------------------
# The generated fluctuation field is normalized and scaled by the power law profile
# The mean velocity profile follows the power law profile
#
# .. math:: \left\langle U_1(z)\right\rangle= u_* \left( \frac{z}{z_{\text{ref}}} \right)^\alpha
# .. math:: \left\langle U_1(z)\right\rangle= U_{\text{ref}}\left( \frac{z}{z_{\text{ref}}} \right)^\alpha
#
# where :math:`u_*` is the friction velocity and :math:`z_{\text{ref}}` is the reference height.
# where :math:`U_{\text{ref}}` is the reference velocity and :math:`z_{\text{ref}}` is the reference height.
#

spacing = tuple(grid_dimensions / (2.0**grid_levels + 1))
Expand Down
11 changes: 6 additions & 5 deletions examples/09_drd_box.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
Fluctuation Field Generation from DRD Model
===========================================
This example demonstrates the utilities for generating fluctuation fields, which can be either from a pre-trained DRD model, or based on some well-known spectra models. ``DRDMannTurb`` provides several utilities for plotting the resulting fields through Plotly, which can be done in several contexts as well as utilities for saving to VTK for downstream analysis.
This example demonstrates the utilities for generating fluctuation fields, which can be either from a pre-trained DRD model, or based on some well-known spectra models. ``DRDMannTurb`` provides several utilities for plotting the resulting fields through Plotly, which can be done in several contexts as well as utilities for saving to VTK for downstream analysis.
"""

Expand Down Expand Up @@ -101,15 +101,16 @@
)

#######################################################################################
# Scaling of the field (normalization)
# Adding the mean velocity profile
# ------------------------------------
# The generated fluctuation field is normalized and scaled by the logarithmic profile
# The mean velocity profile follows the power law profile
#
# .. math:: \left\langle U_1(z)\right\rangle=\frac{u_*}{\kappa} \ln \left(\frac{z}{z_0}+1\right)
# .. math:: \left\langle U_1(z)\right\rangle= U_{\text{ref}}\left( \frac{z}{z_{\text{ref}}} \right)^\alpha
#
# where :math:`u_*` is the friction velocity and :math:`z_0` is the roughness height.
# where :math:`U_{\text{ref}}` is the reference velocity and :math:`z_{\text{ref}}` is the reference height.
#


fluctuation_field_drd = gen_drd.generate(nBlocks, zref, uref, z0, windprofiletype)


Expand Down

0 comments on commit cd1b4de

Please sign in to comment.