extracting forces and energies for lammps data #223
Replies: 4 comments 6 replies
-
Currently dpdata does not support extracting labels from lammps output. You are welcome to contribute. |
Beta Was this translation helpful? Give feedback.
-
thanks for your response! is there still a way to extract the forces from the dump file? |
Beta Was this translation helpful? Give feedback.
-
One may implement the reading of forces similar to the reading of coordinates. Lines 54 to 85 in 24ff734 |
Beta Was this translation helpful? Give feedback.
-
yeah that's what I've been trying, writing the force coordinates to a dump file and then reading them through dpdata. But while doing that I'm getting this error and I can't load the dump file
I'll try to look into the code and see if I can make it work somehow! |
Beta Was this translation helpful? Give feedback.
-
Hi all,
I had a question about extracting forces and energies from lammps simulation data for dpata. I am able to get the coords.raw, box.raw and type.raw from the trajectory dump file. My question is if there's any specific format dpdata requires for forces and energies. I have been dumping the fx, fy and fz forces in a dump file but when I try to load that using dpdata I get this error:
ValueError: 'xs' is not in list
Same with energy, I have energy output in log.lammps and out.lammps but not sure how to extract that with dpdata either. Would appreciate your help in extracting all the information for creating the raw files.
Thanks,
Nisarg
Beta Was this translation helpful? Give feedback.
All reactions