forked from erf-model/ERF
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'development' into ysu-pbl-moreprog
- Loading branch information
Showing
66 changed files
with
2,619 additions
and
297 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
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 |
---|---|---|
@@ -0,0 +1,65 @@ | ||
# ------------------ INPUTS TO MAIN PROGRAM ------------------- | ||
max_step = 4000 | ||
|
||
amrex.fpe_trap_invalid = 1 | ||
|
||
fabarray.mfiter_tile_size = 1024 1024 1024 | ||
|
||
# PROBLEM SIZE & GEOMETRY | ||
geometry.prob_extent = 1024 1024 1024 | ||
amr.n_cell = 64 64 64 | ||
|
||
geometry.is_periodic = 1 1 0 | ||
|
||
zlo.type = "NoSlipWall" | ||
zhi.type = "SlipWall" | ||
|
||
# TIME STEP CONTROL | ||
erf.fixed_dt = 0.1 # fixed time step depending on grid resolution | ||
|
||
# DIAGNOSTICS & VERBOSITY | ||
erf.sum_interval = 1 # timesteps between computing mass | ||
erf.v = 1 # verbosity in ERF.cpp | ||
amr.v = 1 # verbosity in Amr.cpp | ||
|
||
# REFINEMENT / REGRIDDING | ||
amr.max_level = 0 # maximum level number allowed | ||
|
||
# CHECKPOINT FILES | ||
erf.check_file = chk # root name of checkpoint file | ||
erf.check_int = 100 # number of timesteps between checkpoints | ||
|
||
# PLOTFILES | ||
erf.time_avg_vel = true | ||
erf.plot_file_1 = plt # prefix of plotfile name | ||
erf.plot_int_1 = 10 # number of timesteps between plotfiles | ||
erf.plot_vars_1 = density rhoKE rhoadv_0 x_velocity y_velocity z_velocity pressure temp theta u_t_avg v_t_avg w_t_avg umag_t_avg | ||
|
||
# SOLVER CHOICE | ||
erf.alpha_T = 0.0 | ||
erf.alpha_C = 1.0 | ||
erf.use_gravity = false | ||
|
||
erf.molec_diff_type = "None" | ||
erf.les_type = "Deardorff" | ||
erf.Ck = 0.1 | ||
erf.sigma_k = 1.0 | ||
erf.Ce = 0.1 | ||
|
||
erf.init_type = "uniform" | ||
erf.KE_0 = 0.1 # for Deardorff | ||
|
||
# PROBLEM PARAMETERS | ||
prob.rho_0 = 1.0 | ||
prob.A_0 = 1.0 | ||
|
||
prob.U_0 = 10.0 | ||
prob.V_0 = 0.0 | ||
prob.W_0 = 0.0 | ||
prob.T_0 = 300.0 | ||
|
||
# Higher values of perturbations lead to instability | ||
# Instability seems to be coming from BC | ||
prob.U_0_Pert_Mag = 0.08 | ||
prob.V_0_Pert_Mag = 0.08 # | ||
prob.W_0_Pert_Mag = 0.0 |
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 |
---|---|---|
@@ -0,0 +1,12 @@ | ||
set(erf_exe_name erf_fitch) | ||
|
||
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,37 @@ | ||
# 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 = FALSE | ||
|
||
TEST = TRUE | ||
USE_ASSERTION = TRUE | ||
|
||
USE_WINDFARM = TRUE | ||
|
||
|
||
#USE_POISSON_SOLVE = TRUE | ||
|
||
# GNU Make | ||
Bpack := ./Make.package | ||
Blocs := . | ||
ERF_HOME := ../.. | ||
ERF_PROBLEM_DIR = $(ERF_HOME)/Exec/EWP | ||
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,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 version of the ABL problem initializes the data using a hydrostatic profile | ||
with random perturbations in velocity and potential temperature. |
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,78 @@ | ||
# ------------------ INPUTS TO MAIN PROGRAM ------------------- | ||
max_step = 100000 | ||
|
||
amrex.fpe_trap_invalid = 1 | ||
|
||
fabarray.mfiter_tile_size = 1024 1024 1024 | ||
|
||
# PROBLEM SIZE & GEOMETRY | ||
erf.latitude_lo = 35.0 | ||
erf.longitude_lo = -100.0 | ||
geometry.prob_extent = 200150 202637 1000 | ||
amr.n_cell = 50 50 40 | ||
|
||
#erf.grid_stretching_ratio = 1.025 | ||
#erf.initial_dz = 16.0 | ||
|
||
geometry.is_periodic = 0 0 0 | ||
|
||
# MOST BOUNDARY (DEFAULT IS ADIABATIC FOR THETA) | ||
#zlo.type = "MOST" | ||
#erf.most.z0 = 0.1 | ||
#erf.most.zref = 8.0 | ||
|
||
zlo.type = "SlipWall" | ||
zhi.type = "SlipWall" | ||
xlo.type = "Outflow" | ||
xhi.type = "Outflow" | ||
ylo.type = "Outflow" | ||
yhi.type = "Outflow" | ||
|
||
# TIME STEP CONTROL | ||
erf.use_native_mri = 1 | ||
erf.fixed_dt = 0.25 # fixed time step depending on grid resolution | ||
#erf.fixed_fast_dt = 0.0025 | ||
|
||
# DIAGNOSTICS & VERBOSITY | ||
erf.sum_interval = 1 # timesteps between computing mass | ||
erf.v = 1 # verbosity in ERF.cpp | ||
amr.v = 1 # verbosity in Amr.cpp | ||
|
||
# REFINEMENT / REGRIDDING | ||
amr.max_level = 0 # maximum level number allowed | ||
|
||
# CHECKPOINT FILES | ||
erf.check_file = chk # root name of checkpoint file | ||
erf.check_int = 10000 # number of timesteps between checkpoints | ||
#erf.restart = chk02000 | ||
|
||
# PLOTFILES | ||
erf.plot_file_1 = plt # prefix of plotfile name | ||
erf.plot_int_1 = 1000 # number of timesteps between plotfiles | ||
erf.plot_vars_1 = density rhoadv_0 x_velocity y_velocity z_velocity pressure temp theta QKE num_turb vorticity | ||
|
||
# SOLVER CHOICE | ||
erf.alpha_T = 0.0 | ||
erf.alpha_C = 1.0 | ||
erf.use_gravity = false | ||
|
||
erf.molec_diff_type = "ConstantAlpha" | ||
erf.les_type = "None" | ||
erf.Cs = 1.5 | ||
erf.dynamicViscosity = 100.0 | ||
|
||
erf.pbl_type = "None" | ||
|
||
erf.init_type = "uniform" | ||
|
||
erf.windfarm_type = "EWP" | ||
|
||
# PROBLEM PARAMETERS | ||
prob.rho_0 = 1.0 | ||
prob.A_0 = 1.0 | ||
|
||
prob.U_0 = 10.0 | ||
prob.V_0 = 10.0 | ||
prob.W_0 = 0.0 | ||
prob.T_0 = 300.0 | ||
|
Oops, something went wrong.