Convert to function

inputs - simulation(wave frequency Hz, wave magnitude meter, rotor speed
rpm)