← Back to team overview

yade-users team mailing list archive

Re: [Question #443228]: segmentation fault using two kinds of cohefricmats under cohesive triaxial test

 

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

Jan Stránský proposed the following answer:
Ok, I have found the problem.

> Apart from the wall using the frictmat

the problem is that FrictMat is actually not used:

>for b in O.bodies:
> if random.random() < 0.5:
>  b.mat = mat1
> else:
>  b.mat = mat2

here you set materials of all bodies to CohFrictMat. Than between Box an
Sphere, ScGeom is created, but Ip2_CohFrictMat when setCohesionNow is
set consideres ScGeom6D, caousing the segmentation fault.

preserve FrictMat on boxes like following
###########
for b in O.bodies:
  if not isinstance(b.shape,Sphere): # change material only on spheres
    continue
  if random.random() < 0.5:
    ...
###########
and the code should work (works for me)
cheers
Jan

-- 
You received this question notification because your team yade-users is
an answer contact for Yade.