[lammps-users] averaging velocity

dear lammps users,

is there anyway to average +ve and -ve components of velocity desperately?
does lammps support complex numbers?

thanks in advance

regards,
sooraj

dear lammps users,

is there anyway to average +ve and -ve components of velocity desperately?

desperately?? no.

does lammps support complex numbers?

no.

axel.

is there anyway to average +ve and -ve components of velocity desperately?

desperately?? no.

If you're desperate, you could look at the logical operators available
in math formulas for atom-style variables. E.g. these commands
do something like you want:

variable neg atom (vx<0)*vx
variable pos atom (vx>0)*vx
compute tot all reduce ave v_neg v_pos
thermo_style custom step temp pe c_tot[1] c_tot[2]

Steve