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.
Turbulent inflow generation (patch) (erf-model#1665)
* Generalized size of boxes. Start implementing CPB. Still need user input + .rst documentation * Added my own folder in Exec, ABL_perturbation_inflow * Generalized BPM so it can transform into CPM. Added more user input variables. Renamed BPM and CPM tags to source and direct to keep neutrality. Need to add Ec, tp, and cell_data equations for direction add. * manually got rid of tabs * added in calc_tpi_meanMag_firstCell() function and direct field add within TimeIntegration/ERF_Advance.cpp for CPM cases. Need to implement options to swap back and forth on use side between BPM and CPM. Switch gear and start runtime optimization. * amr.v=0 helps with runtime. Added random numbers for PB_intervals. Added outputs for PB_amplitude/PB_updateTime in seperate file when erf.v=1. Need to find a good way to generalize amplitude. Currently breaks code when amplitude is too large. CONTINUE with CPM debug, fast_rhs_fun debug with PB, and documentation with .rst file. * Fixed CUDA private member issue. CONTINUE with CPM debug, fast_rhs_fun debug with PB, and documentation with .rst file * Added output format into file + verbose tags. Fixed parallel issue of boxes. Added in perturbation inflow .rst documents. CONTINUE with CPM debug, fast_rhs_fun debug with PB. * Added output format into file + verbose tags. Fixed parallel issue of boxes. Added in perturbation inflow .rst documents. CONTINUE with CPM debug, fast_rhs_fun debug with PB. * Get rid of trailing white space. Added output format into file + verbose tags. Fixed parallel issue of boxes. Added in perturbation inflow .rst documents. CONTINUE with CPM debug, fast_rhs_fun debug with PB. * update DOI links for build-and-deploy fail test. * 404 Client Error: Not Found for url error fix. * 404 Client Error: Not Found for url error fix. * 404 Client Error: Not Found for url error fix. * Error 403 with Munoz-Esparza 2015 paper. Last attempt * Added in perturbation inflow .rst documents. CONTINUE with pb tests. Currently blows up after 1st update interval. * fix for doc push * manual rerun for DOI link in docs * link replacement for syntax error * manual check for munoz link * what is going on with these links? * using link I know that works * testing DeLeon link * DeLeon: maybe it's a syntax error? * DeLeon: Trying the other way of linking * maybe special character problem? * commented out links to DeLeon et al. (2018), and Munoz-Esparza et al. (2015). DOI links return Erorror 403, actual link returns Error 404. * testing perturbation inflow method, qualitativly for now * Added trigger tags for PBM in ERF.cpp. This should fix compile error in workflow. * Document update * resolved erroneous error with pseduo gravity (ignores scales with mechancial perturbation) * resolved erroneous error with pseduo gravity (ignores scales with mechancial perturbation) * updating PR * fixing codespell --------- Co-authored-by: Ting-Hsuan (Dustin) Ma <[email protected]>
- Loading branch information
1 parent
9dbafa7
commit 59da3d2
Showing
24 changed files
with
1,719 additions
and
198 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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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 |
---|---|---|
@@ -0,0 +1,12 @@ | ||
set(erf_exe_name erf_abl_perturbation_inflow) | ||
|
||
add_executable(${erf_exe_name} "") | ||
target_sources(${erf_exe_name} | ||
PRIVATE | ||
prob.cpp | ||
) | ||
|
||
target_include_directories(${erf_exe_name} PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}) | ||
|
||
include(${CMAKE_SOURCE_DIR}/CMake/BuildERFExe.cmake) | ||
build_erf_exe(${erf_exe_name}) |
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 |
---|---|---|
@@ -0,0 +1,34 @@ | ||
# AMReX | ||
COMP = gnu | ||
PRECISION = DOUBLE | ||
|
||
# Profiling | ||
PROFILE = FALSE | ||
TINY_PROFILE = TRUE | ||
COMM_PROFILE = FALSE | ||
TRACE_PROFILE = FALSE | ||
MEM_PROFILE = FALSE | ||
USE_GPROF = FALSE | ||
|
||
# Performance | ||
USE_MPI = TRUE | ||
USE_OMP = FALSE | ||
|
||
USE_CUDA = FALSE | ||
USE_HIP = FALSE | ||
USE_SYCL = FALSE | ||
|
||
# Debugging | ||
DEBUG = TRUE | ||
|
||
TEST = TRUE | ||
USE_ASSERTION = TRUE | ||
|
||
#USE_POISSON_SOLVE = TRUE | ||
|
||
# GNU Make | ||
Bpack := ./Make.package | ||
Blocs := . | ||
ERF_HOME := ../../.. | ||
ERF_PROBLEM_DIR = $(ERF_HOME)/Exec/DevTests/ABL_perturbation_inflow | ||
include $(ERF_HOME)/Exec/Make.ERF |
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 |
---|---|---|
@@ -0,0 +1,2 @@ | ||
CEXE_headers += prob.H | ||
CEXE_sources += prob.cpp |
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 |
---|---|---|
@@ -0,0 +1,7 @@ | ||
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 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. |
34 changes: 34 additions & 0 deletions
34
Exec/DevTests/ABL_perturbation_inflow/input_ReTau2000Ana_sounding.txt
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 |
---|---|---|
@@ -0,0 +1,34 @@ | ||
0.0 300.0 0.0 | ||
1.00000000e-02 3.00000000e+02 0.00000000e+00 1.25066641e+01 0.00000000e+00 | ||
3.22187500e-01 3.00000000e+02 0.00000000e+00 2.09762948e+01 0.00000000e+00 | ||
6.34375000e-01 3.00000000e+02 0.00000000e+00 2.26287499e+01 0.00000000e+00 | ||
9.46562500e-01 3.00000000e+02 0.00000000e+00 2.36048395e+01 0.00000000e+00 | ||
1.25875000e+00 3.00000000e+02 0.00000000e+00 2.43000527e+01 0.00000000e+00 | ||
1.57093750e+00 3.00000000e+02 0.00000000e+00 2.48404269e+01 0.00000000e+00 | ||
1.88312500e+00 3.00000000e+02 0.00000000e+00 2.52825246e+01 0.00000000e+00 | ||
2.19531250e+00 3.00000000e+02 0.00000000e+00 2.56566509e+01 0.00000000e+00 | ||
2.50750000e+00 3.00000000e+02 0.00000000e+00 2.59809480e+01 0.00000000e+00 | ||
2.81968750e+00 3.00000000e+02 0.00000000e+00 2.62671427e+01 0.00000000e+00 | ||
3.13187500e+00 3.00000000e+02 0.00000000e+00 2.65232545e+01 0.00000000e+00 | ||
3.44406250e+00 3.00000000e+02 0.00000000e+00 2.67550102e+01 0.00000000e+00 | ||
3.75625000e+00 3.00000000e+02 0.00000000e+00 2.69666429e+01 0.00000000e+00 | ||
4.06843750e+00 3.00000000e+02 0.00000000e+00 2.71613695e+01 0.00000000e+00 | ||
4.38062500e+00 3.00000000e+02 0.00000000e+00 2.73416924e+01 0.00000000e+00 | ||
4.69281250e+00 3.00000000e+02 0.00000000e+00 2.75095964e+01 0.00000000e+00 | ||
5.00500000e+00 3.00000000e+02 0.00000000e+00 2.76666826e+01 0.00000000e+00 | ||
5.31718750e+00 3.00000000e+02 0.00000000e+00 2.78142609e+01 0.00000000e+00 | ||
5.62937500e+00 3.00000000e+02 0.00000000e+00 2.79534168e+01 0.00000000e+00 | ||
5.94156250e+00 3.00000000e+02 0.00000000e+00 2.80850600e+01 0.00000000e+00 | ||
6.25375000e+00 3.00000000e+02 0.00000000e+00 2.82099603e+01 0.00000000e+00 | ||
6.56593750e+00 3.00000000e+02 0.00000000e+00 2.83287750e+01 0.00000000e+00 | ||
6.87812500e+00 3.00000000e+02 0.00000000e+00 2.84420696e+01 0.00000000e+00 | ||
7.19031250e+00 3.00000000e+02 0.00000000e+00 2.85503344e+01 0.00000000e+00 | ||
7.50250000e+00 3.00000000e+02 0.00000000e+00 2.86539970e+01 0.00000000e+00 | ||
7.81468750e+00 3.00000000e+02 0.00000000e+00 2.87534328e+01 0.00000000e+00 | ||
8.12687500e+00 3.00000000e+02 0.00000000e+00 2.88489730e+01 0.00000000e+00 | ||
8.43906250e+00 3.00000000e+02 0.00000000e+00 2.89409114e+01 0.00000000e+00 | ||
8.75125000e+00 3.00000000e+02 0.00000000e+00 2.90295098e+01 0.00000000e+00 | ||
9.06343750e+00 3.00000000e+02 0.00000000e+00 2.91150023e+01 0.00000000e+00 | ||
9.37562500e+00 3.00000000e+02 0.00000000e+00 2.91975993e+01 0.00000000e+00 | ||
9.68781250e+00 3.00000000e+02 0.00000000e+00 2.92774905e+01 0.00000000e+00 | ||
1.00000000e+01 3.00000000e+02 0.00000000e+00 2.93548477e+01 0.00000000e+00 |
33 changes: 33 additions & 0 deletions
33
Exec/DevTests/ABL_perturbation_inflow/input_ReTau2000Ana_sponge.txt
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 |
---|---|---|
@@ -0,0 +1,33 @@ | ||
1.00000000e-02 1.25066641e+01 0.00000000e+00 | ||
3.22187500e-01 2.09762948e+01 0.00000000e+00 | ||
6.34375000e-01 2.26287499e+01 0.00000000e+00 | ||
9.46562500e-01 2.36048395e+01 0.00000000e+00 | ||
1.25875000e+00 2.43000527e+01 0.00000000e+00 | ||
1.57093750e+00 2.48404269e+01 0.00000000e+00 | ||
1.88312500e+00 2.52825246e+01 0.00000000e+00 | ||
2.19531250e+00 2.56566509e+01 0.00000000e+00 | ||
2.50750000e+00 2.59809480e+01 0.00000000e+00 | ||
2.81968750e+00 2.62671427e+01 0.00000000e+00 | ||
3.13187500e+00 2.65232545e+01 0.00000000e+00 | ||
3.44406250e+00 2.67550102e+01 0.00000000e+00 | ||
3.75625000e+00 2.69666429e+01 0.00000000e+00 | ||
4.06843750e+00 2.71613695e+01 0.00000000e+00 | ||
4.38062500e+00 2.73416924e+01 0.00000000e+00 | ||
4.69281250e+00 2.75095964e+01 0.00000000e+00 | ||
5.00500000e+00 2.76666826e+01 0.00000000e+00 | ||
5.31718750e+00 2.78142609e+01 0.00000000e+00 | ||
5.62937500e+00 2.79534168e+01 0.00000000e+00 | ||
5.94156250e+00 2.80850600e+01 0.00000000e+00 | ||
6.25375000e+00 2.82099603e+01 0.00000000e+00 | ||
6.56593750e+00 2.83287750e+01 0.00000000e+00 | ||
6.87812500e+00 2.84420696e+01 0.00000000e+00 | ||
7.19031250e+00 2.85503344e+01 0.00000000e+00 | ||
7.50250000e+00 2.86539970e+01 0.00000000e+00 | ||
7.81468750e+00 2.87534328e+01 0.00000000e+00 | ||
8.12687500e+00 2.88489730e+01 0.00000000e+00 | ||
8.43906250e+00 2.89409114e+01 0.00000000e+00 | ||
8.75125000e+00 2.90295098e+01 0.00000000e+00 | ||
9.06343750e+00 2.91150023e+01 0.00000000e+00 | ||
9.37562500e+00 2.91975993e+01 0.00000000e+00 | ||
9.68781250e+00 2.92774905e+01 0.00000000e+00 | ||
1.00000000e+01 2.93548477e+01 0.00000000e+00 |
Oops, something went wrong.