A nanomechanical resonator typically consists of a tiny beam or membrane that can oscillate at specific resonant frequencies. These frequencies depend on the material properties, dimensions, and boundary conditions of the resonator. When an external force or signal is applied, the resonator vibrates, and these vibrations can be detected and analyzed to infer various properties or changes in the environment.