← Back to team overview

yade-users team mailing list archive

Re: [Question #632015]: gravity for certain material instance

 

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

Jan Stránský posted a new comment:
> I need to repeat this command

Is it a problem? from source code point of view, you can of course wrap all it into one function
#
def myOBodiesAppend(b):
   O.bodies.append(b)
   if b.mat == vaporMat:
      O.forces.addF(b.id,f,permanent=True)
#
Then you just call this one function
cheers
Jan

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