espressomd-users
[Top][All Lists]
Advanced

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

[ESPResSo-users] Angle potential 3-body vs 2-body (?) forces


From: Memet, Edvin
Subject: [ESPResSo-users] Angle potential 3-body vs 2-body (?) forces
Date: Tue, 26 Mar 2019 06:21:30 +0000
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.5.1

Dear all,

In a file like angle_cosine.hpp, for instance, what is the difference 
between the following functions?

inline int calc_angle_cosine_force(...)
inline void calc_angle_cosine_3body_forces(...)

The first one seems like it computes the forces on only two of the 
particles rather than on all three particles composing the angle bond. 
If that is the case, then why/how would that work?

Also, I've tried to check which of the two functions is actually being 
called when I define an angle potential. Surprisingly, it seemed like 
only the first function was being called. Is that correct? Is the force 
on the third particle zero, then, or is it being computed elsewhere?

If it's better to ask this in the developer's list, please let me know.

Best,
Edvin

Attachment: angle_cosine.hpp
Description: angle_cosine.hpp


reply via email to

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