Sahire,
Just wanted to add this note in reply to your other email to me:
For the "u" argument, you
need to use the molecular director of your particle. This is the axis
about which the particle has rotational symmetry. The orientation
quaternions act on this vector when computing the nematic order
parameter. It might be along the z-axis like [0, 0, 1] or along the
x-axis like [1, 0, 0] or along the y-axis like [0, 1, 0], or any other
vector. It just depends on how your particles were specified, which only you will know. Try using the x-axis [1, 0, 0] or y-axis [0, 1, 0] and see if that fixes your problem.
Best,
Bradley