yade-users team mailing list archive
-
yade-users team
-
Mailing list archive
-
Message #21220
Re: [Question #685596]: GridConnection and PFacet: Segmentation fault
Question #685596 on Yade changed:
https://answers.launchpad.net/yade/+question/685596
Status: Open => Answered
Klaus Thoeni proposed the following answer:
Hi Justin,
the problem is the material in gridConnection and pfacet. If you use
this approach you should only use the material once, with the gridNode,
see below. The rest is set up based on that material.
box.append(O.bodies.append( gridNode([-boxDem[0],-boxDem[1],0],steel_r,wire=False,fixed=True,material='steel',color=color) ))
box.append(O.bodies.append( gridNode([boxDem[0],-boxDem[1],0],steel_r,wire=False,fixed=True,material='steel',color=color) ))
box.append(O.bodies.append( gridNode([boxDem[0],boxDem[1],0],steel_r,wire=False,fixed=True,material='steel',color=color) ))
box.append(O.bodies.append( gridNode([-boxDem[0],boxDem[1],0],steel_r,wire=False,fixed=True,material='steel',color=color) ))
O.bodies.append( gridConnection(box[0],box[1],steel_r,color=color) )
O.bodies.append( gridConnection(box[1],box[2],steel_r,color=color) )
O.bodies.append( gridConnection(box[2],box[0],steel_r,color=color) )
O.bodies.append( gridConnection(box[2],box[3],steel_r,color=color) )
O.bodies.append( gridConnection(box[3],box[0],steel_r,color=color,) )
O.bodies.append( pfacet(box[0],box[1],box[2],wire=False,color=color) )
O.bodies.append( pfacet(box[0],box[2],box[3],wire=False,color=color) )
HTH
Klaus
--
You received this question notification because your team yade-users is
an answer contact for Yade.