The general theory of relativity is based on the concept of curved space–time. To describe how the energy and momentum of fields are distributed in space–time, as well as how they interact with the gravitational field, a special mathematical construct is used—the energy–momentum tensor. This is a kind of analog of energy and momentum in ordinary mechanics.