dpgen.generator package#
Subpackages#
- dpgen.generator.lib package
- Submodules
- dpgen.generator.lib.abacus_scf module
- dpgen.generator.lib.calypso_check_outcar module
- dpgen.generator.lib.calypso_run_model_devi module
- dpgen.generator.lib.calypso_run_opt module
- dpgen.generator.lib.cp2k module
- dpgen.generator.lib.cvasp module
- dpgen.generator.lib.ele_temp module
- dpgen.generator.lib.gaussian module
- dpgen.generator.lib.lammps module
- dpgen.generator.lib.make_calypso module
- dpgen.generator.lib.parse_calypso module
- dpgen.generator.lib.pwmat module
- dpgen.generator.lib.pwscf module
- dpgen.generator.lib.run_calypso module
- dpgen.generator.lib.siesta module
- dpgen.generator.lib.utils module
- dpgen.generator.lib.vasp module
Submodules#
dpgen.generator.arginfo module#
- dpgen.generator.arginfo.fp_style_amber_diff_args() list[Argument] [source]#
Arguments for FP style amber/diff.
- Returns:
- list[dargs.Argument]
list of amber/diff fp style arguments
- dpgen.generator.arginfo.fp_style_custom_args() list[Argument] [source]#
Arguments for FP style custom.
- Returns:
- list[dargs.Argument]
list of custom fp style arguments
- dpgen.generator.arginfo.fp_style_gaussian_args() list[Argument] [source]#
Gaussian fp style arguments.
- Returns:
- list[dargs.Argument]
list of Gaussian fp style arguments
- dpgen.generator.arginfo.fp_style_pwscf_args() list[Argument] [source]#
Arguments for FP style pwscf (Quantum Espresso).
- Returns:
- list[dargs.Argument]
list of pwscf fp style arguments
- dpgen.generator.arginfo.run_jdata_arginfo() Argument [source]#
Argument information for dpgen run mdata.
- Returns:
- Argument
argument information
dpgen.generator.run module#
init: data iter:
00.train 01.model_devi 02.vasp 03.data.
- dpgen.generator.run.dump_to_deepmd_raw(dump, deepmd_raw, type_map, fmt='gromacs/gro', charge=None)[source]#
- dpgen.generator.run.make_fp(iter_index, jdata, mdata)[source]#
Select the candidate strutures and make the input file of FP calculation.
- Parameters:
- iter_indexint
iter index
- jdatadict
Run parameters.
- mdatadict
Machine parameters.
- dpgen.generator.run.make_fp_amber_diff(iter_index: int, jdata: dict)[source]#
Run amber twice to calculate high-level and low-level potential, and then generate difference between them.
Besides AMBER, one needs to install dpamber package, which is avaiable at njzjz/dpamber
Currently, it should be used with the AMBER model_devi driver.
- Parameters:
- iter_indexint
iter index
- jdatadict
- Run parameters. The following parameters are used in this method:
- mdin_prefixstr
The path prefix to AMBER mdin files
- qm_regionlist[str]
AMBER mask of the QM region. Each mask maps to a system.
- qm_chargelist[int]
Charge of the QM region. Each charge maps to a system.
- high_levelstr
high level method
- low_levelstr
low level method
- fp_paramsdict
- This parameters includes:
- high_level_mdinstr
High-level AMBER mdin file. %qm_theory%, %qm_region%, and %qm_charge% will be replace.
- low_level_mdinstr
Low-level AMBER mdin file. %qm_theory%, %qm_region%, and %qm_charge% will be replace.
- parm7_prefixstr
The path prefix to AMBER PARM7 files
- parm7list[str]
List of paths to AMBER PARM7 files. Each file maps to a system.
References
[1]Development of Range-Corrected Deep Learning Potentials for Fast, Accurate Quantum Mechanical/Molecular Mechanical Simulations of Chemical Reactions in Solution, Jinzhe Zeng, Timothy J. Giese, Şölen Ekesan, and Darrin M. York, Journal of Chemical Theory and Computation 2021 17 (11), 6993-7009
- dpgen.generator.run.make_fp_calculation(iter_index, jdata, mdata)[source]#
Make the input file of FP calculation.
- Parameters:
- iter_indexint
iter index
- jdatadict
Run parameters.
- mdatadict
Machine parameters.
- dpgen.generator.run.make_fp_custom(iter_index, jdata)[source]#
Make input file for customized FP style.
Convert the POSCAR file to custom format.
- Parameters:
- iter_indexint
iter index
- jdatadict
Run parameters.
- dpgen.generator.run.post_fp_custom(iter_index, jdata)[source]#
Post fp for custom fp. Collect data from user-defined output_fn.
- Parameters:
- iter_indexint
The index of the current iteration.
- jdatadict
The parameter data.
- dpgen.generator.run.revise_lmp_input_dump(lmp_lines, trj_freq, model_devi_merge_traj=False)[source]#
- dpgen.generator.run.revise_lmp_input_model(lmp_lines, task_model_list, trj_freq, deepmd_version='1', use_ele_temp=0)[source]#