setting velocity of a cylinder

Hello all,

i’m trying to simulate the movemomet of a cylinder in oilbath.

I would start with a 2D model, since I’m really new of doing this with Palabos, even with C++ (man it’s not easy… ;-)).

I studied the scripts of the cylinder2D of the buildt-in showcases and succeeded to put it into an “oil-box”. For the next step I needed to give a speed to it with the command “setBoundaryVelocity”. That’s where I was trapped, cause I don’t know how to set the cylinder domain into the function. Can anybody give some help?

Many Thanks!

Mike