Cantilever#
An Cantilever object is used to store cantilever parameters and calculate
coefficients needed to convert a spring constant shift to a resonance-frequency
shift, based on the experiment. The available coefficients are for the DC signal and modulated signal.
Example Usage#
Create a cantilever object with a spring constant of 780 aN/nm and frequency of 4975 Hz:
cantilever = Cantilever(k_c=780, f_c=4975)
To print out the cantilever summary:
>>> print(cantilever)
Cantilever
k_c = 780 aN/nm
f_c = 4975 Hz
k2f_modulated = 1.436e+00 Hz.nm/aN
k2f = 3.189e+00 Hz.nm/aN
cantilever module#
- class mrfmsim.component.cantilever.Cantilever(k_c: float, f_c: float)[source]#
Bases:
ComponentBaseCantilever object.
- Parameters:
k_c (float) – spring constant [aN/nm]
f_c (float) – mechanical resonance frequency [Hz]
- Variables:
k2f_modulated (float) – spring constant to frequency ratio for modulated cantilever (lockin) [Hz.nm/aN]
k2f (float) – spring constant to frequency ratio for non-modulated cantilever [Hz.nm/aN]