Penalized approximation of the vibration frequencies of a fluid in a cavity