← Back to team overview

yade-users team mailing list archive

Re: [Question #164389]: Creating particles

 

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

    Status: Open => Answered

honzik proposed the following answer:

Hi

> O.bodies.append([
>     ...: utils.sphere((0,0,2),.5)
>     ...: utils.sphere(center=(0,0,0),radius=.5,dynamic=False)

is this oyur complete command? then usage of braces are wrong and
missing comma is also wrong in python syntax, the right syntax should be
something like this:

O.bodies.append([
    utils.sphere((0,0,2),.5) ,
    utils.sphere(center=(0,0,0),radius=.5,dynamic=False)
])

regards,
Jan

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