\rhom
In space-positive metric signature tensor notation, the stress–energy tensor of a perfect fluid can be written in the form
T\mu\nu=\left(\rhom+
p | |
c2 |
\right)U\muU\nu+pη\mu\nu
η\mu=\operatorname{diag}(-1,1,1,1)
In time-positive metric signature tensor notation, the stress–energy tensor of a perfect fluid can be written in the form
T\mu\nu=\left(\rhom+
p | |
c2 |
\right)U\muU\nu-pη\mu\nu
η\mu=\operatorname{diag}(1,-1,-1,-1)
This takes on a particularly simple form in the rest frame
\left[\begin{matrix}\rhoe&0&0&0\\0&p&0&0\\0&0&p&0\\0&0&0&p\end{matrix}\right]
\rhoe=\rhomc2
p
Perfect fluids admit a Lagrangian formulation, which allows the techniques used in field theory, in particular, quantization, to be applied to fluids.
Perfect fluids are used in general relativity to model idealized distributions of matter, such as the interior of a star or an isotropic universe. In the latter case, the equation of state of the perfect fluid may be used in Friedmann–Lemaître–Robertson–Walker equations to describe the evolution of the universe.
In general relativity, the expression for the stress–energy tensor of a perfect fluid is written as
T\mu\nu=\left(\rhom+
p | |
c2 |
\right)U\muU\nu+pg\mu\nu
g\mu