You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am wondering what is the best way to pass the variables computed in LAMMPS to serve as a CV in PLUMED.
For example, I computed the variable called "op_1" using structure info (e.g., atoms) inside the lammps.in, and would like to use such "op_1" as an CV in the plumed.dat. Here are two ways I can image after read the plumed documents
modify the "fix_plumed.cpp" file in LAMMPS to include "op_1" and re-compile LAMMPS.
instead of calculate "op_1" in LAMMPS, I may pass structure info (e.g., atoms, box, etc) to plumed, and create a new .cpp file to calculate "op_1" to serve as the CV.
or do you have any better ideas?
Appreciate it for any suggestions.
Additionally, I noticed that in the fix_plumed.cpp in LAMMPS, while it pull in variables from MD engine, for example, p->cmd("setNatoms",&natoms); I cannot directly query the "natoms" in plumed. Did I miss something there, thank you so much!!
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Dear Plumed developer,
I am wondering what is the best way to pass the variables computed in LAMMPS to serve as a CV in PLUMED.
For example, I computed the variable called "op_1" using structure info (e.g., atoms) inside the lammps.in, and would like to use such "op_1" as an CV in the plumed.dat. Here are two ways I can image after read the plumed documents
or do you have any better ideas?
Appreciate it for any suggestions.
Additionally, I noticed that in the fix_plumed.cpp in LAMMPS, while it pull in variables from MD engine, for example,
p->cmd("setNatoms",&natoms);
I cannot directly query the "natoms" in plumed. Did I miss something there, thank you so much!!Best,
JJ
Beta Was this translation helpful? Give feedback.
All reactions