'ScGeom' object has no attribute 'connectionBody'

Asked by Hanying Zhang

Hi,

I use pfacetCreator3 to generate PFacet in a triaxial test then " 'ScGeom' object has no attribute 'connectionBody' " was printed in terminal. My specimen was consisted of spheres and cylinderConnections and PFacet is the triaxial boundary as cylinderConnections can only contact with Pfacet. my yade version is 2018.02b and I use ubuntu 18.04.

##################code may concern#############

O.materials.append( CohFrictMat( young=3e6,poisson=0.15,density=910e0,frictionAngle=20,normalCohesion=3e100,shearCohesion=3e100,momentRotationLaw=True,label='gridNodeMat' ) )#for gridNodes
#O.materials.append(CohFrictMat(young=3e9,poisson=.15,density=910e6,frictionAngle=20,normalCohesion=1e40,shearCohesion=1e40,momentRotationLaw=True,label='gridNodeMat'))#for gridNodes
O.materials.append(FrictMat(young=4e6,poisson=0.3,density=1000,frictionAngle=20,label='pFacetMat')) #for pfacet

#=======================Pfacet======================
O.materials.append(CohFrictMat(young=1e7,poisson=1,density=1e2,frictionAngle=radians(30),normalCohesion=3e7,shearCohesion=3e7,momentRotationLaw=True,label='gridNodeMat'))
O.materials.append(FrictMat(young=1e7,poisson=1,density=1e2,frictionAngle=radians(30),label='gridConnectionMat'))

R=0.00002
color=[255./255.,102./255.,0./255.]
aa = O.bodies.append(gridNode([-100e-3, 100e-3, 0],1e-5,wire=False,fixed=fixed,material='gridNodeMat',color=color))
bb = O.bodies.append(gridNode([ 100e-3, 100e-3, 0],1e-5,wire=False,fixed=fixed,material='gridNodeMat',color=color))
cc = O.bodies.append(gridNode([ 100e-3,-100e-3, 0],1e-5,wire=False,fixed=fixed,material='gridNodeMat',color=color))
dd = O.bodies.append(gridNode([-100e-3,-100e-3, 0],1e-5,wire=False,fixed=fixed,material='gridNodeMat',color=color))
pfacetCreator3(aa,bb,cc,cylIds=[],pfIds=[],wire=False,material='pFacetMat',color=color)
pfacetCreator3(aa,cc,dd,cylIds=[],pfIds=[],wire=False,material='pFacetMat',color=color)

##############################################

thanks!!!!!!!!!!!

Question information

Language:
English Edit question
Status:
Solved
For:
Yade Edit question
Assignee:
No assignee Edit question
Solved by:
Jan Stránský
Solved:
Last query:
Last reply:
Revision history for this message
Best Jan Stránský (honzik) said :
#1

Hello,

please provide a MWE. There is no 'connectionBody' in your code..

My guess is that you use some generic code, which assumes interaction.geom to be GridNodeGeom6D (which has connectionBody attribute), but there are some interactions with ScGeom (sphere-sphere contacts?), which (as the error says) has no attribute 'connectionBody'

cheers
Jan

[1] https://www.yade-dem.org/wiki/Howtoask

Revision history for this message
Hanying Zhang (xxxe) said :
#2

Thanks Jan Stránský, that solved my question.