forked from erf-model/ERF
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactor ConstantAlpha to allow running with turbulence model (erf-mo…
…del#1391) * Enable ConstantAlpha with LES/PBL * Throw error if Smagorinsky selected w/o setting Cs * Fix bug in incompressible path * Cleanup: variable names for clarity and consistency, update comments * Handle ConstantAlpha case when calling ComputeStress* - ComputeStress*() now have cell_data as an argument - cell_data is set if l_use_constAlpha, otherwise a nullptr is passed - mu_eff is now converted to alpha prior to being passed to ComputeStress*() * Apply the same changes for ConstantAlpha as ERF_slow_rhs_pre * No need to scale by rho here in the ConstantAlpha solver path For generality, rho scaling is applied when tau is calculated. This enables ConstantAlpha to be used with a turbulence model. * Make interpolation of rhoAlpha consistent with mu_turb * Calculate rhoalpha for ghost cells in xyz * New gold data after fixing indexing and interpolation * Average rho to faces, following mu_turb; update gold data * Removed fixed_mri_dt_ratio Otherwise ref solution crashes on step 938 (t=234.25). Orig fixed dt ratio was 4; allowing a variable dt ratio results in a constant dt ratio of 6. --------- Co-authored-by: Aaron M. Lattanzi <[email protected]>
- Loading branch information
1 parent
88ea1f0
commit 9ea9813
Showing
37 changed files
with
1,022 additions
and
904 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,9 @@ | ||
#!/bin/bash | ||
#SBATCH --account=erf | ||
#SBATCH --time=1:30:00 | ||
#SBATCH --time=0:30:00 | ||
#SBATCH --job-name=DensityCurrent_ref_soln | ||
#SBATCH --ntasks=256 | ||
#SBATCH --mail-user [email protected] | ||
#SBATCH --mail-type BEGIN,END,FAIL | ||
#SBATCH --ntasks=288 | ||
# Timing with 288 CPU cores on NREL Eagle HPC: 427.1469369 s | ||
|
||
# load environment | ||
. ~/.bash_profile | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.