[lammps-users] print velocity and postion

Dear All,

I am trying to print position every 100 time step using fix print command,

fix ID group-ID print N string keyword value

using the example

fix extra all print 100 "Coords of marker atom = $x $y $z" file coord.txt

and I get this error Substitution for illegal variable.

And also I was searching in to this command to see how to print out velocity but I couldn’t see any example.

I would appreciate any suggestion.

Best,

Yasaman

Dear All,

I am trying to print position every 100 time step using fix print command,

fix ID group-ID print N string keyword value

using the example

fix extra all print 100 "Coords of marker atom = $x $y $z" file coord.txt

and I get this error Substitution for illegal variable.

And also I was searching in to this command to see how to print out velocity but I couldn’t see any example.

I would appreciate any suggestion.

Best,

Yasaman

Dear All,

I am trying to print position every 100 time step using fix print command,

fix ID group-ID print N string keyword value

using the example

fix extra all print 100 "Coords of marker atom = $x $y $z" file coord.txt

and I get this error Substitution for illegal variable.

to print out a variable, you first have to define it.

in any case, the best way to write out positions _and_
velocities is through using a custom-style dump.

check out the documentation.

axel.

Hi Axel

Thanks for your guiding me in right direction.It worked.

Yasaman