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.
Box perturbation multi-face/corner generalization (erf-model#1716)
* fix merge conflict, OPENMP compile time Error, and trailing white space * git push --set-upstream origin July23_perturbation_box_method * file rename. Moving to perlmutter to do GPU test + validations * added in generalization for source/direct perturbation using Richardson number scaling. Added net-zero energy check for box perturbation method. modified some tags in inputs file. Made new functions in TurbPertStruct.H to clean up code. Continue working on validation, multiface initialization, update .rst file * fixed codespell and trailing white space * added conditions to trigger scale ignoring perturbation through gravity term * fixed CI workflow error. * fixed last CI error * fix last CI bug of implicit capture * added multi-face multi-corner generalization to inflow perturbation method. * code spell fix * all input file change for number of integer entry to perturbation_direction * added multi-face multi-corner generalization to inflow perturbation method + updated documentation * added multi-face multi-corner generalization to inflow perturbation method + updated documentation * small modifications to input files. begin testing * moved amp_calc into private member. Now TurbPertStruct.H is fully cleaned up for review. * fixed trailing whitespace * fixed host/device logic issue, and normalizing by 0 issue on host * mergeing with develope * correcting Perlmutter CUDA compile error * merge once more + GNUmakefile edits * got compressible_direct_intputs to give good magnitudes --------- Co-authored-by: Ting-Hsuan (Dustin) Ma <[email protected]> Co-authored-by: Aaron M. Lattanzi <[email protected]>
- Loading branch information
1 parent
fd1673c
commit fa6acad
Showing
10 changed files
with
498 additions
and
261 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
86 changes: 86 additions & 0 deletions
86
Exec/DevTests/ABL_perturbation_inflow/compressible_direct_inputs
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,86 @@ | ||
# ------------------ INPUTS TO MAIN PROGRAM ------------------- | ||
stop_time = 180.0 | ||
#max_step = 1 | ||
|
||
amrex.fpe_trap_invalid = 1 | ||
fabarray.mfiter_tile_size = 1024 1024 1024 | ||
|
||
# PROBLEM SIZE & GEOMETRY | ||
#Larger problem | ||
geometry.prob_extent = 40 2.5 10 | ||
amr.n_cell = 256 16 64 | ||
|
||
# Quick debug problem | ||
#geometry.prob_extent = 20 5 10 | ||
#amr.n_cell = 64 16 32 | ||
|
||
geometry.is_periodic = 0 1 0 | ||
|
||
xlo.type = "Inflow" | ||
xhi.type = "Outflow" | ||
zhi.type = "SlipWall" | ||
#zlo.type = "NoSlipWall" | ||
|
||
zlo.type = "Most" | ||
erf.most.flux_type = "custom" | ||
erf.most.ustar = 0.0395 # z=10. | ||
erf.most.tstar = 0. # theta flux | ||
erf.most.qstar = 0. # qv flux | ||
|
||
xlo.density = 1.0 | ||
xlo.theta = 300.0 | ||
#xlo.velocity = 1.0 0.0 0.0 | ||
xlo.dirichlet_file = "input_ReTau395Ana_inflow.txt" | ||
|
||
# TIME STEP CONTROL | ||
erf.fixed_dt = 0.0002 | ||
erf.fixed_mri_dt_ratio = 4 | ||
erf.dynamicViscosity = 0.001 | ||
|
||
# DIAGNOSTICS & VERBOSITY | ||
erf.sum_interval = 100 # timesteps between computing mass | ||
erf.pert_interval = 100 # timesteps between perturbation output message XXX | ||
erf.v = 0 # verbosity in ERF.cpp XXX | ||
amr.v = 0 # verbosity in Amr.cpp | ||
|
||
# REFINEMENT / REGRIDDING | ||
amr.max_level = 0 # maximum level number allowed | ||
|
||
# PLOTFILES | ||
erf.plot_file_1 = plt # prefix of plotfile name | ||
erf.plot_per_1 = 0.1 | ||
#erf.plot_int_1 = 5 | ||
erf.plot_vars_1 = density rhoadv_0 x_velocity y_velocity z_velocity pressure temp theta | ||
|
||
# CHECKPOINT FILES | ||
#erf.check_file = chk # root name of checkpoint file | ||
#erf.check_per = 1.0 | ||
|
||
# SOLVER CHOICE | ||
erf.alpha_T = 0.0 | ||
erf.alpha_C = 0.0 | ||
erf.molec_diff_type = "None" | ||
erf.les_type = "Smagorinsky" | ||
erf.Cs = 0.1 | ||
erf.use_gravity = true | ||
erf.buoyancy_type = 1 | ||
|
||
# Turbulent inflow generation | ||
#erf.perturbation_type = "source" | ||
erf.perturbation_type = "direct" | ||
erf.perturbation_direction = 1 0 0 0 0 0 | ||
erf.perturbation_layers = 3 | ||
erf.perturbation_offset = 3 | ||
|
||
erf.perturbation_box_dims = 16 16 8 | ||
erf.perturbation_nondimensional = 0.001 # Ri | ||
erf.perturbation_T_infinity = 300.0 | ||
#erf.perturbation_T_intensity = 0.01 | ||
|
||
# Initial condition for the entire field | ||
erf.init_type = "input_sounding" | ||
erf.input_sounding_file = "input_ReTau395Ana_sounding.txt" | ||
|
||
# PROBLEM PARAMETERS | ||
prob.rho_0 = 1.0 | ||
prob.T_0 = 300.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
Oops, something went wrong.