Skip to content

Commit 922a09f

Browse files
Example: move sdft to stochastic (#208)
* example: move sdft to stochastic (#1365) Co-authored-by: hongriTianqi <[email protected]>
1 parent 7d9dc23 commit 922a09f

File tree

19 files changed

+73
-197
lines changed

19 files changed

+73
-197
lines changed

examples/stochastic/README

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
/*******************************************************************************/
2+
/
3+
/ These are the examples of ABACUS program.
4+
/
5+
/*******************************************************************************/
6+
7+
These are the simpleset example of SDFT
8+
9+
- pw_Si2:
10+
11+
Using mix stochastic-deterministic DFT (MDFT) to calculate the total
12+
energy of Silicon(diamond) at the temperature of 0.6 Ry.
13+
14+
Note:
15+
(1) Three input files are required in this calculation:
16+
INPUT(control parameters)
17+
STRU(structures)
18+
KPT(k points, here we use 8 points with symmetry open)
19+
20+
(2) This is a self-consistent calculations (default) with plane wave basis (default).
21+
(3) The pseudopotential file is also needed, which appears in STRU file.
22+
23+
Run the program(if permitted, otherwise please use a script to submit the job)
24+
$ABACUS-path/ABACUS.fp_mpi-v1.0.1
25+
26+
Finish! Then you can see running_scf.log in OUT.ABACUS.
27+
If you are not familiar with the parameters in INPUT,
28+
please check in OUT.ABACUS/INPUT.
29+
30+
- pw_md_Al:
31+
32+
Using stochastic DFT to simulate 16-atom 2.7 g/cc Aluminum at the temperature of 100 eV.
33+
34+
Note:
35+
(1) Three input files are required in this calculation:
36+
INPUT(control parameters)
37+
STRU(structures)
38+
KPT(k points, here we use Gamma point.)
39+
40+
(2) This is a molecular-dynamics calculations (default) with plane wave basis (default).
41+
(3) The pseudopotential file is also needed, which appears in STRU file.
42+
43+
Run the program(if permitted, otherwise please use a script to submit the job)
44+
$ABACUS-path/ABACUS.fp_mpi-v1.0.1
45+
46+
Finish! Then you can see running_scf.log in OUT.ABACUS.
47+
If you are not familiar with the parameters in INPUT,
48+
please check in OUT.ABACUS/INPUT.
File renamed without changes.
File renamed without changes.
File renamed without changes.

examples/stochastic/pw_Si2/run.sh

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
#!/bin/bash
2+
3+
ABACUS_PATH=$(awk -F "=" '$1=="ABACUS_PATH"{print $2}' ../../SETENV)
4+
ABACUS_NPROCS=$(awk -F "=" '$1=="ABACUS_NPROCS"{print $2}' ../../SETENV)
5+
ABACUS_THREADS=$(awk -F "=" '$1=="ABACUS_THREADS"{print $2}' ../../SETENV)
6+
7+
OMP_NUM_THREADS=${ABACUS_THREADS} mpirun -np ${ABACUS_NPROCS} ${ABACUS_PATH} | tee scf.output

examples/stochastic/pw_al/INPUT

Lines changed: 0 additions & 24 deletions
This file was deleted.

examples/stochastic/pw_al/KPT

Lines changed: 0 additions & 4 deletions
This file was deleted.

examples/stochastic/pw_al/README

Lines changed: 0 additions & 13 deletions
This file was deleted.

examples/stochastic/pw_al/STRU

Lines changed: 0 additions & 33 deletions
This file was deleted.
File renamed without changes.

0 commit comments

Comments
 (0)