-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #10 from EPCCed/data-generation
Data generation
- Loading branch information
Showing
4 changed files
with
104 additions
and
7 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
# | ||
# Hasegawa-Wakatani test case | ||
# | ||
|
||
timestep = 0.026 # Output timestep | ||
nout = 1 # Number of output steps | ||
restart = true | ||
append = false | ||
|
||
MYG = 0 # No need for Y communications | ||
|
||
periodicX = true # Domain is periodic in X | ||
|
||
[mesh] | ||
|
||
nx = 260 # Note 4 guard cells in X | ||
ny = 1 | ||
nz = 256 # Periodic, so no guard cells in Z | ||
|
||
dx = 0.1 | ||
dy = 1.0 | ||
dz = 0.1 | ||
|
||
[hw] | ||
|
||
alpha = 1.0 # Adiabaticity (~ conductivity) | ||
kappa = 2.0 # Density gradient drive | ||
Dvort = 0.005 # Vorticity diffusion | ||
Dn = 0.005 # Density diffusion | ||
|
||
modified = true | ||
|
||
bracket = 2 # 0 = std, 1 = simple, 2 = arakawa | ||
|
||
[solver] | ||
type = rk4 | ||
adaptive = false | ||
timestep = 0.026 | ||
|
||
[all] | ||
#scale = 0.0 | ||
bndry_all = dirichlet_o2 | ||
|
||
[n] | ||
#bndry_all = neumann_o2 | ||
|
||
[vort] | ||
#bndry_all = dirichlet_o2 | ||
|
||
#scale = 0.1 # Fluctuation amplitude | ||
#function = mixmode(2*pi*x) * mixmode(z) # Fluctuation function | ||
|
||
|
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,39 @@ | ||
#!/bin/bash | ||
|
||
#SBATCH --nodes=1 | ||
#SBATCH --ntasks=1 | ||
# #SBATCH --exclusive | ||
#SBATCH --time=08:00:00 | ||
#SBATCH --partition=standard | ||
#SBATCH --qos=standard | ||
#SBATCH --account=<account> | ||
|
||
eval "$(/work/x01/x01/$USER/miniconda3/bin/conda shell.bash hook)" | ||
conda activate boutsmartsim | ||
|
||
module load intel-20.4/mpi | ||
module load intel-20.4/compilers | ||
module load fftw/3.3.10-intel20.4-impi20.4 | ||
module load netcdf-parallel/4.9.2-intel20-impi20 | ||
|
||
ID_TRAJ=1 | ||
BASE_PATH=/scratch/space1/x01/data/my-scratch-data | ||
|
||
executable=/work/x01/x01/$USER/my-hw/build/hasegawa-wakatani | ||
|
||
for i in {0..1000} | ||
do | ||
coarse_TRAJ_PATH=${BASE_PATH}/${i}/coarse | ||
coarse_TRAJ_SIM_PATH=${BASE_PATH}/${i}/coarse_sim | ||
mkdir -p $coarse_TRAJ_SIM_PATH | ||
cp ${coarse_TRAJ_PATH}/BOUT.restart.* $coarse_TRAJ_SIM_PATH | ||
cp coarse_BOUT.inp $coarse_TRAJ_SIM_PATH/BOUT.inp | ||
|
||
cd $coarse_TRAJ_SIM_PATH | ||
|
||
srun --nodes=1 --ntasks=1 --job-name=ss_job_0 --distribution=block:block \ | ||
$executable -d . \ | ||
restart=true append=false \ | ||
solver:type=rk4 solver:adaptive=false solver:timestep=0.026 \ | ||
nout=1 timestep=0.026 mesh:nx=260 mesh:nz=256 mesh:dx=0.1 mesh:dz=0.1 -d . | ||
done |