Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update perio test #45

Merged
merged 2 commits into from
Jan 14, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions Exec/RegTests/PeriodicCases/input.2d_CoGauS
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand All @@ -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
3 changes: 2 additions & 1 deletion Exec/RegTests/PeriodicCases/input.2d_CoGauT
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down
35 changes: 32 additions & 3 deletions Exec/RegTests/PeriodicCases/pelelm_prob.H
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down