Multiwfn forum

Multiwfn official website: //www.umsyar.com/multiwfn. Multiwfn forum in Chinese: http://bbs.keinsci.com/wfn

You are not logged in.

#12022-05-04 23:44:20

Hans
Member
Registered: 2018-10-24
Posts: 10

Extract coordinates from fragments in batches

Best regards. I want to make use of the sub function 0 (custom operation) of the main function 5 (calc. grid data) of Multiwfn for each point of a reaction coordinate, my problem is to extract the coordinates of the fragments from a file containing the coordinates of the molecular system for each point of the IRC (for example from a xyz format file), see attached image.
I tried to do this using BATCH commands, but I am not very good at this. I don't know if you could provide me with a suitable BATCH program for this purpose.
PS: I am a Windows user only.
Thanks in advance.


figure.png

Offline

#22022-05-05 02:57:08

sobereva
Tian Lu (Multiwfn developer)
From: Beijing
Registered: 2017-09-11
Posts: 1,773
Website

Re: Extract coordinates from fragments in batches

You may use geometry operation function in Multiwfn to realize this. For example, you want to extract atoms 2,5-9 from old.xyz to new.xyz, you can boot up Multiwfn and input

old.xyz
300
7 // Geometry operation
17 // Crop some atoms
2,5-9
-1 // Save current geometry to a .xyz file
new.xyz

Now you have new.xyz in current folder. You can use your script to automatically run above commands for a batch of systems.

Offline

Board footer

Baidu
map