Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
quanshengwu committed May 23, 2024
1 parent b3ea4d0 commit ef0744b
Show file tree
Hide file tree
Showing 10 changed files with 761 additions and 73 deletions.
2 changes: 1 addition & 1 deletion examples/Cu/AMR-xy/AMR_rhotheta.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ def extract_rho_theta(f,dtheta,num_show,interval_line,choose,output_file, output


if __name__ == '__main__':
theta_interval=5
theta_interval=15
Btau_show=6
Btau_num=101
Btau_max=10
Expand Down
2 changes: 1 addition & 1 deletion examples/Cu/AMR-xy/AMR_rhoxx.gnu
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ set ylabel '{/Symbol r}_{xx}*{/Symbol t} ({/Symbol W}*m*s)'
set format y "%1.1e"
set xlabel '{/Symbol \161}'
set xrange [0:180]
set yrange [1.2e-21:2.5e-21]
#set yrange [1.2e-21:2.5e-21]
set xtics 30
set key outside
#unset key
Expand Down
2 changes: 1 addition & 1 deletion examples/Cu/AMR-xy/AMR_rhozz.gnu
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ set ylabel '{/Symbol r}_{zz}*{/Symbol t} ({/Symbol W}*m*s)'
set format y "%1.1e"
set xlabel '{/Symbol \161}'
set xrange [0:180]
set yrange [1.2e-21:2.7e-21]
#set yrange [1.2e-21:2.7e-21]
set xtics 30
set key outside
#unset key
Expand Down
59 changes: 21 additions & 38 deletions examples/Cu/AMR-xy/xyplane.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@
# alpha is the angle between the magnetic field and the z' axis in the z'-b plane, where z' axis is
# perpendicular to a and b axis.

for ((iphi=0; iphi<=36; iphi++))
for ((iphi=0; iphi<=12; iphi++))
do

theta=90
phi=`echo "$iphi*5"|bc`
phi=`echo "$iphi*15"|bc`
dir='Btheta'$theta'Bphi'$phi
echo $theta $phi $dir
mkdir $dir
Expand Down Expand Up @@ -35,9 +35,9 @@ OmegaNum = 1 ! omega number
OmegaMin = 0 ! energy interval
OmegaMax = 0 ! energy interval E_i= OmegaMin+ (OmegaMax-OmegaMin)/(OmegaNum-1)*(i-1)
EF_integral_range = 0.05 ! in eV, a broadening factor to choose the k points for integration
Nk1 =81 ! Kmesh(1) for KCUBE_BULK
Nk2 =81 ! Kmesh(2) for KCUBE_BULK
Nk3 =81 ! Kmesh(3) for KCUBE_BULK
Nk1 =41 ! Kmesh(1) for KCUBE_BULK
Nk2 =41 ! Kmesh(2) for KCUBE_BULK
Nk3 =41 ! Kmesh(3) for KCUBE_BULK
BTauNum= 101 ! Number of B*tau we calculate
BTauMax = 10.0 ! The maximum B*tau, starting from Btau=0.
Tmin = 30 ! Temperature in Kelvin
Expand Down Expand Up @@ -78,39 +78,22 @@ KCUBE_BULK
EOF

cat>$dir/wt-theta.sh<<EOF2
#!/bin/bash -l
##SBATCH --exclusive
#SBATCH --account=hmt03
#SBATCH --time=72:00:00
##SBATCH --exclude=hpcc[154,155,156,114]
#SBATCH --nodes=1
##SBATCH --gres=gpu:4
#SBATCH --partition=long
#SBATCH --ntasks-per-core=1
#SBATCH --cpus-per-task=1
#SBATCH --ntasks-per-node=56
#SBATCH --job-name=vasp_run
#SBATCH --output=./log
#SBATCH --error=./errormsg
export OMP_NUM_THREADS=1
export MKL_NUM_THREADS=1
export MV2_ENABLE_AFFINITY=0
echo "The current job ID is $SLURM_JOB_ID"
echo "Running on $SLURM_JOB_NUM_NODES nodes:"
echo $SLURM_JOB_NODELIST
echo "Using $SLURM_NTASKS_PER_NODE tasks per node"
echo "A total of $SLURM_NTASKS tasks is used"
ulimit -s unlimited
ulimit -c unlimited
module load cuda11.8
module load oneapi22.3
module load nvhpc/22.11
mpirun /home/liuzh/Wanniertools/wannier_tools/bin/wt.x
echo work done
#!/bin/bash
#SBATCH -J $phi
#SBATCH -p wzhctdnormal
#SBATCH -N 1
#SBATCH --ntasks-per-node=2
#SBATCH -o out
#SBATCH -e error
module purge
module load compiler/intel/2021.3.0
module load mpi/intelmpi/2021.3.0
export I_MPI_PMI_LIBRARY=/opt/gridview/slurm/lib/libpmi.so
export PATH=~/wt2024/bin:$PATH
srun --mpi=pmi2 wt.x
EOF2

cp wannier90_hr.dat_nsymm48 $dir/
Expand Down
Loading

0 comments on commit ef0744b

Please sign in to comment.