Welcome to ask.woodem.org. You may post when you login through your GitHub account.

Mixer rotation

0 votes
5 views
asked Feb 4 by drasszkusz (290 points)

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 by drasszkusz (290 points)
edited Feb 6 by drasszkusz
 
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 by eudoxos (46,390 points)

Exactly :) Cheers!

...