LAMMPS WWW Site - LAMMPS Documentation - LAMMPS Mailing List Archives
Re: [lammps-users] Fix spring/self output
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [lammps-users] Fix spring/self output


From: Axel Kohlmeyer <akohlmey@...24...>
Date: Fri, 4 May 2018 11:05:01 -0400

On Fri, May 4, 2018 at 10:00 AM, Michael Papanikolaou
<mich.papanikolaou@...24...> wrote:
> Dear all,
>
> I just have a query about the fix/spring self output. If the spring
> direction is set as y (for instance), would the fix output be equal to
> Σ(1/2*k*dyi^2) or Σ(1/2*k*( dxi^2 +dyi^2+dzi^2))?

if you set the direction to y, fix spring/self will internally set dx
and dy to 0.0;
thus you should get the former. please see the source code for confirmation.

axel.

>
> Thank you in advance.
>
> Kind Regards,
> Michalis
>
>
>
> ------------------------------------------------------------------------------
> Check out the vibrant tech community on one of the world's most
> engaging tech sites, Slashdot.org! http://sdm.link/slashdot
> _______________________________________________
> lammps-users mailing list
> lammps-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/lammps-users
>



-- 
Dr. Axel Kohlmeyer  akohlmey@...24...  http://goo.gl/1wk0
College of Science & Technology, Temple University, Philadelphia PA, USA
International Centre for Theoretical Physics, Trieste. Italy.