fixed=True how it is iworking?

Asked by Luc OGER on 2018-12-11

Hi,
I am reading a first layer of spheres sitting on a plate that I want to glue before doing a deposition of other.
I am using fixer=True inside O.bodies.append without success.

During the run these spheres can move??

what is my problem in the definition of them?

here part of the code:
O.load("1st-step.yade")
print "len-load-O.bodies = ",len(O.bodies)

O.materials[0].frictionAngle=radians(15.0)

sp=pack.SpherePack()

for c,r in sp:
 O.bodies.append(sphere(c,r,fixed=True))
 O.bodies[0].mask = 0b01 # 1

sp.toSimulation()

PS i am usin the yade daily 12-05

Question information

Language:
English Edit question
Status:
Solved
For:
Yade Edit question
Assignee:
No assignee Edit question
Solved by:
Luc OGER
Solved:
2018-12-12
Last query:
2018-12-12
Last reply:
2018-12-12
Robert Caulk (rcaulk) said : #1

Try O.bodies[i].dynamic=False [1]

[1]https://yade-dem.org/doc/user.html#motion-constraints

Luc OGER (luc-oger) said : #2

thanks Robert,

with dynamic it is working!!

so fixed is no more supported?

>with dynamic it is working!!

"fixed" works equally well. The problem is that all spheres are inserted twice.
Here:
O.bodies.append(sphere(c,r,fixed=True)) #fixed
and here:
sp.toSimulation() #not fixed

Fortunately you showed the second one to in the script fragment, otherwise it would have been impossible to understand the problem.
Please try to post MWE next time.

Bruno