Skip to content

Commit

Permalink
fixing codespell
Browse files Browse the repository at this point in the history
  • Loading branch information
Ting-Hsuan (Dustin) Ma committed Jul 10, 2024
1 parent db200c1 commit 9b0d41f
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion Docs/sphinx_doc/BoundaryConditions.rst
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,7 @@ ERF provides the capability to apply a perturbation zone at the inflow domain bo
| Image taken from `DeLeon et al. (2018)` |
+-----------------------------------------------------+

Two different types of perturbation are currently avaliable, ``source``, adopted from `DeLeon et al. (2018)`_
Two different types of perturbation are currently available, ``source``, adopted from `DeLeon et al. (2018)`_

..
_`DeLeon et al. (2018)`: https://doi.org/10.2514/1.J057245
Expand Down
2 changes: 1 addition & 1 deletion Exec/DevTests/ABL_perturbation_inflow/README
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@ This problem setup is for simulation of the Atmospheric Boundary Layer (ABL)
using one of two turbulence schemes (Smagorinsky or Deardorff) and the bottom
boundary condition possibly specified by Monin Obukhov Similarity Theory (MOST).

This verion of the ABL problem initializes the data from an input sounding file,
This version of the ABL problem initializes the data from an input sounding file,
and initializes turbulence at the inflow. The target is to transition turbulence
from coarse to fine grid interface.
12 changes: 6 additions & 6 deletions Source/DataStructs/TurbPertStruct.H
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ struct TurbulentPerturbation {
pb_local_etime.resize(pb_ba[lev].size(), 0.0);
pb_amp.resize(pb_ba[lev].size(), 0.0);

// Comptuing perturbation reference length
// Computing perturbation reference length
tpi_Lpb = tpi_boxDim[0]*dx[0];
tpi_Wpb = tpi_boxDim[1]*dx[1];
tpi_Hpb = tpi_boxDim[2]*dx[2];
Expand Down Expand Up @@ -151,11 +151,11 @@ struct TurbulentPerturbation {
//#define ECKERT_FORMULATION
#define BULK_RICHARDSON_FORMULATION

// Perturbation amplitude calcluation
// Perturbation amplitude calculation
void calc_tpi_amp (const int boxIdx, const amrex::Real interval)
{
amrex::Real Um = pb_mag[boxIdx];
pb_amp[boxIdx] = 0.; // Safty step
pb_amp[boxIdx] = 0.; // Safety step

#ifdef ECKERT_FORMULATION
// Muñoz-Esparza et al. (2015) Eq. 9
Expand All @@ -165,7 +165,7 @@ struct TurbulentPerturbation {
#ifdef BULK_RICHARDSON_FORMULATION
amrex::Real beta = 1./tpi_Tinf;

// Pseudo Random temperature the ignores scale when machanically tripping turbulence
// Pseudo Random temperature the ignores scale when mechanically tripping turbulence
amrex::Real g = (tpi_nonDim * Um * Um) / (tpi_Ti * tpi_Hpb);
//amrex::Real g = CONST_GRAV;

Expand Down Expand Up @@ -218,7 +218,7 @@ struct TurbulentPerturbation {
#define USE_VOLUME_AVERAGE

// Perturbation box mean velocity magnitude calculation
// This is pulled into the strucutre to also utilize during runtime
// This is pulled into the structure to also utilize during runtime
void calc_tpi_meanMag_perBox (const int boxIdx,
const int lev,
amrex::MultiFab& mf_xvel,
Expand Down Expand Up @@ -418,7 +418,7 @@ struct TurbulentPerturbation {

private:

// Random number generation between range (used for interval calucation)
// Random number generation between range (used for interval calculation)
amrex::Real RandomReal (const amrex::Real min, const amrex::Real max)
{
amrex::Real r = (amrex::Real) rand() / (amrex::Real) RAND_MAX;
Expand Down

0 comments on commit 9b0d41f

Please sign in to comment.