[lammps-users] Referencing simulation box parameters

Hi all,
I’m hoping to define a region in terms of my simulation box parameters (i.e., defining cylinder axis in the center of my box), but I’m having trouble figuring out how best to define a variable to reference in terms of these parameters. I could definitely manually enter these values, but I’d like to be able to use the same region definition for a couple of different boxes without changing the script every time, if possible, and it seems like it ought to be easy to do, since defining a box boundary with EDGE references box parameters. If I’ve just completely missed discussion of how to do this in the documentation, can anybody point me there? Or, if it’s not there, has anybody figured out their own way to reference box parameters? Thanks, and sorry for what might be a dumb question!
Tyler Harvey

Hi all,
I'm hoping to define a region in terms of my simulation box parameters
(i.e., defining cylinder axis in the center of my box), but I'm having
trouble figuring out how best to define a variable to reference in terms of
these parameters. I could definitely manually enter these values, but I'd
like to be able to use the same region definition for a couple of different
boxes without changing the script every time, if possible, and it seems like
it ought to be easy to do, since defining a box boundary with EDGE
references box parameters. If I've just completely missed discussion of how
to do this in the documentation, can anybody point me there? Or, if it's not
there, has anybody figured out their own way to reference box parameters?
Thanks, and sorry for what might be a dumb question!

why not write a small script/program that generates the input files for you?

axel.

Hey Axel,

  • |

Yeah, I could definitely even just grep for the parameters and input them as command line arguments. Just thought it’d be simpler if it were possible to do within an input script.
Tyler