← Back to team overview

yade-users team mailing list archive

Re: [Question #631788]: Flow of sphere clump.

 

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

    Status: Answered => Open

Ed Carlos Alves Rocha is still having a problem:
Hello Jan!

Thank you for your attention.

Sorry, I still can not do it. I tried the options below, however, it did
not work.

#####################
#####################
def inject():
    for k in arange(0,4):
         ss2=O.bodies.appendClumped([utils.sphere((r*i,0,k*4*r),r, material="cana") for i in range(1,9)])
    cid,bids=O.bodies.append(ss2)
    
    v = (9.1924,9.1924,0)
#    for s in ss2:
    
    s.state.vel = v
    O.bodies[cid].state.vel = v
#####################
#####################

def inject():
    for k in arange(0,4):
         ss2=O.bodies.appendClumped([utils.sphere((r*i,0,k*4*r),r, material="cana") for i in range(1,9)])
    cid,bids=(ss2)
    
    v = (9.1924,9.1924,0)
#    for s in ss2:
    
    s.state.vel = v
    O.bodies[cid].state.vel = v
#####################
#####################

def inject():
    for k in arange(0,4):
         ss2=O.bodies.appendClumped([utils.sphere((r*i,0,k*4*r),r, material="cana") for i in range(1,9)])
    cid,bids=(ss2)
    
    v = (9.1924,9.1924,0)

    for s in ss2:  
    s.state.vel = v
    O.bodies[cid].state.vel = v
#####################
#####################

Injection does not work. Can you help me again?

-- 
You received this question notification because your team yade-users is
an answer contact for Yade.