Cantilever#

Summary#

An object to store cantilever parameters, needed to convert a spring constant shift to a resonance-frequency shift.

Example Usage#

Create a cantilever object with spring constant k 7.8e5 aN/nm and frequency of 4.975e6 mHz:

cantilever = Cantilever(k_c=7.8e5, f_c=4.975e6)

Print out the cantilever summery:

print(cantilever)

cantilever module#

Defines cantilever objects.

class mrfmsim_marohn.component.cantilever.Cantilever(k_c, f_c)[source]#

Bases: mrfmsim.component.ComponentBase

cantilever object.

dk_to_df_ac_cermit(dk_spin)[source]#

Converting spring constant to the frequency.

The ac cermit uses modulation and the resulting frequency shift is the fourier component. The fourier component of a square wave modulating between 1 and 0 is 2/pi, but we are modulating betw

The primary Fourier component of a square wave is 4/pi. You lose a factor of two because you modulate between 1 and 0 and not 1 and -1. The final factor of 1/sqrt(2) is because we report rms instead of peak amplitude.

dk_to_df_dc_cermit(dk_spin)[source]#

Converting spring constant to the frequency.

The dc cermit for the direct frequency shift.