Skip to content

Commit 6b3bab7

Browse files
authored
Merge pull request brucefan1983#1265 from brucefan1983/zbl_typewise_correction
rc_inner=0 for typewise zbl
2 parents 49a2f18 + e393428 commit 6b3bab7

File tree

10 files changed

+10
-10
lines changed

10 files changed

+10
-10
lines changed

doc/nep/input_parameters/use_typewise_cutoff_zbl.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,6 @@ The syntax is::
1212

1313
with one optional (dimensionless) parameter :attr:`<factor>` that defaults to 0.65.
1414

15-
If this keyword is present, the outer ZBL cutoff between two elements is the minimum between the global outer ZBL cutoff :math:`r_\mathrm{outer}^\mathrm{ZBL}` and :attr:`<factor>` times of the sum of the covalent radii of the two elements, and the inner ZBL cutoff is half of the outer one.
15+
If this keyword is present, the outer ZBL cutoff between two elements is the minimum between the global outer ZBL cutoff :math:`r_\mathrm{outer}^\mathrm{ZBL}` and :attr:`<factor>` times of the sum of the covalent radii of the two elements, and the inner ZBL cutoff is always set to 0.
1616

1717
By default, this keyword is not in effect.

doc/nep/input_parameters/zbl.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ The syntax is as follows::
1212

1313
zbl <cutoff>
1414

15-
Here, :attr:`<cutoff>` is a real number that specifies the "outer" cutoff :math:`r_\mathrm{c}^\mathrm{ZBL-outer}`, below which the :term:`NEP` pair potential is being splined to the :term:`ZBL` potential.
15+
Here, :attr:`<cutoff>` is a real number that specifies the "outer" cutoff :math:`r_\mathrm{c}^\mathrm{ZBL-outer}`, beyond which the :term:`ZBL` potential is zero.
1616
The "inner" cutoff of the :term:`ZBL` potential, below which value the pair interaction is completely given by the :term:`ZBL` potential, is fixed to half of the outer cutoff, :math:`r_\mathrm{c}^\mathrm{ZBL-inner} = r_\mathrm{c}^\mathrm{ZBL-outer} /2`, which we have empirically found to be a reasonable choice.
1717

1818
When this keyword is absent, the :term:`ZBL` potential will not be enabled and the value of :math:`r_\mathrm{c}^\mathrm{ZBL-outer}` is irrelevant.

src/force/nep.cu

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -960,7 +960,7 @@ static __global__ void find_force_ZBL(
960960
rc_outer = min(
961961
(COVALENT_RADIUS[zi - 1] + COVALENT_RADIUS[zj - 1]) * paramb.typewise_cutoff_zbl_factor,
962962
rc_outer);
963-
rc_inner = rc_outer * 0.5f;
963+
rc_inner = 0.0f;
964964
}
965965
find_f_and_fp_zbl(zizj, a_inv, rc_inner, rc_outer, d12, d12inv, f, fp);
966966
}

src/force/nep_charge.cu

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1292,7 +1292,7 @@ static __global__ void find_force_ZBL(
12921292
rc_outer = min(
12931293
(COVALENT_RADIUS[zi - 1] + COVALENT_RADIUS[zj - 1]) * paramb.typewise_cutoff_zbl_factor,
12941294
rc_outer);
1295-
rc_inner = rc_outer * 0.5f;
1295+
rc_inner = 0.0f;
12961296
}
12971297
find_f_and_fp_zbl(zizj, a_inv, rc_inner, rc_outer, d12, d12inv, f, fp);
12981298
}

src/force/nep_charge_small_box.cuh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -994,7 +994,7 @@ static __global__ void find_force_ZBL_small_box(
994994
rc_outer = min(
995995
(COVALENT_RADIUS[zi - 1] + COVALENT_RADIUS[zj - 1]) * paramb.typewise_cutoff_zbl_factor,
996996
rc_outer);
997-
rc_inner = rc_outer * 0.5f;
997+
rc_inner = 0.0f;
998998
}
999999
find_f_and_fp_zbl(zizj, a_inv, rc_inner, rc_outer, d12, d12inv, f, fp);
10001000
}

src/force/nep_multigpu.cu

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1206,7 +1206,7 @@ static __global__ void find_force_ZBL(
12061206
rc_outer = min(
12071207
(COVALENT_RADIUS[zi - 1] + COVALENT_RADIUS[zj - 1]) * paramb.typewise_cutoff_zbl_factor,
12081208
rc_outer);
1209-
rc_inner = rc_outer * 0.5f;
1209+
rc_inner = 0.0f;
12101210
}
12111211
find_f_and_fp_zbl(zizj, a_inv, rc_inner, rc_outer, d12, d12inv, f, fp);
12121212
}

src/force/nep_small_box.cuh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -669,7 +669,7 @@ static __global__ void find_force_ZBL_small_box(
669669
rc_outer = min(
670670
(COVALENT_RADIUS[zi - 1] + COVALENT_RADIUS[zj - 1]) * paramb.typewise_cutoff_zbl_factor,
671671
rc_outer);
672-
rc_inner = rc_outer * 0.5f;
672+
rc_inner = 0.0f;
673673
}
674674
find_f_and_fp_zbl(zizj, a_inv, rc_inner, rc_outer, d12, d12inv, f, fp);
675675
}

src/main_nep/nep.cu

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -670,7 +670,7 @@ static __global__ void find_force_ZBL(
670670
rc_outer = min(
671671
(COVALENT_RADIUS[zi - 1] + COVALENT_RADIUS[zj - 1]) * paramb.typewise_cutoff_zbl_factor,
672672
rc_outer);
673-
rc_inner = rc_outer * 0.5f;
673+
rc_inner = 0.0f;
674674
}
675675
find_f_and_fp_zbl(zizj, a_inv, rc_inner, rc_outer, d12, d12inv, f, fp);
676676
}

src/main_nep/nep_charge.cu

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -916,7 +916,7 @@ static __global__ void find_force_ZBL(
916916
rc_outer = min(
917917
(COVALENT_RADIUS[zi - 1] + COVALENT_RADIUS[zj - 1]) * paramb.typewise_cutoff_zbl_factor,
918918
rc_outer);
919-
rc_inner = rc_outer * 0.5f;
919+
rc_inner = 0.0f;
920920
}
921921
find_f_and_fp_zbl(zizj, a_inv, rc_inner, rc_outer, d12, d12inv, f, fp);
922922
}

src/mc/nep_energy.cu

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -452,7 +452,7 @@ static __global__ void find_energy_zbl(
452452
rc_outer = min(
453453
(COVALENT_RADIUS[zi - 1] + COVALENT_RADIUS[zj - 1]) * paramb.typewise_cutoff_zbl_factor,
454454
rc_outer);
455-
rc_inner = rc_outer * 0.5f;
455+
rc_inner = 0.0f;
456456
}
457457
find_f_and_fp_zbl(zizj, a_inv, rc_inner, rc_outer, d12, d12inv, f, fp);
458458
}

0 commit comments

Comments
 (0)