function [thermNoise chiResp] = IMCthermModel(f, f1, M, phi1) % model parameters %M = 100; %phi1 = 0.02; %f1 = 157; % resonance frequencies of modes w1 = 2*pi*f1; k1 = w1^2*M*(1 + 1j*phi1); % frequency vector w = 2*pi*f; % response of mirror to external perturbations chiResp = -M*w.^2 + k1 ; % flucatuation disspation theorem kB = 1.38e-23; T = 290; % [K] temperature FthermSq = 4*kB*T./w.*imag(chiResp); thermNoise = sqrt(FthermSq)./abs(chiResp);