Effect of the Field on a Conductor
The magnetic field is generated by current – i.e. by moving electric charge. So it also acts only on moving electric charge. So far we have generated a magnetic field with current in a conductor. If we let a magnetic field act on (another) current-carrying conductor, the Lorentz force acts:

In the example, the magnetic field acts from top to bottom. The current through the conductor flows towards you in the direction shown. Only part of the conductor lies in the magnetic field; this region is labelled with the length l.
A force F acts on the current-carrying conductor. Once again, the direction of the force is derived not from a formula but from a rule of thumb: the “three-finger rule”. In German it is remembered as “Ich bin faul” (I – B – F). We hold the thumb of the right hand in the direction of the current I (“I”). The index finger of the right hand points in the direction of the field B (“B”). The figure above shows only the H field; the B field has the same direction. The middle finger of the right hand now points in the direction of the force F (“F”). Each finger is at a right angle to the other two.
From now on we need the two directions “towards you” and “away from you” for visualisation. The following symbols are used for these directions:

You can remember these directions as follows: the upper symbol looks like an arrow approaching the viewer tip first. The direction of the arrow’s flight path is therefore “out of the plane of view”. The lower symbol looks like the feathered other end of an arrow. Here the flight path of the arrow is “into the plane of view”, i.e. away from you.
The current in the figure below therefore points “towards you”. In the left part of the figure below, this is drawn like the current direction of the conductor in the figure further up. This form of 3D representation is graphically nicer, but mathematically too unclear for me. In the right part you can see the right angles between the directions more clearly. In both cases the current I is supposed to flow in the same direction, “towards you”.

The force on the current-carrying conductor therefore points to the right. You calculate the intensity with the formula:
If the angle between current direction and field direction is α = 90°, the intensity of the force is at its maximum. If the angle is α = 0°, the force is F = 0 N. The magnetic field generated by a current-carrying conductor is arranged in circles around the conductor. It is therefore at right angles to the current direction. That is why only the component of an external field that is at right angles to the current direction acts on a current-carrying conductor. The sine function gives exactly this component of the field.
The following figure shows three field directions as an example, all acting on the same conductor. In the left figure, field and current point in the same direction. The field causes no force on the conductor. α = 0° applies. In the middle figure, the directions of field and current are at right angles to each other. The force acts to the right. In the right figure there is again a right angle. The force now acts downwards.

Force on two parallel conductors
The goal is to generate a force with a field with the help of current. That is why we now use one conductor to generate a field that then acts on another conductor. The current I flows through both conductors.

We assume that the conductors run in parallel at distance r. The length l is the distance over which the two conductors run side by side in parallel. It is therefore the effective length of the field. In the figure above, the right conductor (conductor 1) generates the field that acts on the left conductor (conductor 2). In the same way, the left conductor generates a field that acts on the right conductor. This second direction of action is not shown, to reduce complexity, but it is just as present.
The fields cause a force. Let us first look only at the force that the field of the right conductor (conductor 1) exerts on the left conductor (conductor 2). For the intensity (magnitude) of the force:
The force decreases with the distance r between the conductors. It increases with larger material coefficients µr of the material between the conductors. The larger the currents, the more force acts. The greater the length l over which both conductors lie in parallel, the greater the force. We thus control the intensity of the force via geometry parameters (conductor length and distance), material parameters and current strengths. In this arrangement, the field is always perpendicular to the conductor on which it acts. That is why sin(α) is always equal to 1.
For the direction of the force: if the current in both conductors flows in the same direction, the conductors attract each other. If the current flows in different directions, the conductors repel each other. You can check this with the three-finger rule by looking at the direction of field and current in conductor 2.
Force on a moving charged particle
When charged particles move along a line in a gas, this generates a current just like the movement of electrons through a conductor. Forces also arise according to the same operating principle: the Lorentz force. For it:
The magnitude of the force is determined as follows:
To obtain a maximum force, the magnetic field is usually arranged at 90° to the path of the ions. Then the sine becomes 1 and the following applies:
What does this look like in practice? A magnetic field is usually generated with the help of an inductor (next chapter). The Lorentz force changes the trajectory of the ion as follows:

The magnetic field B acts from top to bottom. The movement v is from left to right. Then, for a positive charge, the force acts from you towards your monitor, i.e. into the plane of view. This follows from thumb: v, index finger: B and middle finger: F.