Grand potential (source code)

= Grand potential
{title2=$\Phi$}
{wiki}

The grand potential is
$$
\Phi=E-TS-\mu\langle N\rangle=-k_BT\log\mathcal Z.
$$
For a homogeneous extensive system, $\Phi=-pV$.