Hi, I suggest you look at the turbChannel example and go from there.
Basically I'd try to do it like this:
- assign an object index to each surface of interest, say the upper wall is object 1, the lower wall is object 2
- call torque_calc in userchk
- now you can access drag-force for each object via:
dragx(objectindex)
dragy(objectindex)
dragz(objectindex)
- now calculate your coefficients; for example divide the wall-tangential component of the drag by the surface area to get the average wall shear. There are pre-calculated arrays with element surface areas and surface normals that help you do this.
There's also the KTH statistics toolbox that might be of help.
hope that helps!