Skip to content
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

Automated S/T/C calculation #2

Open
qzhu2017 opened this issue Sep 30, 2023 · 5 comments
Open

Automated S/T/C calculation #2

qzhu2017 opened this issue Sep 30, 2023 · 5 comments
Assignees

Comments

@qzhu2017
Copy link
Contributor

qzhu2017 commented Sep 30, 2023

An automated script to run

  1. Default xx, yy, zz on tensile/compression, xy, yz, xz on shear,
  2. choose different supercell size based on the loading condition?
  3. Dump the molecular centers, and PE(eV/molecule)-strain, stress(MPa)-strain curves for quick analysis.
@qzhu2017 qzhu2017 self-assigned this Oct 1, 2023
@pedroantoniosantosf
Copy link
Collaborator

pedroantoniosantosf commented Oct 1, 2023

@qzhu2017
I got a way to dump the values of center-of-mass. It just copy the same value to all atoms in each molecule... But we can just for post-analysis use 1 atom per molecule.

compute         cmol all chunk/atom molecule.      # Define the chunk as a molecule
compute         com all com/chunk cmol                # Calculate the center-of-mass per molecule
compute         vcm all vcm/chunk cmol                # Calculate the center-of-mass velocity per molecule
compute         mychunk all chunk/spread/atom cmol c_com[*] c_vcm[*]         # Values are copied to each atom in the molecule.
dump            1 all custom ${dump_steps} shear.*.dump element id mol type x y z c_mychunk[*]
dump_modify     1 element ${ele_string}

@qzhu2017
Copy link
Contributor Author

qzhu2017 commented Oct 1, 2023

@pedroantoniosantosf
Thanks, I have a somewhat more challenging case.
Here I need to compute both the mass center and velocity for every two molecules (e.g., molecular id [1,2], [3, 4], ...)
I want to output these information to a single file like what we did before.

fix             3 all ave/time 2 100 1000 c_mychunk[*] file center.dat mode vector

Can you help? This will be very useful for our data analysis.

@pedroantoniosantosf
Copy link
Collaborator

@qzhu2017
I was trying but I couldn't find the way to do it in lammps. Wouldn't it be possible to do it before, by modifying the lmp.dat file combining the 2 molecules?

@qzhu2017
Copy link
Contributor Author

qzhu2017 commented Oct 5, 2023

Todo

  • Simplify lmp.dat (use replicate function)
  • quick scan all of folders / html output
  • Run jobs in parallel

@qzhu2017
Copy link
Contributor Author

Todo

If 'xx' calculation is complete, skip the calculation.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants