New question #245254 on Yade:
https://answers.launchpad.net/yade/+question/245254

Hi all, 
   I want to change the interaciton and material parameters during the 
simulation process through the following functions. However, the analysis 
results before and after the changes of the parameters.

Here is the function:


O.materials.append(CohFrictMat(young=1e8,poisson=0.2,density=den,frictionAngle=20,normalCohesion=1e3,shearCohesion=1e3,isCohesive=True,momentRotationLaw=True,etaRoll=0.1))


def Par_Change():
        Fos=2.0
        Fri_Fos=math.atan(math.tan(Frict_0)/Fos)
         # here we modify the material and interaction physics
        for b in O.bodies:
                b.mat.frictionAngle=Fri_Fos
                b.mat.normalCohesion=Coh_0/Fos
                b.mat.shearCohesion=Coh_0/Fos    
        for i in O.interactions:
                i.phys.normalCohesion=Coh_0/Fos
                i.phys.shearCohesion=Coh_0/Fos
                i.phys.frictionAngle=Fri_Fos

Anyone can help me? Thanks a lot.
Henry

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

_______________________________________________
Mailing list: https://launchpad.net/~yade-users
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~yade-users
More help   : https://help.launchpad.net/ListHelp

Reply via email to