Use signature and local inertial coordinates . Write and , where is rest mass density. The perfect fluid in general relativity has components
Here is energy density, is energy flux, is momentum density, and is the flux of the th momentum component through a surface normal to . In the local rest frame these reduce to energy density , zero energy and momentum flow, and isotropic pressure . The equation expresses local stress-energy conservation. Its temporal and spatial components give energy and momentum balance; in flat coordinates, for example, .
For relativistic dust, . Contracting its divergence with , and using metric compatibility together with , gives
Consequently . Substituting this continuity equation back into the divergence leaves . Wherever matter is present,
so the individual particles follow geodesics.
The electromagnetic four-force law must preserve the particle's rest mass. Thus , and requiring this for arbitrary timelike four-velocities makes the electromagnetic field tensor antisymmetric. Its six independent components comprise the electric field and magnetic field. With the stated signature and , one consistent convention is
It gives the spatial force and energy transfer . Under a Lorentz transformation, transforms as a rank-two contravariant tensor; its electric and magnetic components consequently mix. A four-potential supplies , unchanged by . The Maxwell equations are
These combine the source equations and the homogeneous equations into covariant tensor statements; is the four-current.
For charged relativistic dust, the matter tensor exchanges four-momentum with the electromagnetic field: , while their total stress-energy tensor is conserved. Identical particles of rest mass and electric charge have . Contraction with again gives mass continuity because . Removing that term gives
Using zero divergence for the matter tensor alone in this last step would omit the electromagnetic Lorentz force.
Perfect fluid 2026-10-13
A perfect fluid has no viscosity or heat flux in its local rest frame; its stress is specified by energy density and isotropic pressure. Its relativistic realization is the perfect fluid in general relativity.
A noninteracting perfect fluid in general relativity has , so . If energy is transferred between species, source terms appear and only their sum vanishes. The Friedmann equation still involves the sum of all component stress tensors because all components share one spacetime metric.
The Tolman–Oppenheimer–Volkoff equation governs a static, spherically symmetric perfect fluid in general relativity. In geometrized units, if is the mass inside areal radius , then