External kinetic energy

From: Jesus M Salas <jesusms_at_astro.ucla.edu>
Date: Wed, 16 Mar 2016 15:04:09 -0700 (PDT)

Hello,
I'd like to add some external driving that changes the speed of the particles by some delta_v, something like:
for (int i=0; i < Npart; i++)
  for (int j = 0; j<3; j++)
    P[i].Velocity[j] += delta_v ;
   
However, where in the code I should add this, which file and in between which lines?

Thank you for your help

-Jesus
Received on 2016-03-16 23:04:12

This archive was generated by hypermail 2.3.0 : 2023-01-10 10:01:32 CET