[lammps-users] information on minium y coordinates of all atoms

I’d like to know y coordinate minimum of all atoms in my system.
But it seems that it is not predefined (e.g., xmin).
I used “myymin equal min(y)” but print “${myymin}” showed error message of
“Invalid special function in variable formula”.

Would you let me know what’s wrong and what I should do for it?

Best regards,

Luke

Read the variable doc page section on "special functions"
like min(). It takes a compute as an arg, not "y". You
would need to use compute property/atom to have
it store the y coord, then use that compute as the
arg to min().

Steve

2011/2/3 JhonY. I. <[email protected]...>: