A bar of mass \(m\) resting on a smooth horizontal plane starts moving due to a constant force \(F\). In the process of its rectilinear motion, the angle \(\theta\) between the direction of this force and the horizontal varies as \(\theta = kx\), where \(k\) is a constant and \(x\) is the distance traversed by the bar from its initial position. The velocity \(v\) of the bar as a function of the angle \(\theta\) is