From 0cb5b5e0638e9391aac5734d00bb83d6ec83c5c2 Mon Sep 17 00:00:00 2001 From: Lucas Esclapez Date: Fri, 14 Jan 2022 14:38:16 -0700 Subject: [PATCH 1/2] Update the convected Species/Temperature gaussian test inputs. --- Exec/RegTests/PeriodicCases/input.2d_CoGauS | 10 +++++----- Exec/RegTests/PeriodicCases/input.2d_CoGauT | 3 ++- 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/Exec/RegTests/PeriodicCases/input.2d_CoGauS b/Exec/RegTests/PeriodicCases/input.2d_CoGauS index 98ab5fd9..13af6baa 100644 --- a/Exec/RegTests/PeriodicCases/input.2d_CoGauS +++ b/Exec/RegTests/PeriodicCases/input.2d_CoGauS @@ -10,7 +10,6 @@ geometry.prob_hi = 1.0 1.0 1.0 # x_hi y_hi (z_hi) peleLM.lo_bc = Interior Interior peleLM.hi_bc = Interior Interior - #-------------------------AMR CONTROL---------------------------- amr.n_cell = 64 64 64 # Level 0 number of cells in each direction amr.v = 1 # AMR verbose @@ -22,13 +21,12 @@ amr.grid_eff = 0.7 # what constitutes an efficient grid amr.blocking_factor = 16 # block factor in grid generation (min box size) amr.max_grid_size = 64 # max box size - #--------------------------- Problem ------------------------------- prob.T_mean = 298.0 prob.P_mean = 101325.0 prob.type = ConvectedGaussian prob.meanFlowMag = 50.0 -prob.meanFlowDir = 1 +prob.meanFlowDir = -3 prob.gaussian_rad = 0.1 prob.gaussian_x0 = 0.5 prob.gaussian_y0 = 0.5 @@ -46,16 +44,18 @@ peleLM.v = 1 peleLM.incompressible = 0 peleLM.rho = 1.17 peleLM.mu = 0.0 +peleLM.sdc_iterMax = 2 amr.plot_int = 10000 amr.max_step = 50000 amr.dt_shrink = 0.1 amr.stop_time = 0.02 amr.cfl = 0.5 -amr.derive_plot_vars = avg_pressure +amr.derive_plot_vars = avg_pressure mass_fractions #--------------------REFINEMENT CONTROL------------------------ -# + + #amrex.fpe_trap_invalid = 1 #amrex.fpe_trap_zero = 1 #amrex.fpe_trap_overflow = 1 diff --git a/Exec/RegTests/PeriodicCases/input.2d_CoGauT b/Exec/RegTests/PeriodicCases/input.2d_CoGauT index 94daabed..2a98641f 100644 --- a/Exec/RegTests/PeriodicCases/input.2d_CoGauT +++ b/Exec/RegTests/PeriodicCases/input.2d_CoGauT @@ -28,7 +28,7 @@ prob.T_mean = 298.0 prob.P_mean = 101325.0 prob.type = ConvectedGaussian prob.meanFlowMag = 50.0 -prob.meanFlowDir = 1 +prob.meanFlowDir = 2 prob.gaussian_rad = 0.1 prob.gaussian_x0 = 0.5 prob.gaussian_y0 = 0.5 @@ -46,6 +46,7 @@ peleLM.v = 1 peleLM.incompressible = 0 peleLM.rho = 1.17 peleLM.mu = 0.0 +peleLM.sdc_iterMax = 2 amr.plot_int = 10000 amr.max_step = 50000 From 39b70746de44a31873b4c78c75c9a0d1ab52d6eb Mon Sep 17 00:00:00 2001 From: Lucas Esclapez Date: Fri, 14 Jan 2022 14:55:37 -0700 Subject: [PATCH 2/2] Add missing mean flow direction in Convected Gaussian. --- Exec/RegTests/PeriodicCases/pelelm_prob.H | 35 +++++++++++++++++++++-- 1 file changed, 32 insertions(+), 3 deletions(-) diff --git a/Exec/RegTests/PeriodicCases/pelelm_prob.H b/Exec/RegTests/PeriodicCases/pelelm_prob.H index a00d80a0..46573c64 100644 --- a/Exec/RegTests/PeriodicCases/pelelm_prob.H +++ b/Exec/RegTests/PeriodicCases/pelelm_prob.H @@ -94,9 +94,38 @@ void pelelm_initdata(int i, int j, int k, temp(i,j,k) = prob_parm.T_mean; } else if ( prob_parm.probType == 1 ) { // CoGau - AMREX_D_TERM(vel(i,j,k,0) = prob_parm.meanFlowMag;, - vel(i,j,k,1) = 0.0;, - vel(i,j,k,2) = 0.0); + switch(prob_parm.meanFlowDir) { + case 1 : + AMREX_D_TERM(vel(i,j,k,0) = prob_parm.meanFlowMag;, + vel(i,j,k,1) = 0.0;, + vel(i,j,k,2) = 0.0); + break; + case -1 : + AMREX_D_TERM(vel(i,j,k,0) = -prob_parm.meanFlowMag;, + vel(i,j,k,1) = 0.0;, + vel(i,j,k,2) = 0.0); + break; + case 2 : + AMREX_D_TERM(vel(i,j,k,0) = 0.0;, + vel(i,j,k,1) = prob_parm.meanFlowMag;, + vel(i,j,k,2) = 0.0); + break; + case -2 : + AMREX_D_TERM(vel(i,j,k,0) = 0.0;, + vel(i,j,k,1) = -prob_parm.meanFlowMag;, + vel(i,j,k,2) = 0.0); + break; + case 3 : + AMREX_D_TERM(vel(i,j,k,0) = prob_parm.meanFlowMag;, + vel(i,j,k,1) = prob_parm.meanFlowMag;, + vel(i,j,k,2) = 0.0); + break; + case -3 : + AMREX_D_TERM(vel(i,j,k,0) = -prob_parm.meanFlowMag;, + vel(i,j,k,1) = -prob_parm.meanFlowMag;, + vel(i,j,k,2) = 0.0); + break; + } if (is_incompressible) return;