In general relativity, an exact solution is a Lorentzian manifold equipped with tensor fields modeling states of ordinary matter, such as a fluid, or classical nongravitational fields such as the electromagnetic field.
These tensor fields should obey any relevant physical laws (for example, any electromagnetic field must satisfy Maxwell's equations). Following a standard recipe which is widely used in mathematical physics, these tensor fields should also give rise to specific contributions to the stress–energy tensor . (A field is described by a Lagrangian, varying with respect to the field should give the field equations and varying with respect to the metric should give the stress-energy contribution due to the field.)
Finally, when all the contributions to the stress–energy tensor are added up, the result must be a solution of the Einstein field equations (written here in geometrized units, where speed of light c = Gravitational constant G = 1)