First law of thermodynamics (source code)

= First law of thermodynamics
{wiki}

For a simple compressible system with fixed particle number, $dE=T\,dS-p\,dV$.