I started from the standard conveyor example on p78 of the Woo Documentation of Feb 29, 2016 (see below):
In summary, the conveyor code looks like this, in a compact way:
botWd=.3; sideWd=.2; sideHt=.1; x1=2; xDiv=5
import woo; from woo.core import *; from woo.dem import*; import woo.utils; import numpy; import math
pts=[[(x,-.5*botWd-sideWd,sideHt),(x,-.5*botWd,0),(x,.5*botWd,0),(x,.5*botWd+sideWd,sideHt)] for x in xx]
Then on p79 it says that:
Note: Motion integration is performed on nodes (page 259), which are usually attached to particles
(page 303). There are also nodes not attached to any particle but used by some engines (e.g. Conveyor);
those nodes, if added S.dem.nodes (usually via S.dem.nodesAppend), will move just the same. This
will be shown below.
I am simply trying to add a velocity to the conveyor surface so that particles dropping onto the conveyor travels at the belt speed. The surface itself will remain in place, but the particles dropping onto it must be accellerated in the direction of the belt. The following extract from my code draws the conveyor profile, but then I can't get from surf2 to a facet/node to which I can add velovity (some examples of my attempts added as comments at the end).
# Conveyor 2 profile
pts2=[[(-.5*beltW/1000+(.5*beltW/1000-sideWd-.5*botWd)*y/transD,y-transD,sideHt*y/transD),(-.5*botWd,y-transD,0),(.5*botWd,y-transD,0),(.5*beltW/1000-(.5*beltW/1000-sideWd-.5*botWd)*y/transD,y-transD,sideHt*y/transD)] for y in yy2]
pts2=pts2+[[(-.5*botWd-sideWd,y+beltW/1000,sideHt),(-.5*botWd,y+beltW/1000,0),(.5*botWd,y+beltW/1000,0),(.5*botWd+sideWd,y+beltW/1000,sideHt)] for y in yy1]
There is probably a simple answer, but I can't seem to get the syntax right.