In general relativity, a fluid solution is an exact solution of the Einstein field equation in which the gravitational field is produced entirely by the mass, momentum, and stress density of a fluid.
In astrophysics, fluid solutions are often employed as stellar models, since a perfect gas can be thought of as a special case of a perfect fluid. In cosmology, fluid solutions are often used as cosmological models.