@@ -827,7 +827,7 @@ def init_LJ_datasets(meGO_ensemble, matrices, pairs14, exclusion_bonds14, args):
827827 # Apply the specific value for this condition
828828 train_dataset .loc [h_condition , "mg_epsilon" ] = 0.0
829829 train_dataset .loc [hh_condition , "mg_epsilon" ] = - train_dataset ["rep" ]
830- train_dataset .loc [ho_mask , "mg_epsilon" ] = 0.11
830+ train_dataset .loc [ho_mask , "mg_epsilon" ] = type_definitions . mg_eps_ho
831831
832832 train_dataset .dropna (subset = ["mg_sigma" ], inplace = True )
833833
@@ -848,8 +848,10 @@ def generate_OO_LJ(meGO_ensemble):
848848 if atomtype == "O" or atomtype == "OM" or atomtype == "OA"
849849 ]
850850 H_H_sbtype = [sbtype for sbtype , atomtype in meGO_ensemble ["sbtype_type_dict" ].items () if atomtype == "H" ]
851+ N_sbtype = [sbtype for sbtype , atomtype in meGO_ensemble ["sbtype_type_dict" ].items () if atomtype == "N" ]
851852
852853 full_matrix_OH = list (itertools .product (H_H_sbtype , O_OM_OA_sbtype )) + list (itertools .product (O_OM_OA_sbtype , H_H_sbtype ))
854+ full_matrix_ON = list (itertools .product (N_sbtype , O_OM_OA_sbtype )) + list (itertools .product (O_OM_OA_sbtype , N_sbtype ))
853855
854856 # Generate all possible combinations
855857 combinations = list (itertools .product (O_OM_sbtype , repeat = 2 ))
@@ -872,13 +874,20 @@ def generate_OO_LJ(meGO_ensemble):
872874 HH_LJ ["mg_sigma" ] = HH_LJ ["c12" ] ** (1 / 12 )
873875 HH_LJ ["mg_epsilon" ] = - HH_LJ ["c12" ]
874876 HO_LJ = pd .DataFrame (full_matrix_OH , columns = ["ai" , "aj" ])
875- HO_LJ ["c12" ] = 2.249554e-09 * type_definitions .mg_eps
876- HO_LJ ["c6" ] = 9.485893e-05 * type_definitions .mg_eps
877- HO_LJ ["epsilon" ] = type_definitions .mg_eps
877+ HO_LJ ["c12" ] = 4. * type_definitions .mg_eps_ho * type_definitions . mg_sig_ho ** 12
878+ HO_LJ ["c6" ] = 4. * type_definitions .mg_eps_ho * type_definitions . mg_sig_ho ** 6
879+ HO_LJ ["epsilon" ] = type_definitions .mg_eps_ho
878880 HO_LJ ["sigma" ] = (HO_LJ ["c12" ] / HO_LJ ["c6" ]) ** (1 / 6 )
879881 HO_LJ ["mg_sigma" ] = (HO_LJ ["c12" ] / HO_LJ ["c6" ]) ** (1 / 6 )
880- HO_LJ ["mg_epsilon" ] = type_definitions .mg_eps
881- rc_LJ = pd .concat ([OO_LJ , HO_LJ , HH_LJ ], axis = 0 )
882+ HO_LJ ["mg_epsilon" ] = type_definitions .mg_eps_no
883+ NO_LJ = pd .DataFrame (full_matrix_ON , columns = ["ai" , "aj" ])
884+ NO_LJ ["c12" ] = 4. * type_definitions .mg_eps_no * type_definitions .mg_sig_no ** 12
885+ NO_LJ ["c6" ] = 4. * type_definitions .mg_eps_no * type_definitions .mg_sig_no ** 6
886+ NO_LJ ["epsilon" ] = type_definitions .mg_eps_no
887+ NO_LJ ["sigma" ] = (NO_LJ ["c12" ] / NO_LJ ["c6" ]) ** (1 / 6 )
888+ NO_LJ ["mg_sigma" ] = (NO_LJ ["c12" ] / NO_LJ ["c6" ]) ** (1 / 6 )
889+ NO_LJ ["mg_epsilon" ] = type_definitions .mg_eps_no
890+ rc_LJ = pd .concat ([OO_LJ , HO_LJ , HH_LJ , NO_LJ ], axis = 0 )
882891 rc_LJ ["type" ] = 1
883892 rc_LJ ["same_chain" ] = False
884893 rc_LJ ["source" ] = "mg"
0 commit comments