Step 1: Analyzing the force on the wire.
For a wire carrying a current in a magnetic field, the force on the wire is given by:
\[
F = I L B \sin \theta
\]
where \( L \) is the length of the wire and \( \theta \) is the angle between the wire and the magnetic field. In this case, the total force is calculated by considering the semi-circular segments of the wire.
Step 2: Conclusion.
Thus, the correct answer is option (D).
Final Answer:
\[
\boxed{2IRB}
\]