# Mixer rotation

0 votes
53 views
asked Feb 4, 2018

Hi!

I'm trying to make a mixer. My problem is that I can't get the axis of the mixer (imported from STL) rotating. Anyone any ideas what impose should I use and how?

My first attempt was like this:

mixerstl='/home/...stl' #not important in this question, I can see the 3D model in woo

mixelement=woo.utils.importSTL(mixerstl,mat=material,readColors=False)
mixnode=Node(dem=ClumpData(blocked='xyzXYZ'),ori=((0,0,1),0))
mixer=S.dem.par.addClumped(mixelement,centralNode=mixnode)
mixer.dem.impose=CircularOrbit(node=mixnode,rotate=True,omega=1)

It should rotationg around z axis.

Thanks,

D

## 1 Answer

0 votes
answered Feb 6, 2018 by (350 points)
edited Feb 6, 2018

Best answer

Solved! It was easier than I thought! :)

mixerstl='/home/...stl' #not important in this question, I can see the 3D model in woo

mixelement=woo.utils.importSTL(mixerstl,mat=material,readColors=False)
S.lab.mixnode=Node(dem=ClumpData(blocked='xyzXYZ'))
S.dem.par.addClumped(mixelement,centralNode=S.lab.mixnode)
S.lab.mixnode.dem.angVel=(0,0,1)

D

commented Feb 7, 2018 by (49,030 points)

Exactly :) Cheers!