计算化学公社
标题:
GROMACS格式的文件转成LAMMPS格式的工具GRO2LAM
[打印本页]
作者Author:
sobereva
时间:
2019-6-11 05:41
标题:
GROMACS格式的文件转成LAMMPS格式的工具GRO2LAM
JMM上刚发表的GROMACS格式的文件转成LAMMPS格式的工具GRO2LAM
网址:
https://github.com/hernanchavezthielemann/GRO2LAM
原文:
(, 下载次数 Times of downloads: 439)
上传 Uploaded
点击下载Click to download
作者Author:
少年爱吃地三鲜
时间:
2019-6-11 08:08
真的太好了!收藏!
作者Author:
diaok
时间:
2019-6-11 14:51
曾经打算自己开坑写一个,但是python学的太渣没法保证各种兼容性,只在自己勉强能用的阶段
作者Author:
tjuptz
时间:
2019-10-11 20:35
请问有大佬测试或使用过这个工具吗,可靠性如何呢?
作者Author:
huangjin
时间:
2020-4-4 20:50
太好了,谢谢分享!
作者Author:
bobosiji
时间:
2022-7-4 19:13
如果某人只会gmx,但想用lammps里面的力场,请问这个工具有用么?
粗看了下jmm的原文,以及github里的说明。似乎该工具支持的力场其实都是gmx能用的,,,
如果力场用gmx就能跑的话,把输入文件转成lammps有何意义呢。。。
作者Author:
neocc
时间:
2022-12-15 16:41
请问楼主有lammps2gromacs的转换工具嚒
作者Author:
sobereva
时间:
2022-12-18 11:22
neocc 发表于 2022-12-15 16:41
请问楼主有lammps2gromacs的转换工具嚒
可以用InterMol
作者Author:
neocc
时间:
2022-12-19 00:39
sobereva 发表于 2022-12-18 11:22
可以用InterMol
社长,我试了最新的Intermol,测试gromacs的时候出现如下报错,会影响lmp2gmx转换嚒
INFO 2022-12-19 00:35:43 Converting dihedral1_vacuum
INFO 2022-12-19 00:35:43 Converting dihedral2_vacuum
INFO 2022-12-19 00:35:43 Converting dihedral3_vacuum
INFO 2022-12-19 00:35:43 Converting dihedral4_vacuum
INFO 2022-12-19 00:35:43 Converting dihedral5_vacuum
INFO 2022-12-19 00:35:43 Converting dihedral9_vacuum
Traceback (most recent call last):
File "test_all.py", line 96, in <module>
testing_function(args['compute_energies'], args['output_dir'])
File "test_all.py", line 24, in test_gromacs_unit
output_dir=output_dir)
File "~/anaconda3/envs/vaspkit/lib/python3.6/site-packages/intermol/tests/testing_tools.py", line 90, in convert_one_to_all
output_dir=output_dir)
File "~/anaconda3/envs/vaspkit/lib/python3.6/site-packages/intermol/tests/testing_tools.py", line 219, in _convert_from_engine
diff = convert.main(flags)
File "~/anaconda3/envs/vaspkit/lib/python3.6/site-packages/intermol/convert.py", line 223, in main
system, prefix, gro_in, top_in = _load_gromacs(gromacs_files=args['gro_in'])
File "~/anaconda3/envs/vaspkit/lib/python3.6/site-packages/intermol/convert.py", line 573, in _load_gromacs
system = gmx.load(top_in, gro_in)
File "~/anaconda3/envs/vaspkit/lib/python3.6/site-packages/intermol/gromacs/gromacs_parser.py", line 38, in load
return parser.read()
File "~/anaconda3/envs/vaspkit/lib/python3.6/site-packages/intermol/gromacs/gromacs_parser.py", line 416, in read
self.process_file(self.top_filename)
File "~/anaconda3/envs/vaspkit/lib/python3.6/site-packages/intermol/gromacs/gromacs_parser.py", line 1142, in process_file
self.process_line(top_filename, '{0} {1}'.format(append, line))
File "~/anaconda3/envs/vaspkit/lib/python3.6/site-packages/intermol/gromacs/gromacs_parser.py", line 1281, in process_line
self.process_dihedraltype(line)
File "~/anaconda3/envs/vaspkit/lib/python3.6/site-packages/intermol/gromacs/gromacs_parser.py", line 1487, in process_dihedraltype
self.gromacs_dihedral_types, self.canonical_dihedral)
File "~/anaconda3/envs/vaspkit/lib/python3.6/site-packages/intermol/gromacs/gromacs_parser.py", line 1509, in process_forcetype
kwds = self.create_kwds_from_entries(fields, gromacs_force_type, offset=n_atoms+1)
File "~/anaconda3/envs/vaspkit/lib/python3.6/site-packages/intermol/gromacs/gromacs_parser.py", line 347, in create_kwds_from_entries
entries, force_class, offset=offset)
File "~/anaconda3/envs/vaspkit/lib/python3.6/site-packages/intermol/forces/forcefunctions.py", line 139, in create_kwds_from_entries
kwds[p] = float(entries[offset+i]) * u[i]
IndexError: list index out of range
复制代码
作者Author:
neocc
时间:
2022-12-19 01:25
打扰社长了,问题已解决,是anaconda的问题
删掉~/anaconda3/envs/vaspkit/lib/python3.6/site-packages/intermol*,下载最新的InterMol-0.1.2,解压进入InterMol-0.1.2文件夹后pip install .
作者Author:
neocc
时间:
2022-12-20 23:23
sobereva 发表于 2022-12-18 11:22
可以用InterMol
lammps 转 gromacs 还是有问题,会有如下报错:
intermol.exceptions.UnimplementedSetting: ['pair_style', 'none'] has not yet been implemented in InterMol for LAMMPS.
https://github.com/shirtsgroup/InterMol/issues/345
开发组好像没经费,摆烂了
欢迎光临 计算化学公社 (http://bbs.keinsci.com/)
Powered by Discuz! X3.3