Skip to content

Commit bdbc9bd

Browse files
author
Shashikant Kumar
committed
Added cyclix tests
1 parent 2a8c68f commit bdbc9bd

18 files changed

+4200
-1
lines changed

ChangeLog

+5
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,11 @@
33
-Name
44
-changes
55

6+
--------------
7+
March 20, 2025
8+
Name: Shashikant Kumar
9+
Changes: (tests/mlff/)
10+
1. Added cyclic mlff tests in the test suite
611

712
--------------
813
Dec 11, 2024

tests/SPARC_testing_script.py

+11-1
Original file line numberDiff line numberDiff line change
@@ -536,6 +536,16 @@
536536
SYSTEMS["Tags"].append(['bulk', 'gga', 'nonorth', 'mlff1', 'md_nvkg'])
537537
SYSTEMS["Tols"].append([1e-5, 5e-4, 0.5]) # E_tol(Ha/atom), F_tol(Ha/Bohr), stress_tol(%)
538538
##################################################################################################################
539+
SYSTEMS["systemname"].append('HfSe2_cyclix_mlff')
540+
SYSTEMS["directory"].append("./mlff/")
541+
SYSTEMS["Tags"].append(['bulk', 'gga', 'nonorth', 'mlff1', 'md_nvkg','cyclix'])
542+
SYSTEMS["Tols"].append([1e-5, 5e-4, 0.5]) # E_tol(Ha/atom), F_tol(Ha/Bohr), stress_tol(%)
543+
##################################################################################################################
544+
SYSTEMS["systemname"].append('WSe2_cyclix_mlff')
545+
SYSTEMS["directory"].append("./mlff/")
546+
SYSTEMS["Tags"].append(['bulk', 'gga', 'nonorth', 'mlff1', 'md_nvkg','cyclix'])
547+
SYSTEMS["Tols"].append([1e-5, 5e-4, 0.5]) # E_tol(Ha/atom), F_tol(Ha/Bohr), stress_tol(%)
548+
##################################################################################################################
539549
# < Uncomment 3 lines below and fill in the details for the new systems>
540550
# SYSTEMS["systemname"].append('??type the system name??')
541551
# SYSTEMS["Tols"].append([??type the E_tol, F_tol and stress_tol separated by comma??]) # E_tol(Ha/atom), F_tol(Ha/Bohr), stress_tol(%)
@@ -2693,7 +2703,7 @@ def WriteReport(data_info, systems, isparallel, ifVHQ, isorient):
26932703
################### Printing #############################################################
26942704
f_report = open("Report.txt",'w')
26952705
f_report.write("*************************************************************************** \n")
2696-
f_report.write("* TEST REPORT (Version 19 August 2024) *\n* Date: "+date_time+" * \n")
2706+
f_report.write("* TEST REPORT (Version 20 March 2025) *\n* Date: "+date_time+" * \n")
26972707
f_report.write("*************************************************************************** \n")
26982708
f_report.write("Tests Passed: "+str(passtests)+"/"+str(passtests+failtests)+"\n")
26992709
f_report.write("Tests Failed: "+str(failtests)+"/"+str(passtests+failtests)+"\n")
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
# nprocs: 24
2+
CELL: 29.9559973012 0.0436332312999 14.1131806102
3+
FD_GRID: 125 51 60
4+
KPOINT_GRID: 1 1 1
5+
KPOINT_SHIFT: 0 0 0
6+
CHEB_DEGREE: 60
7+
BC: D C P
8+
EXCHANGE_CORRELATION: GGA_PBE
9+
TOL_SCF: 1e-4
10+
SMEARING: 0.001
11+
ELEC_TEMP_TYPE: fd
12+
CALC_STRESS: 1
13+
PRINT_FORCES: 1
14+
MIXING_VARIABLE: potential
15+
MIXING_PRECOND: none
16+
17+
FIX_RAND: 1
18+
19+
MD_FLAG: 1
20+
ION_TEMP: 1500
21+
MD_METHOD: NVK_G
22+
MD_NSTEP: 10
23+
MD_TIMESTEP: 2.0
24+
25+
# MLFF parameters
26+
MLFF_FLAG: 1
27+
MLFF_ANGULAR_BASIS: 6 # Lmax (maximum order of spherical harmonics in SOAP)
28+
MLFF_RADIAL_BASIS: 8 # N_R (Number of raddial basis functions in SOAP)
29+
MLFF_RCUT_SOAP: 10 # (Cutoff radius for the SOAP descriptor)
30+
31+
MLFF_MODEL_FOLDER: ./
32+
MLFF_INITIAL_STEPS_TRAIN: 4 # Initial number of MD steps where DFT calculation is imposed
33+
MLFF_MAX_STR_STORE: 500 # This is the maximum number of structure for which memory is allocated to store MLFF data
34+
MLFF_MAX_CONFIG_STORE: 5000 # THis is the maximum number of atomic descriptors per element type that is stored
35+
MLFF_SCALE_FORCE: 1.0 # Scaling of force relative to energy
36+
MLFF_SCALE_STRESS: 1.0 # Scaling of stress relative to energy
37+
MLFF_REGUL_MIN: 1.00E-14 # regularization hyperparameters are chosen such that condition number of matrix to be inverted is less than 1/REGUL_MIN_MLFF
38+
MLFF_FACTOR_MULTIPLY_SIGMATOL: 1.001 # Parameter to control sigma_tol (always use >1) closer to will result in more DFT calulations
39+
MLFF_IF_SPARSIFY_BEFORE_TRAIN: 1 # choose 0 if there is no sparsification just before training
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
ATOM_TYPE: Hf
2+
N_TYPE_ATOM: 4
3+
PSEUDO_POT: ../../../../psps/72_Hf_12_2.3_3.0_pbe_n_v1.0.psp8
4+
COORD_FRAC:
5+
9.4473875707 0.9995707982 0.4999924511
6+
9.4473875707 0.4995707982 0.2599924511
7+
9.4473875707 0.9995707982 0.9999924511
8+
9.4473875707 0.4995707982 0.74999924511
9+
10+
ATOM_TYPE: Se
11+
N_TYPE_ATOM: 8
12+
PSEUDO_POT: ../../../../psps/34_Se_16_1.9_2.1_pbe_n_v1.0.psp8
13+
COORD_FRAC:
14+
9.3474910648 0.3334936712 0.49999887801
15+
9.3474910648 0.8334936712 0.24999887801
16+
9.5464650969 0.6667939784 0.0000187688
17+
9.5464650969 0.1667939784 0.25000187688
18+
9.3474910648 0.3334936712 0.99999887801
19+
9.3474910648 0.8334936712 0.74999887801
20+
9.5464650969 0.6667939784 0.5000187688
21+
9.5464650969 0.1667939784 0.75000187688

0 commit comments

Comments
 (0)