Facts are usually expressed with the present tense:
A body in free-fall accelerates at 9.8 m/s²
But when you describe a particular experiment you would use the past tense:
The stone was dropped and accelerated at 9.8 m/s².
So you should decide if you are describing a general fact about the machine
The machine generates a field in which N particles have an affinity for M particles.
Or a particular run of the machine which occurred in the past:
The machine generated a field in which the N particles had an affinity for the M particles.
There is no rule against mixing tenses if you are talking about different times.
The baker made a cake which has pink icing and is in my cupboard now; we will eat it tomorrow.
Pythagoras wrote a theorem that the square of the hypotenuse of a right-triangle equals the sum of the squares of the shorter sides.