← Back to team overview

yade-users team mailing list archive

Re: [Question #245300]: Relationship between Material parameters and Interaction parameters

 

Question #245300 on Yade changed:
https://answers.launchpad.net/yade/+question/245300

    Status: Open => Answered

Kneib François proposed the following answer:
Hi,

Your first problem is due to the cohesion activation logic : there is two booleans you should look at (see the online class reference) : Ip2_CohFrictMat_CohFrictMat_CohFrictPhys.setCohesionNow and Ip2_CohFrictMat_CohFrictMat_CohFrictPhys.setCohesionOnNewContacts
If you wish to activate cohesion for all new contacts during your simulation, you should put "setCohesionOnNewContacts = True" into the ip2. If you prefer activate the cohesion for all existing contact at one time, turn "setCohesionNow" to True. So the answer to your first question is : fortunately no.

2nd question : for a normal simulation, you should only set your
parameters into the materials. Then contact physics parameters will be
computed at each NEW contact.

3rd question (not sure to understand) : if you change the material
parameters, changes will only be applied for new contacts. To my mind,
there is no automatic way to re-compute contact physics for "old"
contacts without clearing them all (O.interactions.clear(), but you will
loose contact history). However, you can do it manually using python.
First change your material properties, then loop over all
interactions.phys and modify parameters. I highly recommand you to look
at the source code to see how physical parameters are computed and do
the same in python :
https://github.com/yade/trunk/blob/master/pkg/dem/Ip2_CohFrictMat_CohFrictMat_CohFrictPhys.cpp

-- 
You received this question notification because you are a member of
yade-users, which is an answer contact for Yade.