ai2_kit.domain.dpff module#
- ai2_kit.domain.dpff.dump_dplr_lammps_data(fp, atoms: Atoms, type_map: List[str], sel_type: List[int], sys_charge_map: List[float], model_charge_map: List[float])[source]#
dump atoms to LAMMPS data file for DPLR the naming convention of params follows Deepmd-Kit’s
about dplr: https://docs.deepmodeling.com/projects/deepmd/en/master/model/dplr.html about fitting tensor: https://docs.deepmodeling.com/projects/deepmd/en/master/model/train-fitting-tensor.html
- Parameters:
fp – file pointer
type_map – the type map of atom type, for example, [O,H]
sel_type – the selected type of atom, for example, [0] means atom type 0, aka O is selected
sys_charge_map – the charge map of atom in system, for example, [6, 1]
model_charge_map – the charge map of atom in model, for example, [-8]
- ai2_kit.domain.dpff.get_pbc_atomic_efield(dp_sys, extended_coords, extended_charges, ewald_h, ewald_beta)[source]#