-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
8 changed files
with
183 additions
and
17 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
# Problem specification | ||
prob_lo = 0.0 0.0 # physical lo coordinate | ||
prob_hi = 1.0 1.0 # physical hi coordinate | ||
|
||
# number of cells in domain | ||
n_cells = 32 32 | ||
# max number of cells in a box | ||
max_grid_size = 16 16 | ||
|
||
# Time-step control | ||
fixed_dt = 0.1 | ||
|
||
# Controls for number of steps between actions | ||
max_step = 10 | ||
plot_int = 1 | ||
|
||
seed = 1 | ||
|
||
nspecies = 2 | ||
|
||
# Boundary conditions | ||
# ---------------------- | ||
# BC specifications: | ||
# -1 = periodic | ||
bc_spec_lo = -1 -1 | ||
bc_spec_hi = -1 -1 | ||
|
||
stats_int = -1 |
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,28 @@ | ||
# Problem specification | ||
prob_lo = 0.0 0.0 0.0 # physical lo coordinate | ||
prob_hi = 1.0 1.0 1.0 # physical hi coordinate | ||
|
||
# number of cells in domain | ||
n_cells = 32 32 32 | ||
# max number of cells in a box | ||
max_grid_size = 16 16 16 | ||
|
||
# Time-step control | ||
fixed_dt = 0.1 | ||
|
||
# Controls for number of steps between actions | ||
max_step = 10 | ||
plot_int = 1 | ||
|
||
seed = 1 | ||
|
||
nspecies = 2 | ||
|
||
# Boundary conditions | ||
# ---------------------- | ||
# BC specifications: | ||
# -1 = periodic | ||
bc_spec_lo = -1 -1 -1 | ||
bc_spec_hi = -1 -1 -1 | ||
|
||
stats_int = -1 |
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 |
---|---|---|
@@ -1,3 +1,4 @@ | ||
CEXE_sources += reactDiff_functions.cpp | ||
CEXE_sources += WritePlotFile.cpp | ||
CEXE_headers += reactDiff_functions.H | ||
CEXE_headers += reactDiff_namespace.H |
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,32 @@ | ||
#include "AMReX_PlotFileUtil.H" | ||
#include "reactDiff_functions.H" | ||
|
||
void WritePlotFile(int step, | ||
const amrex::Real time, | ||
const amrex::Geometry& geom, | ||
const MultiFab& n_in) | ||
{ | ||
|
||
BL_PROFILE_VAR("WritePlotFile()",WritePlotFile); | ||
|
||
std::string plotfilename = Concatenate(plot_base_name,step,7); | ||
|
||
amrex::Print() << "Writing plotfile " << plotfilename << "\n"; | ||
|
||
BoxArray ba = n_in.boxArray(); | ||
DistributionMapping dmap = n_in.DistributionMap(); | ||
|
||
Vector<std::string> varNames(nspecies); | ||
|
||
// keep a counter for plotfile variables | ||
int cnt = 0; | ||
|
||
for (int i=0; i<nspecies; ++i) { | ||
std::string x = "n"; | ||
x += char(49+i); | ||
varNames[cnt++] = x; | ||
} | ||
|
||
WriteSingleLevelPlotfile(plotfilename,n_in,varNames,geom,time,step); | ||
|
||
} |
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