Hello all,

Hopwver, when I try to settle the clumps under gravity, I get this error:
Aborted (core dumped)

Your help in this would be appreciated

Zoheir

## Question information

Language:
English Edit question
Status:
Solved
For:
Assignee:
No assignee Edit question
Solved by:
Solved:
2020-02-04
Last query:
2020-02-04
2020-02-03
 Jan Stránský (honzik) said on 2020-02-03: #1

Hello Zoheir,

cheers
Jan

 Zoheir Khademian (zoheir1928) said on 2020-02-03: #2

Hi Jan,

and Ubuntu version is 18.04.3
and Python version is 2.7.17
Here is the MWE, which is only a "O.run()" different from the trunk example.

from __future__ import print_function

from builtins import range

#define material for all bodies:

#define engines:
O.engines=[
ForceResetter(),
InsertionSortCollider([Bo1_Sphere_Aabb(),Bo1_Box_Aabb()]),
InteractionLoop(
[Ig2_Sphere_Sphere_ScGeom(),Ig2_Box_Sphere_ScGeom()],
[Ip2_FrictMat_FrictMat_FrictPhys()],
[Law2_ScGeom_FrictPhys_CundallStrack()]
),
NewtonIntegrator(damping=0.7,gravity=[0,0,-10])
]

#create a box:
id_box = O.bodies.append(box((0,0,0),(2,2,.1),fixed=True))

#### show how to use appendClumped():

#create 2 clumps:
clump1=O.bodies.appendClumped([\
])
clump2=O.bodies.appendClumped([\
])

#get clump ids:
id_clump1 = clump1[0]
id_clump2 = clump2[0]

#definition for getting informations from all clumps:
def getClumpInfo():
for b in O.bodies:
if b.isClump:
print('Clump ',b.id,' has following members:')
keys = list(b.shape.members.keys())
for ii in range(0,len(keys)):
print('- Body ',keys[ii])
print('inertia:',b.state.inertia)
print('mass:',b.state.mass,'\n')

#### show how to use addToClump():

#create a new sphere:

print('\nSTATE before adding sphere to clump ------------')
getClumpInfo()

#add a sphere to the clump:

print('\nSTATE after adding sphere to clump ------------')
getClumpInfo()

#add a clump to a clump:

print('\nSTATE after adding the second clump to clump ------------')
getClumpInfo()

#try to add clump member to a clump (should give error message):
#try to add clump to the same clump (should give error message):

O.dt=1e-6

print('\nPress Play button ... ')
renderer = qt.Renderer()
qt.View()
O.run()

 Jan Stránský (honzik) said on 2020-02-04: #3

I used 2018.02b and 2020-01-06.git-f6677ba and could not reproduce the problem..
Jan

 Jérôme Duriez (jduriez) said on 2020-02-04: #4

See "The main [Yade] branches [= source code] are currently on GitLab (migrated from GitHub in January 2019)." on https://yade-dem.org/doc/

 Zoheir Khademian (zoheir1928) said on 2020-02-04: #5

Thank you Jan and Jerome. That was a version issue.

 Zoheir Khademian (zoheir1928) said on 2020-02-04: #6

Thank you Jan and Jerome. That was a version issue.