stressenergy
The stress-energy tensor, also called the stress-energy–momentum tensor, is a rank-2 tensor T^{μν} that encodes the density and flux of energy and momentum in spacetime. It unifies energy density, momentum density, and stresses (pressures and shear) of matter and fields at a point.
In special relativity, with flat spacetime, components have intuitive meaning: T^{00} is energy density, T^{0i} is
T^{μν} can be derived from a Lagrangian via variation with respect to the metric: T^{μν} = -2/√(-g) δS/δg_{μν}.
Common examples: a perfect fluid has T^{μν} = (ρ + p) u^μ u^ν + p g^{μν}, where ρ is rest energy
Conservation and applications: ∇_μ T^{μν} = 0 expresses local energy-momentum conservation, yielding hydrodynamic and gravitational dynamics. The trace