Skip to content
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
29 changes: 29 additions & 0 deletions examples/35_tdofdft/01_Al_proton_ESP/01_gs/INPUT
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
INPUT_PARAMETERS
#Parameters (1.General)
suffix autotest
calculation scf
esolver_type ofdft

symmetry 1
pseudo_dir ../../../tests/PP_ORB
pseudo_rcut 16
nspin 1
cal_force 1
test_force 1
cal_stress 1
test_stress 1

#Parameters (2.Iteration)
ecutwfc 44
scf_nmax 50

#OFDFT
of_kinetic tf+
of_method tn
of_conv energy
of_tole 2e-6

#Parameters (3.Basis)
basis_type pw

out_chg 1
4 changes: 4 additions & 0 deletions examples/35_tdofdft/01_Al_proton_ESP/01_gs/KPT
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
K_POINTS
0
Gamma
1 1 1 0 0 0
273 changes: 273 additions & 0 deletions examples/35_tdofdft/01_Al_proton_ESP/01_gs/STRU
Original file line number Diff line number Diff line change
@@ -0,0 +1,273 @@
ATOMIC_SPECIES
Al 26.981539 al.lda.lps blps

LATTICE_CONSTANT
30.613575 // add lattice constant

LATTICE_VECTORS
1.000000000000 0.000000000000 0.000000000000
0.000000000000 1.000000000000 0.000000000000
0.000000000000 0.000000000000 1.000000000000

ATOMIC_POSITIONS
Direct

Al
0
256
0 0 0 0 0 0
0 0.125 0.125 0 0 0
0.125 0 0.125 0 0 0
0.125 0.125 0 0 0 0
0 0 0.25 0 0 0
0 0.125 0.375 0 0 0
0.125 0 0.375 0 0 0
0.125 0.125 0.25 0 0 0
0 0 0.5 0 0 0
0 0.125 0.625 0 0 0
0.125 0 0.625 0 0 0
0.125 0.125 0.5 0 0 0
0 0 0.75 0 0 0
0 0.125 0.875 0 0 0
0.125 0 0.875 0 0 0
0.125 0.125 0.75 0 0 0
0 0.25 0 0 0 0
0 0.375 0.125 0 0 0
0.125 0.25 0.125 0 0 0
0.125 0.375 0 0 0 0
0 0.25 0.25 0 0 0
0 0.375 0.375 0 0 0
0.125 0.25 0.375 0 0 0
0.125 0.375 0.25 0 0 0
0 0.25 0.5 0 0 0
0 0.375 0.625 0 0 0
0.125 0.25 0.625 0 0 0
0.125 0.375 0.5 0 0 0
0 0.25 0.75 0 0 0
0 0.375 0.875 0 0 0
0.125 0.25 0.875 0 0 0
0.125 0.375 0.75 0 0 0
0.25 0 0 0 0 0
0.25 0.125 0.125 0 0 0
0.375 0 0.125 0 0 0
0.375 0.125 0 0 0 0
0.25 0 0.25 0 0 0
0.25 0.125 0.375 0 0 0
0.375 0 0.375 0 0 0
0.375 0.125 0.25 0 0 0
0.25 0 0.5 0 0 0
0.25 0.125 0.625 0 0 0
0.375 0 0.625 0 0 0
0.375 0.125 0.5 0 0 0
0.25 0 0.75 0 0 0
0.25 0.125 0.875 0 0 0
0.375 0 0.875 0 0 0
0.375 0.125 0.75 0 0 0
0.25 0.25 0 0 0 0
0.25 0.375 0.125 0 0 0
0.375 0.25 0.125 0 0 0
0.375 0.375 0 0 0 0
0.25 0.25 0.25 0 0 0
0.25 0.375 0.375 0 0 0
0.375 0.25 0.375 0 0 0
0.375 0.375 0.25 0 0 0
0.25 0.25 0.5 0 0 0
0.25 0.375 0.625 0 0 0
0.375 0.25 0.625 0 0 0
0.375 0.375 0.5 0 0 0
0.25 0.25 0.75 0 0 0
0.25 0.375 0.875 0 0 0
0.375 0.25 0.875 0 0 0
0.375 0.375 0.75 0 0 0
0.5 0 0 0 0 0
0.5 0.125 0.125 0 0 0
0.625 0 0.125 0 0 0
0.625 0.125 0 0 0 0
0.5 0 0.25 0 0 0
0.5 0.125 0.375 0 0 0
0.625 0 0.375 0 0 0
0.625 0.125 0.25 0 0 0
0.5 0 0.5 0 0 0
0.5 0.125 0.625 0 0 0
0.625 0 0.625 0 0 0
0.625 0.125 0.5 0 0 0
0.5 0 0.75 0 0 0
0.5 0.125 0.875 0 0 0
0.625 0 0.875 0 0 0
0.625 0.125 0.75 0 0 0
0.5 0.25 0 0 0 0
0.5 0.375 0.125 0 0 0
0.625 0.25 0.125 0 0 0
0.625 0.375 0 0 0 0
0.5 0.25 0.25 0 0 0
0.5 0.375 0.375 0 0 0
0.625 0.25 0.375 0 0 0
0.625 0.375 0.25 0 0 0
0.5 0.25 0.5 0 0 0
0.5 0.375 0.625 0 0 0
0.625 0.25 0.625 0 0 0
0.625 0.375 0.5 0 0 0
0.5 0.25 0.75 0 0 0
0.5 0.375 0.875 0 0 0
0.625 0.25 0.875 0 0 0
0.625 0.375 0.75 0 0 0
0.75 0 0 0 0 0
0.75 0.125 0.125 0 0 0
0.875 0 0.125 0 0 0
0.875 0.125 0 0 0 0
0.75 0 0.25 0 0 0
0.75 0.125 0.375 0 0 0
0.875 0 0.375 0 0 0
0.875 0.125 0.25 0 0 0
0.75 0 0.5 0 0 0
0.75 0.125 0.625 0 0 0
0.875 0 0.625 0 0 0
0.875 0.125 0.5 0 0 0
0.75 0 0.75 0 0 0
0.75 0.125 0.875 0 0 0
0.875 0 0.875 0 0 0
0.875 0.125 0.75 0 0 0
0.75 0.25 0 0 0 0
0.75 0.375 0.125 0 0 0
0.875 0.25 0.125 0 0 0
0.875 0.375 0 0 0 0
0.75 0.25 0.25 0 0 0
0.75 0.375 0.375 0 0 0
0.875 0.25 0.375 0 0 0
0.875 0.375 0.25 0 0 0
0.75 0.25 0.5 0 0 0
0.75 0.375 0.625 0 0 0
0.875 0.25 0.625 0 0 0
0.875 0.375 0.5 0 0 0
0.75 0.25 0.75 0 0 0
0.75 0.375 0.875 0 0 0
0.875 0.25 0.875 0 0 0
0.875 0.375 0.75 0 0 0
0 0.5 0 0 0 0
0 0.625 0.125 0 0 0
0.125 0.5 0.125 0 0 0
0.125 0.625 0 0 0 0
0 0.5 0.25 0 0 0
0 0.625 0.375 0 0 0
0.125 0.5 0.375 0 0 0
0.125 0.625 0.25 0 0 0
0 0.5 0.5 0 0 0
0 0.625 0.625 0 0 0
0.125 0.5 0.625 0 0 0
0.125 0.625 0.5 0 0 0
0 0.5 0.75 0 0 0
0 0.625 0.875 0 0 0
0.125 0.5 0.875 0 0 0
0.125 0.625 0.75 0 0 0
0 0.75 0 0 0 0
0 0.875 0.125 0 0 0
0.125 0.75 0.125 0 0 0
0.125 0.875 0 0 0 0
0 0.75 0.25 0 0 0
0 0.875 0.375 0 0 0
0.125 0.75 0.375 0 0 0
0.125 0.875 0.25 0 0 0
0 0.75 0.5 0 0 0
0 0.875 0.625 0 0 0
0.125 0.75 0.625 0 0 0
0.125 0.875 0.5 0 0 0
0 0.75 0.75 0 0 0
0 0.875 0.875 0 0 0
0.125 0.75 0.875 0 0 0
0.125 0.875 0.75 0 0 0
0.25 0.5 0 0 0 0
0.25 0.625 0.125 0 0 0
0.375 0.5 0.125 0 0 0
0.375 0.625 0 0 0 0
0.25 0.5 0.25 0 0 0
0.25 0.625 0.375 0 0 0
0.375 0.5 0.375 0 0 0
0.375 0.625 0.25 0 0 0
0.25 0.5 0.5 0 0 0
0.25 0.625 0.625 0 0 0
0.375 0.5 0.625 0 0 0
0.375 0.625 0.5 0 0 0
0.25 0.5 0.75 0 0 0
0.25 0.625 0.875 0 0 0
0.375 0.5 0.875 0 0 0
0.375 0.625 0.75 0 0 0
0.25 0.75 0 0 0 0
0.25 0.875 0.125 0 0 0
0.375 0.75 0.125 0 0 0
0.375 0.875 0 0 0 0
0.25 0.75 0.25 0 0 0
0.25 0.875 0.375 0 0 0
0.375 0.75 0.375 0 0 0
0.375 0.875 0.25 0 0 0
0.25 0.75 0.5 0 0 0
0.25 0.875 0.625 0 0 0
0.375 0.75 0.625 0 0 0
0.375 0.875 0.5 0 0 0
0.25 0.75 0.75 0 0 0
0.25 0.875 0.875 0 0 0
0.375 0.75 0.875 0 0 0
0.375 0.875 0.75 0 0 0
0.5 0.5 0 0 0 0
0.5 0.625 0.125 0 0 0
0.625 0.5 0.125 0 0 0
0.625 0.625 0 0 0 0
0.5 0.5 0.25 0 0 0
0.5 0.625 0.375 0 0 0
0.625 0.5 0.375 0 0 0
0.625 0.625 0.25 0 0 0
0.5 0.5 0.5 0 0 0
0.5 0.625 0.625 0 0 0
0.625 0.5 0.625 0 0 0
0.625 0.625 0.5 0 0 0
0.5 0.5 0.75 0 0 0
0.5 0.625 0.875 0 0 0
0.625 0.5 0.875 0 0 0
0.625 0.625 0.75 0 0 0
0.5 0.75 0 0 0 0
0.5 0.875 0.125 0 0 0
0.625 0.75 0.125 0 0 0
0.625 0.875 0 0 0 0
0.5 0.75 0.25 0 0 0
0.5 0.875 0.375 0 0 0
0.625 0.75 0.375 0 0 0
0.625 0.875 0.25 0 0 0
0.5 0.75 0.5 0 0 0
0.5 0.875 0.625 0 0 0
0.625 0.75 0.625 0 0 0
0.625 0.875 0.5 0 0 0
0.5 0.75 0.75 0 0 0
0.5 0.875 0.875 0 0 0
0.625 0.75 0.875 0 0 0
0.625 0.875 0.75 0 0 0
0.75 0.5 0 0 0 0
0.75 0.625 0.125 0 0 0
0.875 0.5 0.125 0 0 0
0.875 0.625 0 0 0 0
0.75 0.5 0.25 0 0 0
0.75 0.625 0.375 0 0 0
0.875 0.5 0.375 0 0 0
0.875 0.625 0.25 0 0 0
0.75 0.5 0.5 0 0 0
0.75 0.625 0.625 0 0 0
0.875 0.5 0.625 0 0 0
0.875 0.625 0.5 0 0 0
0.75 0.5 0.75 0 0 0
0.75 0.625 0.875 0 0 0
0.875 0.5 0.875 0 0 0
0.875 0.625 0.75 0 0 0
0.75 0.75 0 0 0 0
0.75 0.875 0.125 0 0 0
0.875 0.75 0.125 0 0 0
0.875 0.875 0 0 0 0
0.75 0.75 0.25 0 0 0
0.75 0.875 0.375 0 0 0
0.875 0.75 0.375 0 0 0
0.875 0.875 0.25 0 0 0
0.75 0.75 0.5 0 0 0
0.75 0.875 0.625 0 0 0
0.875 0.75 0.625 0 0 0
0.875 0.875 0.5 0 0 0
0.75 0.75 0.75 0 0 0
0.75 0.875 0.875 0 0 0
0.875 0.75 0.875 0 0 0
0.875 0.875 0.75 0 0 0
18 changes: 18 additions & 0 deletions examples/35_tdofdft/01_Al_proton_ESP/01_gs/run.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
#!/bin/bash

ABACUS_PATH=$(awk -F "=" '$1=="ABACUS_PATH"{print $2}' ../../../../SETENV)
ABACUS_NPROCS=$(awk -F "=" '$1=="ABACUS_NPROCS"{print $2}' ../../../../SETENV)
ABACUS_THREADS=$(awk -F "=" '$1=="ABACUS_THREADS"{print $2}' ../../../../SETENV)

OMP_NUM_THREADS=${ABACUS_THREADS} mpirun -np ${ABACUS_NPROCS} ${ABACUS_PATH} | tee relax.output

if [[ ! -f scf.output ]] ||
[[ ! -f OUT.ABACUS/running_scf.log ]] ||
[[ ! ( "$(tail -1 OUT.ABACUS/running_scf.log)" == " Total Time :"* ) ]]
then
echo "job failed!"
exit 1
else
echo "job succeeded!"
exit 0
fi
43 changes: 43 additions & 0 deletions examples/35_tdofdft/01_Al_proton_ESP/02_td/INPUT
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
INPUT_PARAMETERS
#Parameters (1.General)
suffix autotest
calculation md
esolver_type tdofdft

symmetry 1
pseudo_dir ../../../tests/PP_ORB
pseudo_rcut 16
nspin 1
cal_force 1
test_force 1
cal_stress 1
test_stress 1

#Parameters (2.Iteration)
ecutwfc 44
scf_nmax 50

#OFDFT
of_kinetic tf+
of_method tn
of_conv energy
of_tole 2e-6
of_cd 1
of_mcd_alpha 2.0

#Parameters (3.Basis)
basis_type pw

init_vel 1
init_chg file
read_file_dir ./

md_restart 0
md_type nve
md_nstep 4500
md_dt 0.0005
md_dumpfreq 1

# Total charge: 256 Al * 3 valence electrons = 768
# (proton contributes +1 charge, no valence electrons)
nelec 768
4 changes: 4 additions & 0 deletions examples/35_tdofdft/01_Al_proton_ESP/02_td/KPT
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
K_POINTS
0
Gamma
1 1 1 0 0 0
Loading
Loading