espressomd-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [ESPResSo-devel] Particle Masses definition


From: Joost de Graaf
Subject: Re: [ESPResSo-devel] Particle Masses definition
Date: Mon, 22 Jun 2015 14:17:58 +0200

To add to that. PMASS(*p) is a function that will always return a particle mass, even if the MASS feature is not put in, in which case it returns 1.0. This is advantageous, since you don't have to duplicate a bunch of code and have defines everywhere.

Kind Regards, Joost

On 22 June 2015 at 13:34, Evyatar Arad <address@hidden> wrote:
Good week all,

I’ve noticed that in friction_thermo_langevin there are two different masses used in the langevin equation while calculating force:
      p->f.f[j] = langevin_pref1*p->m.v[j]*PMASS(*p) + langevin_pref2*gaussian_random()*massf;

What is the difference between PMASS(*p) and massf?
both are available even though MASS (mass per particle) is off.

Thanks,
Evyatar.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]