← Back to team overview

yade-users team mailing list archive

Re: [Question #701702]: How to move the facetBox side

 

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

    Status: Open => Answered

Jan Stránský proposed the following answer:
> I tried the below code: but I'm not sure about it make sense or not...
> move= TranslationEngine(translationAxis=[0,0,1],velocity=1.0,ids=[0,1,2,3,4,5])
> I would like to move (add velocity to all facets of the facetBox) in my case...

The code is fine.
But, have you added "move" to O.engines? alone this code "does nothing".

Alternatively, you can just set velocity of the faces:
###
for id in range(6):
    b = O.bodies[id]
    b.state.vel = (0,0,1)
###

> For the description " Set the periodic cell size such that it is periodic in your desired direction and the other two directions are enlarged enough such that the periodicity in these two directions does not influence the simulation."
> Could you make more detailed information for this step?

E.g. for periodicity in x direction:
###
wmask = 4 | 8 | 16 | 32 # y and z walls
O.bodies.append(geom.facetBox((0,0,0),(2.5,2.5,1),wallMask=wmask,material="steel" ))
O.periodic = True
O.cell.setBox(2.5,20,20)
###

3) And I found that when I start running my script above, the cylinder
particles are segmented and the whole cylinder particle extends over
time. I do not know why...

Please, open a new question for a new problem [1].

Cheers
Jan

[1] https://www.yade-dem.org/wiki/Howtoask (currently down, but should
be ok soon)

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