You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For converged density properties equilibrium properties can be calculated as partial derivatives of thermodynamic potentials analogous to classical (bulk) thermodynamics. The difference is that the derivatives have to be along a path of valid density profiles (solutions of the Euler-Lagrange equation).
The density profiles are calculated implicitly from the Euler-Lagrange equation, which can be written simplified as
Incorporating bond integrals can be done similar to the section on the Newton solver but will not be discussed in this section. The derivatives of the density profiles can then be calculated from the total differential of eq. {eq}eqn:euler_lagrange, leading to
Using eq. {eq}eqn:euler_lagrange and the shortened notation for derivatives of functionals in their natural variables, e.g., $F_T=\left(\frac{\partial F}{\partial T}\right)_{\rho_k}$, the expression can be simplified to
Similar to the Gibbs-Duhem relation for bulk phases, eq. {eq}eqn:gibbs_duhem shows how temperature, chemical potentials and the density profiles in an inhomogeneous system cannot be varied independently. The derivatives of the density profiles with respect to the intensive variables can be directly identified as
Both of these expressions are implicit (linear) equations for the derivatives. They can be solved rapidly analogously to the implicit expression appearing in the Newton solver. In practice, it is useful to explicitly cancel out the (often unknown) thermal de Broglie wavelength $\Lambda_i$ from the expression where it has no influence. This is done by splitting the intrinsic Helmholtz energy into an ideal gas and a residual part.
Then $F_{\rho_i\rho_j}(\mathbf{r},\mathbf{r}')=m_i\frac{k_\mathrm{B}T}{\rho_i(\mathbf{r})}\delta_{ij}\delta(\mathbf{r}-\mathbf{r}')+\mathcal{\hat F}_{\rho_i\rho_j}^\mathrm{res}(\mathbf{r},\mathbf{r}')$ and eq. {eq}eqn:drho_dmu can be rewritten as
In practice, the division by the density should be avoided for numerical reasons and the energetic properties are reduced with the factor $\beta=\frac{1}{k_\mathrm{B}T}$. The final expression is
For the temperature derivative, it is more convenient to express eq. {eq}eqn:gibbs_duhem in terms of the pressure of a bulk phase that is in equilibrium with the inhomogeneous system. In the following, only paths along constant bulk composition are considered. With this constraint, the total differential of the chemical potential simplifies to