Skip to content

Commit 31022d3

Browse files
authored
Merge pull request brucefan1983#835 from BBBuZHIDAO/ILP_NEP_GR_HBN
A hybrid potential "NEP+ILP" for graphene and h-BN
2 parents 716032a + c2f4a37 commit 31022d3

File tree

4 files changed

+2346
-0
lines changed

4 files changed

+2346
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
ilp_nep_gr_hbn 4 C H B N
2+
0
3+
3.2058 7.5111 1.2353 0.0000153 37.5304 15.4999 0.7954 3.6814 25.7145 1.0 2.0 16.0
4+
2.6429 12.9141 1.0203 0.9750 25.3410 15.2229 0.8116 3.8873 5.6875 1.0 2.0 16.0
5+
3.3037 10.5441 2.9267 16.7200 0.3572 15.3053 0.7002 3.0973 30.1629 1.0 2.0 16.0
6+
3.2536 8.8259 1.0595 18.3447 21.9136 15.0000 0.7235 3.0131 19.0631 1.0 2.0 16.0
7+
2.6429 12.9141 1.0203 0.9750 25.3410 15.2229 0.8116 3.8873 5.6875 1.0 2.0 16.0
8+
3.9745 6.5380 1.0806 0.6701 0.8334 15.0224 0.7491 2.7672 1.6160 1.0 2.0 16.0
9+
2.7187 9.2146 3.2731 14.0157 14.7605 15.0848 0.7768 3.6409 7.9642 1.0 2.0 16.0
10+
2.7535 8.2267 3.1064 0.8074 0.3944 15.0332 0.7451 2.7336 3.8462 1.0 2.0 16.0
11+
3.3037 10.5441 2.9267 16.7200 0.3572 15.3053 0.7002 3.0973 30.1629 1.0 2.0 16.0
12+
2.7187 9.2146 3.2731 14.0157 14.7605 15.0848 0.7768 3.6409 7.9642 1.0 2.0 16.0
13+
3.1437 9.8251 1.9364 2.7848 14.4960 15.1993 0.7834 3.6829 49.4980 1.0 2.0 16.0
14+
3.2953 7.2243 2.8727 1.3715 0.4347 14.5946 0.8044 3.7657 24.6700 1.0 2.0 16.0
15+
3.2536 8.8259 1.0595 18.3447 21.9136 15.0000 0.7235 3.0131 19.0631 1.0 2.0 16.0
16+
2.7535 8.2267 3.1064 0.8074 0.3944 15.0332 0.7451 2.7336 3.8462 1.0 2.0 16.0
17+
3.2953 7.2243 2.8727 1.3715 0.4347 14.5946 0.8044 3.7657 24.6700 1.0 2.0 16.0
18+
3.4432 7.0845 1.7473 2.9140 46.5086 15.0204 0.8008 3.5518 14.8102 1.0 2.0 16.0

src/force/force.cu

+6
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ The driver class calculating force and related quantities.
2626
#include "tersoff1989.cuh"
2727
#include "tersoff_mini.cuh"
2828
#include "ilp_tmd_sw.cuh"
29+
#include "ilp_nep_gr_hbn.cuh"
2930
#include "utilities/common.cuh"
3031
#include "utilities/error.cuh"
3132
#include "utilities/gpu_macro.cuh"
@@ -133,6 +134,11 @@ void Force::parse_potential(
133134
check_types(param[1]);
134135
} else if (strcmp(potential_name, "lj") == 0) {
135136
potential.reset(new LJ(fid_potential, num_types, number_of_atoms));
137+
} else if (strcmp(potential_name, "ilp_nep_gr_hbn") == 0) {
138+
if (num_param != 3) {
139+
PRINT_INPUT_ERROR("potential should contain ILP potential file and NEP potential file.\n");
140+
}
141+
potential.reset(new ILP_NEP_GR_HBN(fid_potential, param[2], num_types, number_of_atoms));
136142
} else if (strcmp(potential_name, "ilp_tmd_sw") == 0) {
137143
if (num_param != 3) {
138144
PRINT_INPUT_ERROR("potential should contain ILP potential file and SW potential file.\n");

0 commit comments

Comments
 (0)