You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: doc/developers.md
+3-6Lines changed: 3 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -11,9 +11,9 @@
11
11
-[Code Formatting style](#code-formatting-style)
12
12
[back to main page](../README.md)
13
13
14
-
## Raising issues on GitHub
14
+
## Creating issues on GitHub
15
15
16
-
Raising issues on GitHub is a convernient way to notify the develper team about bugs and feature requests of the ABACUS code. We provide a few templates for issues.
16
+
Creating issues on GitHub is a convernient way to notify the develper team about bugs and feature requests of the ABACUS code. We provide a few templates for issues.
17
17
18
18
[back to top](#for-developers)
19
19
@@ -23,7 +23,7 @@ The ABACUS code is refactored to several self-contained modules. A description o
23
23
24
24
### Add a unit test
25
25
26
-
If there are currently no unit tests provided for the module, do as follows. `module_base` provides a simple demonstration.
26
+
We use GoogleTest as our test framework. Write your test under the corresponding module folder at `abacus-develop/tests`, then append the test to `tests/CMakeLists.txt`. If there are currently no unit tests provided for the module, do as follows. `module_base` provides a simple demonstration.
27
27
28
28
- Add a folder named `test` under the module.
29
29
- Append the content below to `CMakeLists.txt` of the module:
@@ -106,9 +106,6 @@ After your pull request is merged, you can safely delete your branch and pull th
106
106
git pull --ff upstream develop
107
107
```
108
108
109
-
### Providing unit tests
110
-
111
-
We use GoogleTest as our test framework. Write your test under the corresponding module folder at `abacus-develop/tests`, then append the test to `tests/CMakeLists.txt`. To build tests for abacus, set`BUILD_TESTING=1` when configuring with CMake. Executables of test programs will be under `build/tests`.
Copy file name to clipboardExpand all lines: doc/examples/md.md
+10-12Lines changed: 10 additions & 12 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -33,24 +33,22 @@ basis_type lcao
33
33
mixing_beta 0.4
34
34
charge_extrap second-order
35
35
36
-
md_mdtype 1 //choose ensemble
36
+
md_type 1 //choose ensemble
37
37
md_dt 1 //time step
38
38
md_tfirst 700 //the first target temperature
39
-
md_rstmd 0 //whether restart md
40
-
md_qmass 1 //mass of themostat
41
-
md_dumpfred 10 //The period to dump MD information for monitoring and restarting MD
39
+
md_restart 0 //whether restart md
40
+
md_dumpfreq 10 //The period to dump MD information
42
41
```
43
42
44
43
These MD parameters means that ABACUS will use NVT ensemble with Nosé-hoover themostat; the time step is 1fs, and target temperature is 700K; start renew without restart file, set the mass of themostat as 1g/mol, and calculate the MSD and diffusion coefficent from first step.
45
44
46
45
Note: *Please turn off symmetry when do MD simulation.*
- md_tfirst : target temperature in md simulation(K), you should set parameter md_tlast and md_fixtemperature when you want to change temperature during md simulation.
51
-
- md_rstmd : 0, no need of restart ; 1, restart with restart file, you must repalce STRU file with STRU_MD before you run the restart task.
52
-
- md_qmass : mass of thermostat, set by experience, if you don’t know how to set, set it to 0 will have a number autosetted by ABACUS
53
-
- md_dumpfred : frequency for output consequence of md simulation
49
+
- md_tfirst : target temperature in md simulation(K), you should set parameter md_tlast when you want to change temperature during md simulation.
50
+
- md_restart : 0, no need of restart ; 1, restart with restart file, you must repalce STRU file with STRU_MD before you run the restart task.
51
+
- md_dumpfreq : frequency for output consequence of md simulation
54
52
55
53
The STRU file is:
56
54
```
@@ -149,9 +147,9 @@ Gamma
149
147
```
150
148
151
149
Run the program, and see results in the output directory. The following files are about MD:
152
-
-md_pos_$num.cif optimized structure in direct coordinate
153
-
-MD_RESTART output the information of md for restart
154
-
-STRU_MD if you want to restart md, you must replace the STRU with this file.
150
+
-STRU_MD_$num: optimized structures in direct coordinate
151
+
-Restart_md.dat: output the information of md for restart
152
+
-If you want to restart md, you must replace the STRU with STRU_MD_$num.
155
153
156
154
MD information can be found in file running_md.log or in file MD_OUT
@@ -912,43 +908,6 @@ This part of variables are used to control the calculation of DOS.
912
908
913
909
[back to top](#input-file)
914
910
915
-
### Electric field
916
-
This part of variables are used to control the addition of an external electric field. It is achieved by adding a saw-like potential to the local ionic potential.
917
-
918
-
- efield<a id="efield"></a>
919
-
- *Type*: Boolean
920
-
- *Description*: Controls whether to add the external electric field. When set to 1, the electric field is turned on. When set to 0, there is no electric field.
921
-
- *Default*: 0.
922
-
923
-
[back to top](#input-file)
924
-
925
-
- edir<a id="edir"></a>
926
-
- *Type*: Integer
927
-
- *Description*: Tells which reciprocal lattice vector the external electric field aligns with. Allowed values are 1,2, and 3, corresponding to the three reciprocal lattice vectors respectively.
928
-
- *Default*: 1
929
-
930
-
[back to top](#input-file)
931
-
932
-
- emaxpos<a id="emaxpos"></a>
933
-
- *Type*: Real
934
-
- *Description*: Position of the maximum of the saw-like potential along the reciprocal lattice vector specified by edir, 0 < emaxpos < 1.
935
-
- *Default*: 0.5
936
-
937
-
[back to top](#input-file)
938
-
939
-
- eopreg<a id="eopreg"></a>
940
-
- *Type*: Real
941
-
- *Description*: The saw-like potential increases in the region from `(emaxpos+eopreg-1)` to `(emaxpos)`, then decreases to 0 until (emaxpos+eopreg), in units of the crystal vector `edir`. Important: the change of slope of this potential must be located in the empty region, or else unphysical forces will result.
942
-
- *Default*: 0.1
943
-
944
-
[back to top](#input-file)
945
-
946
-
- eamp<a id="eamp"></a>
947
-
- *Type*: Real
948
-
- *Description*: Amplitude of the electric field, in atomic unit: 1 a.u. = 51.4220632*10^10 V/m.
949
-
- *Default*: 0.001
950
-
951
-
[back to top](#input-file)
952
911
953
912
### DeePKS
954
913
This part of variables are used to control the usage of DeePKS method (a comprehensive data-driven approach to improve accuracy of DFT).
@@ -1113,61 +1072,56 @@ This part of variables are used to control the molecular dynamics calculations.
1113
1072
- *Description*: control the ensemble to run md.
1114
1073
- -1: FIRE method to relax;
1115
1074
- 0: NVE ensemble;
1116
-
- 1: NVT ensemble with Anderson thermostat;
1117
-
- 2: NVT ensemble with Nose Hoover Chain;
1118
-
- 3: NVT ensemble with Langevin method;
1075
+
- 1: NVT ensemble with Nose Hoover Chain;
1076
+
- 2: NVT ensemble with Langevin method;
1077
+
- 3: NVT ensemble with Anderson thermostat;
1119
1078
- 4: MSST method;
1120
-
- *Default*: 2
1079
+
- *Default*: 1
1121
1080
1122
1081
[back to top](#input-file)
1123
1082
1124
-
- md_potential<a id="md-potential"></a>
1083
+
- md_ensolver<a id="md-ensolver"></a>
1125
1084
- *Type*: String
1126
-
- *Description*: choose the potential type.
1085
+
- *Description*: choose the energy solver for MD.
1127
1086
- FP: First-Principles MD;
1128
1087
- LJ: Leonard Jones potential;
1129
1088
- DP: DeeP potential;
1130
1089
- *Default*: FP
1131
1090
1132
1091
[back to top](#input-file)
1133
1092
1134
-
- md_rstmd<a id="md-rstmd"></a>
1093
+
- md_restart<a id="md-restart"></a>
1135
1094
- *Type*: Boolean
1136
1095
- *Description*: to control whether restart md.
1137
1096
- 0: When set to 0, ABACUS will calculate md normolly.
1138
1097
- 1: When set to 1, ABACUS will calculate md from last step in your test before.
1139
1098
- *Default*: 0
1140
1099
1141
1100
[back to top](#input-file)
1142
-
- md_dt<a id="md_dt"></a>
1101
+
- md_dt<a id="md-dt"></a>
1143
1102
- *Type*: Double
1144
1103
- *Description*: This is the time step(fs) used in md simulation .
1145
1104
- *Default*: 1
1146
1105
1147
1106
[back to top](#input-file)
1148
1107
- md_tfirst & md_tlast<a id="md-t"></a>
1149
1108
- *Type*: Double
1150
-
- *Description*: This is the temperature used in md simulation, md_tlast’s default value is md_tfirst. If md_tlast is setted and be different from the md_tfirst, ABACUS will automatically generate a linear temperature gradient file named ”ChangeTemp.dat”, you can also set this file according to your needs instead.
1109
+
- *Description*: This is the temperature (K) used in md simulation, md_tlast’s default value is md_tfirst. If md_tlast is set to be different from md_tfirst, ABACUS will automatically change the temperature from md_tfirst to md_tlast.
1151
1110
- *Default*: No default
1152
1111
1153
1112
[back to top](#input-file)
1154
-
- md_qmass<a id="md-qmass"></a>
1155
-
- *Type*: Double
1156
-
- *Description*: Inertia of extended system variable. Used only when md_type is 4, you should set a number which is larger than 0. Note that Qmass of NHC is set by md_tfreq.
1157
-
- *Default*: No default
1158
1113
1159
-
[back to top](#input-file)
1160
-
- md_dumpfred<a id="md-dumpfred"></a>
1114
+
- md_dumpfreq<a id="md-dumpfreq"></a>
1161
1115
- *Type*: Integer
1162
1116
- *Description*:This is the frequence to dump md information.
1163
1117
- *Default*: 1
1164
1118
1165
1119
[back to top](#input-file)
1166
1120
1167
-
- md_rstfred<a id="md-rstfred"></a>
1121
+
- md_restartfreq<a id="md-restartfreq"></a>
1168
1122
- *Type*: Integer
1169
1123
- *Description*:This is the frequence to output restart information.
1170
-
- *Default*: 1
1124
+
- *Default*: 5
1171
1125
1172
1126
[back to top](#input-file)
1173
1127
@@ -1180,63 +1134,70 @@ This part of variables are used to control the molecular dynamics calculations.
1180
1134
1181
1135
[back to top](#input-file)
1182
1136
1183
-
- MNHC<a id="mnhc"></a>
1137
+
- md_mnhc<a id="md-mnhc"></a>
1184
1138
- *Type*: Integer
1185
1139
- *Description*: Number of Nose-Hoover chains.
1186
1140
- *Default*: 4
1187
1141
1188
1142
[back to top](#input-file)
1189
1143
1190
-
- rcut_lj<a id="rcut_lj"></a>
1144
+
- lj_rcut<a id="lj-rcut"></a>
1191
1145
- *Type*: Real
1192
1146
- *Description*: Cut-off radius for Leonard Jones potential (angstrom).
1193
1147
- *Default*: 8.5 (for He)
1194
1148
1195
1149
[back to top](#input-file)
1196
1150
1197
-
- epsilon_lj<a id="epsilon_lj"></a>
1151
+
- lj_epsilon<a id="lj-epsilon"></a>
1198
1152
- *Type*: Real
1199
1153
- *Description*: The value of epsilon for Leonard Jones potential (eV).
1200
1154
- *Default*: 0.01032 (for He)
1201
1155
1202
1156
[back to top](#input-file)
1203
1157
1204
-
- sigma_lj<a id="sigma_lj"></a>
1158
+
- lj_sigma<a id="lj-sigma"></a>
1205
1159
- *Type*: Real
1206
1160
- *Description*: The value of sigma for Leonard Jones potential (angstrom).
1207
1161
- *Default*: 3.405 (for He)
1208
1162
1209
1163
[back to top](#input-file)
1210
1164
1211
-
- direction<a id="direction"></a>
1165
+
- msst_direction<a id="msst-direction"></a>
1212
1166
- *Type*: Integer
1213
1167
- *Description*: the direction of shock wave for MSST.
1214
1168
- *Default*: 2 (z direction)
1215
1169
1216
1170
[back to top](#input-file)
1217
1171
1218
-
- velocity<a id="velocity"></a>
1172
+
- msst_vel<a id="msst-vel"></a>
1219
1173
- *Type*: Real
1220
1174
- *Description*: the velocity of shock wave (\AA/fs) for MSST.
1221
1175
- *Default*: 0
1222
1176
1223
1177
[back to top](#input-file)
1224
1178
1225
-
- viscosity<a id="viscosity"></a>
1179
+
- msst_vis<a id="msst-vis"></a>
1226
1180
- *Type*: Real
1227
1181
- *Description*: artificial viscosity (mass/length/time) for MSST.
1228
1182
- *Default*: 0
1229
1183
1230
1184
[back to top](#input-file)
1231
1185
1232
-
- tscale<a id="tscale"></a>
1186
+
- msst_tscale<a id="msst-tscale"></a>
1233
1187
- *Type*: Real
1234
1188
- *Description*: reduction in initial temperature (0~1) used to compress volume in MSST.
1235
1189
- *Default*: 0
1236
1190
1237
1191
[back to top](#input-file)
1238
1192
1239
-
- damp<a id="damp"></a>
1193
+
- msst_qmass<a id="msst-qmass"></a>
1194
+
- *Type*: Double
1195
+
- *Description*: Inertia of extended system variable. Used only when md_type is 4, you should set a number which is larger than 0. Note that Qmass of NHC is set by md_tfreq.
1196
+
- *Default*: No default
1197
+
1198
+
[back to top](#input-file)
1199
+
1200
+
- md_damp<a id="md-damp"></a>
1240
1201
- *Type*: Real
1241
1202
- *Description*: damping parameter (fs) used to add force in Langevin method.
0 commit comments