espressomd-users
[Top][All Lists]
Advanced

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

Re: AttributeError in collision_detection


From: Jean-Noël Grad
Subject: Re: AttributeError in collision_detection
Date: Fri, 28 Feb 2020 13:26:18 +0100
User-agent: Mozilla/5.0 (X11; Linux i686; rv:68.0) Gecko/20100101 Thunderbird/68.5.0

Dear Ahmad,

You probably compiled espresso with a custom myconfig.hpp file that is missing feature COLLISION_DETECTION. Add the following line to the myconfig.hpp file and recompile espresso:

#define COLLISION_DETECTION

Best regards,
JN

On 2/28/20 1:13 PM, Ahmad Reza Motezakker wrote:
Dear EspressoMD users,


I am trying to define collision in my system and I face attribute error as:

AttributeError: 'NoneType' object has no attribute 'set_params'

Below, please find the lines of the code which is related to the collision detection.

---

---------------------------------------------------------------------------
AttributeError                             Traceback (most recent call last)
<ipython-input-15-4acfe63d1151>  in<module>
5  bond_centers=  interactions.HarmonicBond(k=1000,  r_0=0.2)
6  system.bonded_inter.add(bond_centers)
----> 7system.collision_detection.set_params(mode="bind_centers",  
distance=0.2,  bond_centers=bond_centers)
8 9 #system.bonded_inter.add(fene)

AttributeError: 'NoneType' object has no attribute 'set_params'​

----

I really be thankful if you could help me with this.


Best Regards,

Ahmad Reza




reply via email to

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