← Back to team overview

yade-users team mailing list archive

Re: [Question #230139]: clumps generating randomly in 2D simulation

 

Question #230139 on Yade changed:
https://answers.launchpad.net/yade/+question/230139

    Status: Open => Answered

Christian Jakob proposed the following answer:
to (1) You just need to define material for spheres. The
volume/masses/inertia of clumps is calculated automatically in Yade. I
think clumps itself can not have a material.

to (2) concise? in your case there is no need for any definition ...
also this can be shortened:

#old:
coors1 = [ b[0] - radius , b[1] - radius , 0 ]
spherepara1 = sphere ( coors1 , radius , material=clumpsmat, color = [1,1,1] )
sphere1 = O.bodies.append ( spherepara1 )

#new:
sphere1 = O.bodies.append ( sphere ( [ b[0] - radius , b[1] - radius , 0 ] , radius , material=clumpsmat, color = [1,1,1] ) )

to (3): you just have to block DOFs for clumps, since you have only
clumps in your sim. blocking DOFs of spheres makes no sense in your
case.

    for b in O.bodies:
        if b.isClump:
           b.state.blockedDOFs = 'zXY'

is enough

-- 
You received this question notification because you are a member of
yade-users, which is an answer contact for Yade.