Skip to content

Commit 83e480a

Browse files
committed
Modify integrate tests for elastic property calculation
1 parent 7409d2a commit 83e480a

9 files changed

Lines changed: 7620 additions & 31 deletions

File tree

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
INPUT_PARAMETERS
2+
calculation scf
3+
symmetry 1
4+
ecutwfc 100
5+
scf_thr 1e-07
6+
scf_nmax 100
7+
smearing_method gauss
8+
smearing_sigma 0.015
9+
mixing_type broyden
10+
mixing_beta 0.8
11+
basis_type lcao
12+
ks_solver genelpa
13+
kspacing 0.14
14+
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
ATOMIC_SPECIES
2+
Si 28.0855 Si.upf upf201
3+
4+
NUMERICAL_ORBITAL
5+
Si_gga_7au_100Ry_2s2p1d.orb
6+
7+
LATTICE_CONSTANT
8+
1.8897260000
9+
10+
LATTICE_VECTORS
11+
2.7373158181 2.7373158181 -0.0000000000
12+
2.7373158181 0.0000000000 2.7373158181
13+
0.0000000000 2.7373158181 2.7373158181
14+
15+
ATOMIC_POSITIONS
16+
Direct
17+
18+
Si #label
19+
0.0000 #magnetism
20+
2 #number of atoms
21+
0.0000000000 0.0000000000 0.0000000000 m 1 1 1
22+
0.2500000000 0.2500000000 0.2500000000 m 1 1 1
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
../../pp_orbs/Si.upf
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
../../pp_orbs/Si_gga_7au_100Ry_2s2p1d.orb

tests/integrate_test/data/ref_results.json

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -155,16 +155,16 @@
155155
"test_abacus_cal_elastic_si_prim":
156156
{
157157
"result": {
158-
"elastic_tensor": [[112.52866370100037, 186.4920636728006, 149.58784495160054, 52.35257766160018, 0.0, 0.0],
159-
[167.98341593440057, 131.03733348100042, 149.58785530040055, -26.189682495000095, 45.33066025400016, -32.036729146200116],
160-
[167.98341597780063, 131.03733342940046, 149.58785529980045, -26.189682564600087, -45.33066037380015, 32.03672922980011],
161-
[154.93534577879998, -52.200659693600024, -104.1306408299, 73.2265804774, 0.0, 0.0],
162-
[-0.46194834079999847, 103.19663438510003, -104.13064079950003, -36.6436901792, 63.3973322095, 89.65960380920001],
163-
[-0.4619483611999965, -104.13018973480001, 103.19618329940002, 36.64496669100001, 63.404224003800024, 89.65473012850003]],
164-
"bulk_modulus": 149.5361979720227,
165-
"shear_modulus": 39.08813446687997,
166-
"young_modulus": 107.86584380090542,
167-
"poisson_ratio": 0.3797773323296093
158+
"elastic_tensor": [[155.82247639400057, 58.0540830928002, 58.0540830928002, 0.0, 0.0, 0.0],
159+
[58.0540830928002, 155.82247639400057, 58.0540830928002, 0.0, 0.0, 0.0],
160+
[58.05408309260019, 58.05408309260019, 155.82247639400057, 0.0, 0.0, 0.0],
161+
[0.0, 0.0, 0.0, 76.44323239550002, 0.0, 0.0],
162+
[0.0, 0.0, 0.0, 0.0, 76.44323249340002, 0.0],
163+
[0.0, 0.0, 0.0, 0.0, 0.0, 76.44323249340002]],
164+
"bulk_modulus": 90.64354752648921,
165+
"shear_modulus": 65.41961813670008,
166+
"young_modulus": 158.19995596965313,
167+
"poisson_ratio": 0.20911708502394763
168168
}
169169
},
170170
"test_abacus_eos_nacl_cubic":
@@ -283,16 +283,16 @@
283283
"test_run_abacus_calculation_elastic_properties":
284284
{
285285
"result": {
286-
"elastic_tensor": [[72.94374269880102, 138.0565070552012, 105.5018483800011, 46.04093898820017, 0.0, 0.0],
287-
[121.77926875280127, 89.22098088080104, 105.50184831860112, -23.020529476400085, 39.87239985140014, -28.193571419200104],
288-
[121.77926874400121, 89.22098089020113, 105.50184831940109, -23.020529463600077, -39.87239982920014, 28.193571403200107],
289-
[113.54466132069999, -37.8367804689, -75.69930212769998, 53.521760329299994, 0.0, 0.0],
290-
[0.0034711007000251463, 75.70441232010002, -75.6993046768, -26.761075965600003, 46.350214400500015, 65.5421882798],
291-
[0.003470167799993673, -75.69991824160002, 75.70502684200004, 26.759338535300007, 46.347200869400005, 65.54431910830002]],
292-
"bulk_modulus": 105.50069933775669,
293-
"shear_modulus": 27.657016643966653,
294-
"young_modulus": 76.30340229101337,
295-
"poisson_ratio": 0.37945829937624276
286+
"elastic_tensor": [[155.82247639400057, 58.0540830928002, 58.0540830928002, 0.0, 0.0, 0.0],
287+
[58.0540830928002, 155.82247639400057, 58.0540830928002, 0.0, 0.0, 0.0],
288+
[58.05408309260019, 58.05408309260019, 155.82247639400057, 0.0, 0.0, 0.0],
289+
[0.0, 0.0, 0.0, 76.44323239550002, 0.0, 0.0],
290+
[0.0, 0.0, 0.0, 0.0, 76.44323249340002, 0.0],
291+
[0.0, 0.0, 0.0, 0.0, 0.0, 76.44323249340002]],
292+
"bulk_modulus": 90.64354752648921,
293+
"shear_modulus": 65.41961813670008,
294+
"young_modulus": 158.19995596965313,
295+
"poisson_ratio": 0.20911708502394763
296296
}
297297
},
298298
"test_run_abacus_calculation_phonon_dispersion":

0 commit comments

Comments
 (0)