The invention relates to a method for compensating for a magnetic field
disturbance affecting a magnetic resonance device, whereby the magnetic
field disturbance is caused by a deflection of a component of the
magnetic resonance device. To this end, the deflection or a variable
causing the deflection is acquired in timed-dependent fashion, a
mathematical field disturbance model is provided which models the effect
the of the deflection on the magnetic field, and the acquired deflection
or the variable causing the deflection is converted by means of the field
disturbance model into a control variable for a compensation magnetic
field generator or a high-frequency antenna. The compensation magnetic
field generator controlled in this manner generates, for example, a
compensation magnetic field which compensates for the magnetic field
disturbance. The high-frequency antenna controlled in this manner is, for
example, matched in its mid frequency to the magnetic field disturbance.