yade-users team mailing list archive
-
yade-users team
-
Mailing list archive
-
Message #24878
Re: [Question #695192]: wall.append(O.bodies.append(pfacet) in triaxial test
Question #695192 on Yade changed:
https://answers.launchpad.net/yade/+question/695192
Hanying Zhang gave more information on the question:
I got problems when clumping nodes and pfacets into a clump. There are
several ways to creat Pfacets and I tried two of them, both did't work.
Here is one way I tried. Please help me with it. Thanks!
####################################
nodes=[]
#up
aa= nodes.append(O.bodies.append( gridNode([-110e-3, 110e-3,-200e-3],RNode,wire=True,fixed=False,material='gridNodeMat') ))
bb=nodes.append(O.bodies.append( gridNode([ 110e-3, 110e-3,-200e-3],RNode,wire=True,fixed=False,material='gridNodeMat') ))
cc= nodes.append(O.bodies.append( gridNode([ 110e-3,-110e-3,-200e-3],RNode,wire=True,fixed=False,material='gridNodeMat') ))
dd= nodes.append(O.bodies.append( gridNode([-110e-3,-110e-3,-200e-3],RNode,wire=True,fixed=False,material='gridNodeMat') ))
ab= O.bodies.append(gridConnection(aa,bb,RNode,wire=True,material='gridNodeMat'))
ac= O.bodies.append(gridConnection(aa,cc,RNode,wire=True,material='gridNodeMat'))
ad= O.bodies.append(gridConnection(aa,dd,RNode,wire=True,material='gridNodeMat'))
bc= O.bodies.append(gridConnection(bb,cc,RNode,wire=True,material='gridNodeMat'))
bd= O.bodies.append(gridConnection(bb,dd,RNode,wire=True,material='gridNodeMat'))
abc= O.bodies.append(pfacet(aa,bb,cc,wire=True,material='pFacetMat',color=color))
acd= O.bodies.append(pfacet(aa,cc,dd,wire=True,material='pFacetMat',color=color))
clump1=O.bodies.appendClumped([\
aa, bb, cc, dd, ab, ac, ad, bc, bd, abc, acd
])
###################################################
Thanks!
--
You received this question notification because your team yade-users is
an answer contact for Yade.