-
Notifications
You must be signed in to change notification settings - Fork 3
Homogenize and clean tutorial 3 #32
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
I am considered using write_restart for this tutorial instead of write_data, for variety. @akohlmey, any preferred suffix for restart files? |
There is no fixed convention, but most common is either restart.<name> or <name>.restart and then variants with the embedded timestep number. I've also seen .rest. Both '.res' and '.bin' are suboptimal choices. ".res" is commonly used for "resource files" that embed icons, images and similar into executables (mostly on Windows though) and ".bin" is the suffix to change LAMMPS native dump files from text mode to binary mode. |
OK. |
|
I am not using binary restarts usually, so I am just now discovering that I can see that this is a documented behavior, but I was wondering is there was a reason for that, or if it was just never implemented? I note that this is not a problem for the tutorial, on the contrary, it is a good opportunity to warn the users that not everything is stored in the .restart file. |
|
I am interested in printing the angle of the dihedral of type 2 only. I am using a dump for that:
And then I use Python and NumPy to extract the histogram of the angle, before and during the pulling. It works fine, but ideally I would prefer to use only LAMMPS command (and no NumPy). Its easy to apply the ave/histo command to all the dihedral types, but I am not sure how to apply it to only type 2... Any idea?
|
|
@akohlmey @jrgissing I am planning to merge that one, if you don't have objection. If you know a method to extract histograms for a certain type of dihedral (cf my previous comment on here), I am interested. |
kspace ewald doubles execution time for this example. It is best used for tiny and sparse systems, since ewald scales O(N^{2/3}) with the number of particles while pppm scales O(N*log(N)) with the volume (due to the FFTs over grid points). You could do an initial run with ewald and then switch to pppm (since they are compatible) for improved speed. |
I cannot think of a way since LAMMPS doesn't have "local" style variables and while compute dihedral/local can do some computation using internal and equal style variables, there is no access to the dihedral type for that computation. This would have to be programmed into the compute (and equivalent for the other local computes). I am busy with some upgrades to the Temple Jenkins cluster and testing scripts currently and probably would need to discuss the details first with Steve. |

Uh oh!
There was an error while loading. Please reload this page.