rotate all the simulation
hi i'm new on yade. I have a little problem that i 'm not able to fix and a question:
i created a particles deposition in a Box and i saved the particles positions. I would like to save also the Box position (is built with facets (geom.facetbox) .In this way i should have a file where is texted the particles and box positions.
After this , i would like to rotate everything of 45° along Z axes in another script. Any idea of how can i do it? I mean , i want to paste box and particles positions rotate of 45° before the simulation starts. Does exist any function that allow me to do it?
this is the script, but i think you don't need it, becouse is only a particles deposition. From this script i want to save particles and box positions. These i 'll rotate after in another script.
Thanks for your time.
from yade import pack, plot
from yade import export, ymport
# create rectangular box from facets
O.bodies.
pred=pack.
idSoil=
O.materials.
spheres=
spheres.
O.engines=[
ForceResetter(),
InsertionSor
InteractionLoop(
[
[
[
),
NewtonIntegr
#PyRunner(
]
#######
#######
#######
#def checkUnbalanced():
# if O.time > 2.5 :
# O.pause()
# export.
O.dt=.8*
O.run()
#O.stopAtIter=
O.saveTmp()
Question information
- Language:
- English Edit question
- Status:
- Solved
- For:
- Yade Edit question
- Assignee:
- No assignee Edit question
- Solved by:
- Jan Stránský
- Solved:
- Last query:
- Last reply: