Metadynamics is a computer simulation method in computational physics, chemistry, and biology. It is used to estimate the free energy and other state functions of a system, where ergodicity is hindered by the form of the system's energy landscape.