Open Access
This article is

- freely available
- re-usable

*Entropy*
**2014**,
*16*(6),
2990-3008;
https://doi.org/10.3390/e16062990

Article

Constraints of Compound Systems: Prerequisites for Thermodynamic Modeling Based on Shannon Entropy

Institute of Chemical Engineering and Environmental Technology, Graz University of Technology, NAWI Graz, Inffeldgasse 25/C/I, 8010 Graz, Austria

^{*}

Author to whom correspondence should be addressed.

Received: 14 April 2014; in revised form: 17 May 2014 / Accepted: 21 May 2014 / Published: 26 May 2014

## Abstract

**:**

Thermodynamic modeling of extensive systems usually implicitly assumes the additivity of entropy. Furthermore, if this modeling is based on the concept of Shannon entropy, additivity of the latter function must also be guaranteed. In this case, the constituents of a thermodynamic system are treated as subsystems of a compound system, and the Shannon entropy of the compound system must be subjected to constrained maximization. The scope of this paper is to clarify prerequisites for applying the concept of Shannon entropy and the maximum entropy principle to thermodynamic modeling of extensive systems. This is accomplished by investigating how the constraints of the compound system have to depend on mean values of the subsystems in order to ensure additivity. Two examples illustrate the basic ideas behind this approach, comprising the ideal gas model and condensed phase lattice systems as limiting cases of fluid phases. The paper is the first step towards developing a new approach for modeling interacting systems using the concept of Shannon entropy.

Keywords:

Shannon entropy; constrained extremalization; compound systems; additivity; thermodynamic modeling; discrete states; discrete modeling## 1. Introduction

In his basic work, Shannon [1] defines a function H which measures the amount of information of a system which can reside in either of m possible states by means of the probabilities ${p}_{i}$ of the states:
Both, the constant K and the basis of the logarithm are arbitrary as they just account for a scaling of H. The set of all ${p}_{i}$ can be written as probability distribution $\overline{p}$:
with the normalization condition
In the following we set $K=1$ and choose the natural logarithm. When building the sum over all states, the limits of the summation ($1\dots m$) can be omitted and H can formally be written as function of the probability distribution:
Previous papers [1,2,3,4,5,6,7,8] worked out that this measure has all the properties of thermodynamic entropy as introduced by statistical physics. Throughout this paper we call $H\left(\overline{p}\right)$ as defined in Equation (3) the Shannon entropy of the system under consideration, in order to distinguish it from thermodynamic entropy.

$$\begin{array}{cc}\hfill H({p}_{1},\dots ,{p}_{m})& =-K\sum _{i=1}^{m}{p}_{i}log{p}_{i}\hfill \end{array}$$

$$\begin{array}{cc}\hfill \overline{p}& =\{{p}_{1},\dots ,{p}_{m}\}\phantom{\rule{4pt}{0ex}},\hfill \end{array}$$

$$\begin{array}{cc}\hfill \sum _{i=1}^{m}{p}_{i}& =1\hfill \end{array}$$

$$\begin{array}{cc}\hfill H\left(\overline{p}\right)& =-\sum _{i}{p}_{i}ln{p}_{i}\hfill \end{array}$$

The range of $H\left(\overline{p}\right)$ is given by $0\le H\left(\overline{p}\right)\le lnm$. The zero value for a distribution is where one of the ${p}_{i}$ equals 1 and, because of the normalization condition (2), all other ${p}_{i}$ are zero. The maximum value is given for uniformly distributed probabilities [6]:

$$\begin{array}{cc}\hfill {p}_{i}& =\frac{1}{m}\phantom{\rule{4pt}{0ex}},i=1\dots m\hfill \end{array}$$

$$\begin{array}{cc}\hfill \Rightarrow H\left(\overline{p}\right)& =lnm\hfill \end{array}$$

#### 1.1. Compound Systems

We consider a compound system composed of N subsystems, each characterized by its individual probability distribution:
The state of the compound system is defined by the states of the subsystems. We therefore write the probability distribution of the compound system as
where ${p}_{{i}_{1},\dots ,{i}_{N}}$ is the probability of the compound state where subsystem 1 is in the state ${i}_{1}$, subsystem 2 is in the state ${i}_{2}$, and so on. It is not necessary for the subsystems to have identical probability distributions.

$$\begin{array}{cc}\hfill \left\{\overline{{p}_{1}}\right\}& =\{{p}_{1,1},\dots ,{p}_{1,{m}_{1}}\}\hfill \\ & \vdots \hfill \\ \hfill \left\{\overline{{p}_{i}}\right\}& =\{{p}_{i,1},\dots ,{p}_{i,{m}_{i}}\}\hfill \\ & \vdots \hfill \\ \hfill \left\{\overline{{p}_{N}}\right\}& =\{{p}_{N,1},\dots ,{p}_{N,{m}_{N}}\}\hfill \end{array}$$

$$\begin{array}{cc}\hfill \left\{\overline{{p}_{c}}\right\}& =\{{p}_{1,1,\cdots ,1},\cdots ,{p}_{{i}_{1},\cdots ,{i}_{N}},\dots ,{p}_{{m}_{1},\cdots ,{m}_{N}}\}\phantom{\rule{4pt}{0ex}},\hfill \end{array}$$

Generally the probability of the compound state $A\xb7B$, comprising the states A and B of two subsystems is given by
where $p(A/B)$ is the probability of subsystem 1 to be in state A, given that subsystem 2 is in state B. If the subsystems are statistically independent, i.e., $p(A/B)=p\left(A\right)$, then it follows (cf. [9,10]):
If all N subsystems comprising the considered compound system are statistically independent, straightforward application of Equation (6) to the probability distribution (5) gives:
With this probability distribution the Shannon entropy of the compound system is:
Hence the Shannon entropy of independent subsystems is additive. In the special case of N equal and statistically independent subsystems, i.e.,

$$\begin{array}{c}\hfill p(A\xb7B)=p(A/B)\xb7p\left(B\right)\end{array}$$

$$\begin{array}{cc}\hfill p(A\xb7B)& =p\left(A\right)\xb7p\left(B\right)\hfill \end{array}$$

$$\begin{array}{cc}\hfill \left\{\overline{p}\right\}={p}_{{i}_{1},\dots ,{i}_{N}}& ={p}_{{i}_{1}}\xb7\dots \xb7{p}_{{i}_{N}}\hfill \end{array}$$

$$\begin{array}{cc}\hfill H& =-\sum _{{i}_{1}=1}^{{m}_{1}}\sum _{{i}_{2}=1}^{{m}_{2}}\cdots \sum _{{i}_{N}=1}^{{m}_{N}}\left({p}_{{i}_{1},{i}_{2},\dots ,{i}_{N}}ln{p}_{{i}_{1},{i}_{2},\dots ,{i}_{N}}\right)\hfill \end{array}$$

$$\begin{array}{cc}\hfill H& ={H}_{1}+{H}_{2}+\dots +{H}_{N}\hfill \end{array}$$

$\left\{\overline{{p}_{1}}\right\}=\dots =\left\{\overline{{p}_{N}}\right\}\equiv \left\{\overline{{p}_{\mathrm{s}}}\right\}$, the homogeneity of the Shannon entropy of the compound system follows:
Throughout this paper the index s is used for single systems and c for compound systems.

$$\begin{array}{cc}\hfill {H}_{\mathrm{c}}& =N\phantom{\rule{0.166667em}{0ex}}{H}_{\mathrm{s}}\hfill \end{array}$$

#### 1.2. The Bridge to Thermodynamic Entropy

Considering a compound system composed of N equal and statistically independent subsystems, all subsystems are characterized by the probability distribution $\left\{\overline{{p}_{\mathrm{s}}}\right\}$, and homogeneity, Equation (8), is guaranteed. For a large number of subsystems, i.e., $N>>1$, the probabilities ${p}_{i}$ can be expressed as relative occupation numbers ${N}_{i}$, designating the number of subsystems residing in the state i:
with
the total number of subsystems within the compound system, playing the role of the normalization condition (2). Expressing the Shannon entropy of a single subsystem with the occupation numbers in Equation (9) gives
and because of homogeneity, Equation (8), the Shannon entropy of the compound system is:
The right hand side of Equation (10) has the same form as the logarithm of the thermodynamic probability W known from classical statistical mechanics [11]:
The variables ${N}_{j}$ in Equation (11) give the number of particles in cell j of the μ-space, and have the very same meaning as the occupation numbers ${N}_{i}$ in Equation (10), i.e., the numbers of particles residing in the (mechanical) state i. The set $({N}_{1},{N}_{2},\dots ,{N}_{j},\dots )$ is called the occupation of the μ-space, and the thermodynamic probability W is the number of microstates realizing the given occupation. Hence, the left hand sides of Equations (10) and (11) stand for the same measure and can be combined to:
Table 1 compares the concepts behind the two measures. Because of
where S is the thermodynamic entropy of the system we get the result:
This equation reveals the equivalence between Shannon entropy and thermodynamic entropy related by the Boltzmann constant.

$$\begin{array}{cc}\hfill {p}_{i}& \approx \frac{{N}_{i}}{N}\phantom{\rule{4pt}{0ex}},\hfill \end{array}$$

$$N=\sum _{i=1}^{m}{N}_{i}$$

$$\begin{array}{cc}\hfill {H}_{\mathrm{s}}& =-\sum \frac{{N}_{i}}{N}ln\frac{{N}_{i}}{N}\phantom{\rule{4pt}{0ex}},\hfill \end{array}$$

$$\begin{array}{cc}\hfill {H}_{\mathrm{c}}& =-\sum _{i}{N}_{i}ln{N}_{i}+NlnN\phantom{\rule{4pt}{0ex}}.\hfill \end{array}$$

$$\begin{array}{c}\hfill lnW({N}_{1},{N}_{2},\dots ,{N}_{j},\dots )=-\sum _{j}{N}_{j}ln{N}_{j}+NlnN\end{array}$$

$$\begin{array}{c}\hfill H=lnW.\end{array}$$

$$\begin{array}{c}\hfill S={k}_{\text{B}}\phantom{\rule{0.166667em}{0ex}}lnW\end{array}$$

$$\begin{array}{c}\hfill S={k}_{\text{B}}\phantom{\rule{0.166667em}{0ex}}H\end{array}$$

Shannon entropy H | thermodynamic probability W |
---|---|

probability distribution: $\left\{\overline{p}\right\}=\{{p}_{1},{p}_{2},\dots ,{p}_{i},\dots \}$ | occupation: $({N}_{1},{N}_{2},\dots ,{N}_{j},\dots )$ |

$H=-N{\sum}_{i}{p}_{i}ln{p}_{i}$ | $W=\frac{N!}{{N}_{1}!{N}_{2}!\dots {N}_{j}!\dots}$ |

${\sum}_{i}{p}_{i}=1$ | ${\sum}_{j}{N}_{j}=N$ |

assumption | |

$N>>1\Rightarrow {p}_{i}\approx \frac{{N}_{i}}{N}$ | $N,{N}_{1},\dots ,{N}_{j}>>1\Rightarrow lnN!\approx NlnN$ |

equal subsystems, statistically independent | Stirling’s formula applied to N and to all ${N}_{j}$ |

$H=-{\sum}_{i}{N}_{i}ln{N}_{i}+NlnN$ | $lnW=-{\sum}_{j}{N}_{j}ln{N}_{j}+NlnN$ |

#### 1.3. Additivity of Shannon Entropy: Its Significance for Thermodynamic Modeling

Homogeneity of a compound system, Equation (8), is the starting point for thermodynamic modeling based on the states of its constituents. On the one hand, as shown in section 1.2, it builds the bridge between Shannon entropy and the classical thermodynamic entropy. On the other hand, the crucial property of additivity enables the calculation of thermodynamic entropy simply by calculating the Shannon entropy of a single subsystem. Subsequently, the compound system’s entropy can be expressed by the sum of entropies of the constituting subsystems.

Applied to a gas or fluid this means to derive the Shannon entropy of one atom or molecule based on their respective states. When speaking of molecular or discrete states we do not necessarily consider the quantum-mechanical states of atoms or molecules; the mechanical, continuous states of atoms or molecules are also possible candidates. But when using the discrete formulation of Shannon entropy, Equation (1), a discretization of the continuous states is helpful.

When applying lattice models for describing condensed phase systems, the goal is reduced to derivation of the Shannon entropy of a single lattice site. However, when deriving the Shannon entropy of a compound system by utilizing homogeneity, Equation (8), we made the following preassumptions:

The first is the assumption of statistically independent subsystems, which may be plausible for many thermodynamic systems as long as the subsystems (the particles) are ‘not too strongly correlated in some nonlocal sense’ [10].

We did not emphasize the second assumption, because it seems to be self-evident: We used the probability distributions as given system variables, as if they were properties of the subsystems, which - for statistically independent systems - stay constant. But as known from classical thermodynamics, the entropy of a system depends on system variables like internal energy, temperature, pressure and so on. In addition, entropy is not predefined directly by these variables, but underlies a maximization principle, stating that a system in thermodynamic equilibrium resides in a state where entropy is a maximum, with respect to the constraints given by the system variables. This means that we cannot deal a priori with given probability distributions, but we have to determine the very probability distribution which maximizes entropy with respect to the constraints. Hence, if we ask for validity of additivity, Equation (8), we have to investigate the maximized Shannon entropies of a compound system and its constituting single systems separately, as shown in the following section.

## 2. Probability Distributions with Maximum Entropy

#### 2.1. Maximization of Unconstrained Systems

As can be seen from Equation (4b), the maximum value of the Shannon entropy of unconstrained systems, i.e., uniformly distributed states, depends solely on the number of their possible states. For a single system with m possible states we get ${H}_{\mathrm{s}}=lnm$. In the case of a compound system consisting of N single systems, each with m possible states, the number of possible states is ${m}^{N}$, resulting in a Shannon entropy of
i.e., N times the Shannon entropy of the single system (cf. Equation (4b)). So for unconstrained systems homogeneity, Equation (8), is guaranteed.

$${H}_{\mathrm{c}}=Nlnm\phantom{\rule{4pt}{0ex}},$$

#### 2.2. Constrained Maximization of a Single System

Now a single system with m possible states is considered, each of them characterized by the value ${f}_{i}$ of a random variable F. Let one constraint be given by the mean value $\langle f\rangle $ of the random variable F:
A lot of probability distributions $\overline{p}$ may result in the same mean value $\langle f\rangle $. Among these probability distributions we are looking for the one yielding the maximum value ${H}_{\mathrm{s}}$ for the Shannon entropy. The maximizing probability distribution and the resulting Shannon entropy ${H}_{\mathrm{s}}$ will depend on the exact choice for $\langle f\rangle $, so that both can be expressed as functions of this constraint:
The maximizing probability distribution considering constraint (12) and the normalization condition (2) can be found by applying Lagrange’s method of constrained extremalization [12]. This method introduces the Lagrange function
where ${\lambda}_{0}$ and ${\lambda}_{1}$ are the Lagrangian multipliers. $\mathcal{L}$ has to be maximized by equating the derivations with respect to all ${p}_{i}$ to zero:
With ${H}_{s}$ from Equation (3) and performing all derivations we get:
Inserting Equation (14) into the normalization condition (2) yields:
Inserting Equation (14) into constraint (12) results in:
Using the abbreviation ${x}_{\mathrm{s}}\equiv {e}^{{\lambda}_{1}}$, combination of Equations (15) and (16) yields:
This equation can be solved numerically for ${x}_{\mathrm{s}}$, which can now be used to express the maximizing probability distribution. For that purpose, Equations (14) and (15) can be rewritten as:
Combining these equations yields the maximizing probability distribution
Inserting (18) into definition (3) results in:
The denominator of the first factor does not depend on the index i of the outer sum and can be put in front of the sum. The logarithm of the fraction is now written as sum of two terms:
Further rearrangement finally yields:
This value represents the maximum value of the Shannon entropy among all probability distributions compatible with the normalization condition and the constraint, Equation (12).

$$\begin{array}{c}\hfill \langle f\rangle =\sum _{i=1}^{m}{f}_{i}\phantom{\rule{0.166667em}{0ex}}{p}_{i}\end{array}$$

$$\begin{array}{cc}\hfill \overline{p}& =\overline{p}\left(\langle f\rangle \right)\hfill \\ \hfill {H}_{\mathrm{s}}& ={H}_{\mathrm{s}}\left(\langle f\rangle \right)\hfill \end{array}$$

$$\mathcal{L}={H}_{s}-{\lambda}_{0}\left(1-\sum _{i=1}^{m}{p}_{i}\right)-{\lambda}_{1}\left(\langle f\rangle -\sum _{i=1}^{m}{f}_{i}\phantom{\rule{0.166667em}{0ex}}{p}_{i}\right)\stackrel{!}{=}max.,$$

$$\frac{\partial}{\partial {p}_{i}}\mathcal{L}=0\phantom{\rule{4pt}{0ex}}\forall i$$

$$\begin{array}{cc}\hfill {p}_{i}& ={e}^{(-1+{\lambda}_{0}+{f}_{i}{\lambda}_{1})}\phantom{\rule{4pt}{0ex}}\phantom{\rule{4pt}{0ex}}\forall i\hfill \end{array}$$

$$\begin{array}{cc}\hfill \sum _{i=1}^{m}{p}_{i}=1& ={e}^{(-1+{\lambda}_{0})}\phantom{\rule{4pt}{0ex}}\sum _{i=1}^{m}{e}^{{f}_{i}{\lambda}_{1}}\hfill \end{array}$$

$$\begin{array}{cc}\hfill \sum _{i=1}^{m}{f}_{i}\phantom{\rule{0.166667em}{0ex}}{p}_{i}=\langle f\rangle & ={e}^{(-1+{\lambda}_{0})}\phantom{\rule{4pt}{0ex}}\sum _{i=1}^{m}{f}_{i}\phantom{\rule{0.166667em}{0ex}}{e}^{{f}_{i}{\lambda}_{1}}\hfill \end{array}$$

$$\begin{array}{c}\hfill \langle f\rangle =\frac{{\displaystyle \sum _{i=1}^{m}}{f}_{i}\phantom{\rule{0.166667em}{0ex}}{x}_{\mathrm{s}}^{{f}_{i}}}{{\displaystyle \sum _{i=1}^{m}}{x}_{\mathrm{s}}^{{f}_{i}}}\end{array}$$

$$\begin{array}{cc}\hfill {p}_{i}& ={e}^{(-1+{\lambda}_{0})}\xb7{x}_{\mathrm{s}}^{{f}_{i}}\hfill \\ \hfill 1& ={e}^{(-1+{\lambda}_{0})}\xb7\sum _{i=1}^{m}{x}_{\mathrm{s}}^{{f}_{i}}\hfill \end{array}$$

$$\begin{array}{c}\hfill {p}_{i}=\frac{{x}_{\mathrm{s}}^{{f}_{i}}}{{\displaystyle \sum _{j=1}^{m}}{x}_{\mathrm{s}}^{{f}_{j}}}\phantom{\rule{4pt}{0ex}}.\end{array}$$

$$\begin{array}{cc}\hfill {H}_{\mathrm{s}}& =-\sum _{i=1}^{m}\frac{{x}_{\mathrm{s}}^{{f}_{i}}}{{\displaystyle \sum _{j=1}^{m}}{x}_{\mathrm{s}}^{{f}_{j}}}ln\frac{{x}_{\mathrm{s}}^{{f}_{i}}}{{\displaystyle \sum _{j=1}^{m}}{x}_{\mathrm{s}}^{{f}_{j}}}\hfill \end{array}$$

$$\begin{array}{cc}\hfill {H}_{\mathrm{s}}& =-\frac{1}{{\displaystyle \sum _{j=1}^{m}}{x}_{\mathrm{s}}^{{f}_{j}}}\sum _{i=1}^{m}{x}_{\mathrm{s}}^{{f}_{i}}\left(ln{x}_{\mathrm{s}}^{{f}_{i}}-ln\sum _{j=1}^{m}{x}_{\mathrm{s}}^{{f}_{j}}\right)\hfill \end{array}$$

$$\begin{array}{c}\hfill {H}_{\mathrm{s}}=-\frac{{\displaystyle \sum _{i=1}^{m}}{x}_{\mathrm{s}}^{{f}_{i}}ln{x}_{\mathrm{s}}^{{f}_{i}}}{{\displaystyle \sum _{j=1}^{m}}{x}_{\mathrm{s}}^{{f}_{j}}}+ln\sum _{i=1}^{m}{x}_{\mathrm{s}}^{{f}_{i}}\end{array}$$

#### 2.3. Constrained Maximization of a Cmpound System

Given a compound system composed of N single systems as mentioned in the last section, each of which can reside in either of m possible states and with each state i being assigned a value ${f}_{i}$ of a discrete random variable F, the number of possible states is ${m}^{N}$. With ${q}_{k}$ the probabilities of the compound system, where k denotes the state, when the single system 1 is in state ${i}_{1}$, single system 2 is in state ${i}_{2}$ and so on: $k\phantom{\rule{0.166667em}{0ex}}\widehat{=}\phantom{\rule{0.166667em}{0ex}}{i}_{1},\dots ,{i}_{N}$, the probabilities can be rewritten as:
with
Let G be a random variable related to the states of the compound system, and ${g}_{k}$ be the according value of G in the state k. ${g}_{k}$ is chosen in such a way, that it represents the sum of the random variables F of the single systems:
with ${f}_{{i}_{1}}$ the value of F of particle 1 in state ${i}_{1}$ and so on. The mean value $\langle g\rangle $ of G, which will act as constraint for the compound system, is (cf. Equation (12)):
The mean value of the compound system is the sum of the mean values of the single systems. If the single systems are equal, their mean value is the same:
resulting in
Now we are looking for the probability distribution $\overline{q}$ which fulfills the normalization condition, guarantees the mean value $\langle g\rangle $ given by the constraint, and yields the maximum value ${H}_{\mathrm{c}}$ for the Shannon entropy. The result will depend on the constraint $\langle g\rangle $:
Again applying Lagrange’s method, the solutions (17), (18) and (19) of the single system can be reused by replacing $f\to g$, ${x}_{\mathrm{s}}\to {x}_{\mathrm{c}}$, ${H}_{\mathrm{s}}\to {H}_{\mathrm{c}}$ and considering that the number of states is now ${m}^{N}$. With ${x}_{\mathrm{c}}$ being the solution of (cf. Equation (17))
the probabilities of the compound system are (cf. Equation (18))
and the Shannon entropy of the compound system is (cf. Equation (19)):
Inserting Equation (21) into Equation (28) results in:
as explicitly derived in the supplementary material. Taking into account Equation (26) we get:
By comparing Equation (32) with Equation (17) one can see that the solutions ${x}_{\mathrm{s}}$ and ${x}_{\mathrm{c}}$ fulfill the same equations; they are equal and their subscripts can therefore be omitted:
Now we again use Equation (21) and insert it into Equation (30). The result is:
with intermediate steps given in the supplementary material. The same expression can be obtained when Equations (20) and (21) are inserted into the probabilities, Equation (29), resulting in
and using this for calculating Shannon entropy by means of Equation (3). This alternative derivation is also included in the supplementary material.

$$\begin{array}{c}\hfill {q}_{k}={q}_{{i}_{1},\dots ,{i}_{N}}\end{array}$$

$$\begin{array}{ccc}\hfill k& =& 1\dots {m}^{N}\hfill \\ \hfill {i}_{1}& =& 1\dots m\hfill \\ & \vdots & \\ \hfill {i}_{N}& =& 1\dots m\hfill \end{array}$$

$$\begin{array}{c}\hfill {g}_{k}={g}_{{i}_{1},\dots ,{i}_{N}}={f}_{{i}_{1}}+\dots +{f}_{{i}_{N}}\end{array}$$

$$\begin{array}{cc}\hfill \langle g\rangle & =\sum _{k=1}^{{m}^{N}}{g}_{k}\phantom{\rule{0.166667em}{0ex}}{q}_{k}\hfill \end{array}$$

$$\begin{array}{cc}& =\sum _{{i}_{1}=1}^{m}\dots \sum _{{i}_{N}=1}^{m}{g}_{{i}_{1},\dots ,{i}_{N}}\phantom{\rule{0.166667em}{0ex}}{q}_{{i}_{1},\dots ,{i}_{N}}\hfill \end{array}$$

$$\begin{array}{cc}& =\langle {f}_{1}\rangle +\dots +\langle {f}_{N}\rangle \hfill \end{array}$$

$$\langle {f}_{1}\rangle =\langle {f}_{2}\rangle =\dots =\langle {f}_{N}\rangle \equiv \langle f\rangle \phantom{\rule{4pt}{0ex}},$$

$$\langle g\rangle =N\langle f\rangle \phantom{\rule{4pt}{0ex}}.$$

$$\begin{array}{cc}\hfill \overline{q}& =\overline{q}\left(\langle g\rangle \right)\hfill \\ \hfill {H}_{\mathrm{c}}=-\sum _{k=1}^{{m}^{N}}{q}_{k}ln{q}_{k}& ={H}_{\mathrm{c}}\left(\langle g\rangle \right)\hfill \end{array}$$

$$\begin{array}{c}\hfill \langle g\rangle =\frac{{\displaystyle \sum _{i=1}^{{m}^{N}}}{g}_{i}\phantom{\rule{4pt}{0ex}}{x}_{\mathrm{c}}^{{g}_{i}}}{{\displaystyle \sum _{j=1}^{{m}^{N}}}{x}_{\mathrm{c}}^{{g}_{j}}}\end{array}$$

$$\begin{array}{c}\hfill {q}_{k}=\frac{{x}_{\mathrm{c}}^{{g}_{k}}}{{\displaystyle \sum _{j=1}^{{m}^{N}}}{x}_{\mathrm{c}}^{{g}_{j}}}\phantom{\rule{4pt}{0ex}},\phantom{\rule{4pt}{0ex}}k=1\dots {m}^{N}\phantom{\rule{4pt}{0ex}},\end{array}$$

$$\begin{array}{c}\hfill {H}_{\mathrm{c}}=-\frac{{\displaystyle \sum _{i=1}^{{m}^{N}}}{x}_{\mathrm{c}}^{{g}_{i}}ln{x}_{\mathrm{c}}^{{g}_{i}}}{{\displaystyle \sum _{j=1}^{{m}^{N}}}{x}_{\mathrm{c}}^{{g}_{j}}}+ln\sum _{i=1}^{{m}^{N}}{x}_{\mathrm{c}}^{{g}_{i}}\end{array}$$

$$\begin{array}{c}\hfill \langle g\rangle =N\frac{{\displaystyle \sum _{k=1}^{m}}{f}_{k}{x}_{\mathrm{c}}^{{f}_{k}}}{{\displaystyle \sum _{k=1}^{m}}{x}_{\mathrm{c}}^{{f}_{k}}}\end{array}$$

$$\begin{array}{cc}\hfill \langle f\rangle & =\frac{{\displaystyle \sum _{k=1}^{m}}{f}_{k}{x}_{\mathrm{c}}^{{f}_{k}}}{{\displaystyle \sum _{k=1}^{m}}{x}_{\mathrm{c}}^{{f}_{k}}}\hfill \end{array}$$

$${x}_{\mathrm{s}}={x}_{\mathrm{c}}=x$$

$$\begin{array}{cc}\hfill {H}_{\mathrm{c}}& =N\left(-\frac{{\displaystyle \sum _{i=1}^{m}}{x}_{\mathrm{c}}^{{f}_{i}}ln{x}_{\mathrm{c}}^{{f}_{i}}}{{\displaystyle \sum _{i=1}^{m}}{x}_{\mathrm{c}}^{{f}_{i}}}+ln\sum _{i=1}^{m}{x}_{\mathrm{c}}^{{f}_{i}}\right)\hfill \end{array}$$

$$\begin{array}{cc}\hfill {q}_{{i}_{1},{i}_{2},\dots ,{i}_{N}}& =\frac{{x}_{\mathrm{c}}^{{f}_{{i}_{1}}}\xb7{x}_{\mathrm{c}}^{{f}_{{i}_{2}}}\xb7\dots \xb7{x}_{\mathrm{c}}^{{f}_{{i}_{N}}}}{{\left({\displaystyle \sum _{j=1}^{m}}{x}_{\mathrm{c}}^{{f}_{j}}\right)}^{N}}\phantom{\rule{4pt}{0ex}},\hfill \end{array}$$

Because of the equivalence of ${x}_{\mathrm{s}}$ and ${x}_{\mathrm{c}}$, Equation (33), we can rewrite Equations (19) and (34):
Comparing both these equations yields the result:
Equation (36) illustrates that homogeneity is also fulfilled for compound systems underlying an extremalization principle with respect to one constraint. The crucial assumption we made is that the constraint of the subsystems and the constraint of the compound system obey equation (21).

$$\begin{array}{cc}\hfill {H}_{\mathrm{s}}& =-\frac{{\displaystyle \sum _{i=1}^{m}}{x}^{{f}_{i}}ln{x}^{{f}_{i}}}{{\displaystyle \sum _{j=1}^{m}}{x}^{{f}_{j}}}+ln\sum _{i=1}^{m}{x}^{{f}_{i}}\hfill \\ \hfill {H}_{\mathrm{c}}& =N\left(-\frac{{\displaystyle \sum _{i=1}^{m}}{x}^{{f}_{i}}ln{x}^{{f}_{i}}}{{\displaystyle \sum _{i=1}^{m}}{x}^{{f}_{i}}}+ln\sum _{i=1}^{m}{x}^{{f}_{i}}\right)\hfill \end{array}$$

$$\begin{array}{c}\hfill {H}_{\mathrm{c}}=N{H}_{\mathrm{s}}\end{array}$$

#### 2.4. Systems Underlying Several Constraints

To be more general we consider systems under several constraints, again beginning with a single system. Let α be the number of random variables ${F}_{1},{F}_{2},\dots {F}_{\alpha}$ as constraints, and m the number of possible states. The value of ${F}_{1}$ in the state i is ${f}_{1,i}$, the according value of ${F}_{2}$ is ${f}_{2,i}$ etc. The constraints are given by the mean values $\langle {f}_{1}\rangle ,\langle {f}_{2}\rangle ,\dots ,\langle {f}_{\alpha}\rangle $ of the random variables, with
Straightforward application of Lagrange’s method of constrained extremalization results [1.0] in (cf. Equation (18)):
with the abbreviation
and the ${X}_{1},{X}_{2},\dots ,{X}_{\alpha}$ being the solutions of the following system of equations (cf. Equation (17)):
Calculating the Shannon entropy with the probabilities given by Equation (37) yields (cf. Equation (19)):

$$\begin{array}{cc}\hfill \langle {f}_{1}\rangle & =\sum _{i}{p}_{i}\phantom{\rule{0.166667em}{0ex}}{f}_{1,i}\hfill \\ \hfill \langle {f}_{2}\rangle & =\sum _{i}{p}_{i}\phantom{\rule{0.166667em}{0ex}}{f}_{2,i}\hfill \\ & \vdots \hfill \\ \hfill \langle {f}_{\alpha}\rangle & =\sum _{i}{p}_{i}\phantom{\rule{0.166667em}{0ex}}{f}_{\alpha ,i}\phantom{\rule{4pt}{0ex}}.\hfill \end{array}$$

$$\begin{array}{cc}\hfill {p}_{i}& =\frac{{A}_{i}}{{\displaystyle \sum _{j}}{A}_{j}}\phantom{\rule{4pt}{0ex}},\hfill \end{array}$$

$$\begin{array}{cc}\hfill {A}_{i}& ={X}_{1}^{{f}_{1,i}}\xb7{X}_{2}^{{f}_{2,i}}\xb7\dots \xb7{X}_{\alpha}^{{f}_{\alpha ,i}}\hfill \end{array}$$

$$\begin{array}{c}\hfill \begin{array}{cc}\hfill \frac{{\displaystyle \sum _{i}}{f}_{1,i}\phantom{\rule{4pt}{0ex}}{A}_{i}}{{\displaystyle \sum _{j}}{A}_{j}}& =\langle {f}_{1}\rangle \hfill \\ & \vdots \hfill \\ \hfill \frac{{\displaystyle \sum _{i}}{f}_{\alpha ,i}\phantom{\rule{4pt}{0ex}}{A}_{i}}{{\displaystyle \sum _{j}}{A}_{j}}& =\langle {f}_{\alpha}\rangle \hfill \end{array}\end{array}$$

$$\begin{array}{c}\hfill {H}_{\mathrm{s}}=-\frac{{\displaystyle \sum _{i}}{A}_{i}ln{A}_{i}}{{\displaystyle \sum _{j}}{A}_{j}}+ln\sum _{i}{A}_{i}\end{array}$$

We consider a compound system composed of N of these single systems, with α random variables ${G}_{1},{G}_{2},\dots ,{G}_{\alpha}$, which are associated to the random variables of the single systems in the same way indicated by Equations (22), (23), (24), (25) and (26). The value of ${G}_{1}$ in the state k is ${g}_{1,k}$, the according value of ${G}_{2}$ is ${g}_{2,k}$ and so on, and they are related to the random variables of the single system by (cf. Equation (21)):
The constraints are given as the mean values $\langle {g}_{1}\rangle ,\langle {g}_{2}\rangle ,\dots ,\langle {g}_{\alpha}\rangle $ of the random variables, with
Straightforward application of Lagrange’s method of constrained extremalization results in (cf. Equations (18) and (37)):
with the abbreviation
and with the ${Y}_{1},{Y}_{2},\dots ,{Y}_{\alpha}$ being the solutions of the following system of equations (cf. Equations (17) and (39)):
Calculating the Shannon entropy with the probabilities given by Equation (43) yields (cf. Equations (19) and (40)):
According to Equation (42) we replace the right hand side of the first equation of system (45) with $N\langle {f}_{1}\rangle $,
and all other equations of system (45) with the according expressions. In the definition of the ${B}_{k}$ we replace the exponents ${g}_{1,k},{g}_{2,k},\dots ,{g}_{\alpha ,j}$ according to Equation (41) and insert the expression into Equation (47). The evaluation yields:
with $\widehat{{A}_{i}}$ defined similarly to ${A}_{i}$ for the single system, Equation (38), but now with the factors ${Y}_{1},{Y}_{2},\dots ,{Y}_{\alpha}$:
The system of equations for ${X}_{1},\dots ,{X}_{\alpha}$ for the single system, Equation (39), is the same as for the ${Y}_{1},\dots ,{Y}_{\alpha}$ for the compound system, Equation (48), resulting in:
Now, replacing all Y-factors in the definition of the ${B}_{k}$, (44), with the according X-factors results in:
Inserting these expressions into the Shannon entropy of the compound system, Equation (46), we get the result:
and comparing with Equation (40) we have
$$\begin{array}{cc}\hfill {H}_{\mathrm{c}}& =N\phantom{\rule{0.166667em}{0ex}}{H}_{\mathrm{s}}\hfill \end{array}$$
It is therefore proven that the Shannon entropy of compound systems underlying several constraints is homogeneous if the constraints behave according to Equations (41) and (42).

$${g}_{1,k}={f}_{1,{i}_{1}}+{f}_{1,{i}_{2}}+\dots +{f}_{1,{i}_{N}}$$

$$\begin{array}{cc}\hfill \langle {g}_{1}\rangle & =\sum _{k}{q}_{k}\phantom{\rule{0.166667em}{0ex}}{g}_{1,k}=N\langle {f}_{1}\rangle \hfill \\ \hfill \langle {g}_{2}\rangle & =\sum _{k}{q}_{k}\phantom{\rule{0.166667em}{0ex}}{g}_{2,k}=N\langle {f}_{2}\rangle \hfill \\ & \vdots \hfill \\ \hfill \langle {g}_{\alpha}\rangle & =\sum _{k}{q}_{k}\phantom{\rule{0.166667em}{0ex}}{g}_{\alpha ,k}=N\langle {f}_{\alpha}\rangle \phantom{\rule{4pt}{0ex}}.\hfill \end{array}$$

$$\begin{array}{cc}\hfill {q}_{k}& =\frac{{B}_{k}}{{\displaystyle \sum _{j}}{B}_{j}}\phantom{\rule{4pt}{0ex}},\hfill \end{array}$$

$$\begin{array}{cc}\hfill {B}_{k}& ={Y}_{1}^{{g}_{1,k}}\xb7{Y}_{2}^{{g}_{2,k}}\xb7\dots \xb7{Y}_{\alpha}^{{g}_{\alpha ,k}}\hfill \end{array}$$

$$\begin{array}{c}\hfill \begin{array}{cc}\hfill \frac{{\displaystyle \sum _{k}}{g}_{1,k}\phantom{\rule{4pt}{0ex}}{B}_{k}}{{\displaystyle \sum _{j}}{B}_{j}}& =\langle {g}_{1}\rangle \hfill \\ & \vdots \hfill \\ \hfill \frac{{\displaystyle \sum _{k}}{g}_{\alpha ,k}\phantom{\rule{4pt}{0ex}}{B}_{k}}{{\displaystyle \sum _{j}}{B}_{j}}& =\langle {g}_{\alpha}\rangle \hfill \end{array}\end{array}$$

$$\begin{array}{c}\hfill {H}_{\mathrm{c}}=-\frac{{\displaystyle \sum _{k}}{B}_{k}ln{B}_{k}}{{\displaystyle \sum _{j}}{B}_{j}}+ln\sum _{k}{B}_{k}\end{array}$$

$$N\langle {f}_{1}\rangle =\frac{{\displaystyle \sum _{k}}{g}_{1,k}\phantom{\rule{4pt}{0ex}}{B}_{k}}{{\displaystyle \sum _{j}}{B}_{j}}\phantom{\rule{4pt}{0ex}},$$

$$\begin{array}{c}\hfill \begin{array}{cc}\hfill \langle {f}_{1}\rangle & =N\frac{{\sum}_{i}{f}_{1,i}\widehat{{A}_{i}}}{{\sum}_{j}\widehat{{A}_{j}}}\hfill \\ & \vdots \hfill \\ \hfill \langle {f}_{\alpha}\rangle & =N\frac{{\sum}_{i}{f}_{\alpha ,i}\widehat{{A}_{i}}}{{\sum}_{j}\widehat{{A}_{j}}}\phantom{\rule{4pt}{0ex}},\hfill \end{array}\end{array}$$

$$\begin{array}{cc}\hfill \widehat{{A}_{i}}& ={Y}_{1}^{{f}_{1,i}}\xb7{Y}_{2}^{{f}_{2,i}}\xb7\dots \xb7{Y}_{\alpha}^{{f}_{\alpha ,i}}\hfill \end{array}$$

$$\begin{array}{cc}\hfill {Y}_{1}& ={X}_{1}\hfill \\ \hfill {Y}_{2}& ={X}_{2}\hfill \\ & \vdots \hfill \\ \hfill {Y}_{\alpha}& ={X}_{\alpha}\hfill \end{array}$$

$$\begin{array}{cc}\hfill \sum _{k}{B}_{k}ln{B}_{k}& =N\left(\sum _{i}{A}_{i}ln{A}_{i}\right){\left(\sum _{i}{A}_{i}\right)}^{N-1}\hfill \\ \hfill \sum _{k}{B}_{k}& ={\left(\sum _{i}{A}_{i}\right)}^{N}\hfill \\ \hfill ln\sum _{k}{B}_{k}& =Nln\sum _{i}{A}_{i}\hfill \end{array}$$

$$\begin{array}{cc}\hfill {H}_{\mathrm{c}}& =N\left(-\frac{{\displaystyle \sum _{i}}{A}_{i}ln{A}_{i}}{{\displaystyle \sum _{j}}{A}_{j}}+ln\sum _{i}{A}_{i}\right)\hfill \end{array}$$

Equations (21) and (26) for systems underlying one constraint as well as Equations (41) and (42) for systems underlying several constraints reveal that homogeneity of Shannon entropy is guaranteed, if the constraints behave homogeneously, i.e., in a linear dependence of the number of subsystems:
We can therefore conclude that the assumption of both independent subsystems and of a compound system underlying a maximization principle with respect to additive constraints lead to the same important result: the homogeneity of the Shannon entropy of the compound system, hence the homogeneity of the modeled thermodynamic entropy. Both assumptions also act as prerequisites for homogeneity and can be regarded as complementary views of the same property of a compound system; neither of those aspects is preferred to the other.

$$\begin{array}{cc}\hfill \langle g\left(N\right)\rangle & =N\phantom{\rule{0.166667em}{0ex}}\langle f\rangle \phantom{\rule{1.em}{0ex}}\Rightarrow \phantom{\rule{1.em}{0ex}}\langle g(const.\xb7N)\rangle =const.\xb7N\phantom{\rule{0.166667em}{0ex}}\langle f\rangle =const.\xb7\langle g\left(N\right)\rangle \hfill \end{array}$$

## 3. Application to Thermodynamic Modeling of Fluid Phases

Amendatory to the previous sections where considerations were established for single and compound systems in general, in the following the application to thermodynamic modeling of fluid phases shall be discussed. These models describe the systems under consideration from the viewpoint of their possible states. For this purpose we reflect on the limiting cases of fluid phases, the ideal gas model and the condensed phase lattice system.

#### 3.1. Ideal Gas

The ideal gas can be considered to be a compound system, consisting of a huge number of ideal and equal particles with no interactions among them. These particles are treated as the subsystems of the compound system. The mechanical state of a particle in the sense of classical mechanics is given by its position and velocity vectors, so the state is described by 6 random variables. The kinetic state of the ideal particle does not depend on its position and vice versa, so the position and velocity vectors are independent random variables. Consequently, as discussed in section 2.4, this leads to two statistically independent probability distributions, and the Shannon entropy splits in a kinetic and a positional term:
Therefore, maximizing H can be split by maximizing ${H}_{\mathrm{kin}}$ and ${H}_{\mathrm{pot}}$ separately. We restrict our considerations to the maximization of the kinetic term, which still comprises three random variables: one for the velocity and two for the direction of the movement. Assuming isotropy for the ideal gas means that the distribution of the kinetic energy does not depend on the direction of the movement. Hence we can again argue that the velocity is independent from the two other random variables, and we restrict our considerations to the kinetic states of the particles, defined only by the mean of their velocity, equivalent to their kinetic energy e. The kinetic energy is in fact a continuous variable. But in order to use the discrete formulation of Shannon entropy, Equation (1), we can discretize it by introducing an arbitrarily small energy quantum $\Delta \u03f5$:
The discretized energy ${e}_{i}$ is meant only as a mathematical artifice. In the limit $\Delta \u03f5\to 0$ all possible continuous states can be represented. The kinetic, discrete state k of the ideal gas is then defined by the kinetic states of the particles: $k\phantom{\rule{0.166667em}{0ex}}\widehat{=}\phantom{\rule{0.166667em}{0ex}}{i}_{1},{i}_{2},\dots ,{i}_{N}$. Obviously, the kinetic energy of the whole system in the state k is the sum of the kinetic energies of the single particles:
cf. with Equations (21) and (41), and the additivity of the kinetic energy acting as constraint follows immediatley as
in accordance with Equations (26) and (42), and therefore additivity of the Shannon entropy of the kinetic term is guaranteed, cf. with Equation (36):
This result is the basis for the discrete modeling of the ideal gas, to be presented in a subsequent paper.

$$H={H}_{\mathrm{kin}}+{H}_{\mathrm{pot}}$$

$${e}_{i}=i\phantom{\rule{0.166667em}{0ex}}\Delta \u03f5\phantom{\rule{4pt}{0ex}}.$$

$${E}_{k}={E}_{{i}_{1},\dots ,{i}_{N}}={e}_{{i}_{1}}+\dots +{e}_{{i}_{N}}\phantom{\rule{4pt}{0ex}},$$

$$\langle E\rangle =N\langle e\rangle \phantom{\rule{4pt}{0ex}},$$

$${H}_{\mathrm{kin},\mathrm{c}}=N{H}_{\mathrm{kin},\mathrm{s}}$$

#### 3.2. Condensed Phase Lattice Systems

Lattice systems are mostly applied for strongly interacting condensed phases where molecular distances correspond to the liquid or solid state. Many engineering models used in process simulators for chemical-engineering purposes such as activity coefficient models or equations of state are originally based on lattice models [13][14][15]. One of the reasons for this is that such models can easily be verified by Monte-Carlo simulations, alleviating model development and verification. Therefore, in the following the peculiarities of lattice systems shall be discussed from the viewpoint of Shannon entropy.

A lattice system provides fixed sites, each of which is occupied by one molecule in the simplest case, each of which interacts with its closest neighbors. In the following we apply the maximization presented in section 2 to an exemplary, one-dimensional lattice, comprising molecules of two types.

In terms of section 2, in the following the whole lattice is considered as the compound system, composed of sites which represent the subsystems.

#### 3.2.1. The concept of subsystems applied to a lattice system

The simplest way to define a subsystem in terms of section 1.1 for a lattice is to use a single lattice site isolated from its adjacent neighbors. In a linear lattice system with two components such an isolated site has ${2}^{1}=2$ possible discrete states, as illustrated in Figure 1(a).

**Figure 1.**All possible discrete states of a single lattice site as subsystem of a linear lattice system when observed (a) isolated from its z nearest neighbors and (b) associated with its neighbors. In a linear lattice, considering only the nearest neighbors, $z=2$.

However, a concept of an isolated lattice which does not take its nearest, interacting neighbors into account does not allow for the formulation of constraints including interaction energies between sites, even though such constraints are essential for model development. For this reason, we introduce the concept of a single lattice site associated with its z nearest neighbors as subsystem, z representing the coordination number. The subsystem comprises ($z+1$) sites, as illustrated in Figure 1(b). In this concept, the discrete state of a lattice site is determined not only by its own molecule type but also by the type and arrangement of the z nearest neighbors contributing to energetic interactions. Here it is assumed that molecular interactions are confined to the nearest neighbors of the central molecule. If molecules beyond the direct neighbors also contribute to interactions, the concept of associated sites can be extended accordingly.

#### 3.2.2. The unconstrained system

Shannon entropy of a subsystem: Without consideration of any constraints, it follows from equation (4a) that both of the two possible states shown in Figure 1(a) have the same probability, ${p}_{{\displaystyle \u25cf}}={p}_{{\displaystyle \u25cb}}=\frac{1}{2}$, corresponding to a system with an equal number of black and white sites. Equation (4b) for an isolated site with 2 possible states yields

$${H}_{\mathrm{s,iso}}=ln2$$

For an associated site shown in Figure 1(b), consisting of ($z+1$) sites, again according to Equation (4a), all possible states are equally probable. The number of possible states is now ${2}^{z+1}$, yielding the maximum Shannon entropy of
which is the ($z+1$)-fold of the Shannon entropy of the isolated site given by (51).

$${H}_{\mathrm{s,ass}}=ln{2}^{z+1}=(z+1)\phantom{\rule{0.166667em}{0ex}}ln2\phantom{\rule{4pt}{0ex}},$$

In a next step, the possibility of expressing the Shannon entropy of a compound lattice system by the Shannon entropy of its constituting subsystems shall be examined.

Shannon entropy of a compound system: When distributing two types of molecules over a lattice comprising N sites, the number of possible states is given by ${2}^{N}$, yielding the maximum Shannon entropy of
which is the N-fold of the maximum Shannon entropy of an isolated site, cf. Equation (51). When considering associated sites as subsystems, where a subsystem consists of ($z+1$) sites, the number of subsystems is
Now the number of states of the compound system is ${{2}^{z+1}}^{\widehat{N}}$, and the according Shannon entropy yields
which is the $\widehat{N}$-fold of the maximum Shannon entropy of an associated site, cf. Equation (52).

$${H}_{c}=ln{2}^{N}=N\phantom{\rule{0.166667em}{0ex}}ln2=N\phantom{\rule{0.166667em}{0ex}}{H}_{\mathrm{s,iso}}\phantom{\rule{4pt}{0ex}},$$

$$\widehat{N}=\frac{N}{z+1}$$

$${H}_{c}=ln{{2}^{z+1}}^{\widehat{N}}=\widehat{N}\phantom{\rule{0.166667em}{0ex}}ln{2}^{z+1}=\widehat{N}\phantom{\rule{0.166667em}{0ex}}{H}_{\mathrm{s,ass}}\phantom{\rule{4pt}{0ex}},$$

Equations (52)-(54) reveal the homogeneity of the Shannon entropy of unconstrained lattice systems, cf. Equation (8):
where ${H}_{c}$ now denotes the Shannon entropy of the whole lattice as compound system, ${H}_{s}$ is the Shannon entropy of the considered subsystem, i.e., isolated or associated site, and N is the number of subsystems.

$${H}_{c}=N\phantom{\rule{0.166667em}{0ex}}{H}_{s}\phantom{\rule{4pt}{0ex}},$$

#### 3.2.3. System considering constraints

There are basically three types of constraints to be considered in a lattice system: Energy, composition and the equivalence of contact pairs between molecules of different types.

Energy: As mentioned at the beginning of section 3.2, the intended purpose of lattice systems is the consideration of interaction energies between adjacent lattice sites. Therefore, the concept of a single lattice site associated with its nearest neighbors was introduced in section 3.2.1. to be used as subsystem. Based on this concept, constraints considering interaction energies can be formulated generically in the form
which is in line with (12), ${u}_{i}$ designating the energy assigned to the central molecule of an associated site, ${p}_{i}^{\mathrm{ass}}$ its probability of residing in state i and $\langle u\rangle $ the mean value of energy. Figure 2 illustrates this nomenclature.

$$\langle u\rangle =\sum _{i=1}^{m}{u}_{i}\phantom{\rule{0.166667em}{0ex}}{p}_{i}^{ass}$$

**Figure 2.**Examples for states and related energies of an associated lattice site as subsystem. ε denotes the interaction energy between two sites, where each site is assigned the half of it.

To formulate the energy assigned to a compound lattice consisting of N associated sites as subsystems, we use the index k to denote the state of the compound system which is determined by the states of its subsystems: $k\phantom{\rule{0.166667em}{0ex}}\widehat{=}\phantom{\rule{0.166667em}{0ex}}{i}_{1},\dots ,{i}_{N}$. With this nomenclature, the energy of a compound system in state k is ${U}_{k}$, where
which is analogous to (21). Recalling equations (22) to (25) for the mean values of energies, it follows that
Because all single subsystems are of the same kind and no single subsystem is preferred to another, their mean value is the same, resulting in
which is analogous to (26). Using (56) as the only constraint aside from the normalization of probabilities, maximization of the Shannon entropy analog to (13) requires solution of the Lagrange function
Application of the maximization principle to (57) in line with (27) - (34) finally results in
as Shannon entropy of the compound lattice system, analogously to Equation (36). Equation (58) reveals that the Shannon entropy of a constrained lattice system can also be expressed through the Shannon entropy of subsystems, whereupon subsystems are single lattice sites associated with their respective nearest neighbors. As shown in section 2.4, several functions with the generic form of equation (55) can also be considered as constraints in the maximization principle.

$${U}_{k}={U}_{{i}_{1},\dots ,{i}_{N}}={u}_{{i}_{1}}+\dots +{u}_{{i}_{N}},$$

$$\langle U\rangle =\langle {u}_{1}\rangle +\dots +\langle {u}_{N}\rangle $$

$$\begin{array}{ccc}\hfill \langle {u}_{1}\rangle =\langle {u}_{2}\rangle =& \dots & =\langle {u}_{N}\rangle \equiv \langle u\rangle \hfill \end{array}$$

$$\begin{array}{ccc}\hfill \langle U\rangle & =& N\langle u\rangle ,\hfill \end{array}$$

$$\mathcal{L}={H}_{c}-{\lambda}_{1}\phantom{\rule{0.166667em}{0ex}}\langle U\rangle -{\lambda}_{2}\sum _{i}\left\{{p}_{i}\right\}\stackrel{!}{=}max.$$

$${H}_{c}=N\phantom{\rule{0.166667em}{0ex}}{H}_{\mathrm{s,ass}}$$

Composition: In the simplest case of a binary system, there are molecules of two types constituting the lattice. The constraint for the compound system is simply ${N}_{1}=N\phantom{\rule{0.166667em}{0ex}}{x}_{1}$, the total number of 1-molecules. ${x}_{1}$ can be interpreted in two ways: as relative fraction of 1-molecules in the system, or as probability to find a 1-molecule at a given site. Hence, if we consider compound systems of identical composition, ${N}_{1}$ behaves according to Equation (49), fulfilling the prerequisites for constraints that enable homogeneity of Shannon entropy. The same holds for ${x}_{2}$ which is related to ${x}_{1}$ by the normalization condition. This can easily be extended to systems comprising an arbitrary number of components.

Equivalence of contact pairs: Contact pairs designate the number of contacts between molecules of different types in the system, e.g. ${N}_{2-1}$ (read ’2 around 1’) the number of all 2-molecules around all molecules of type 1, and ${N}_{1-2}$ the number of all 1-molecules around all molecules of type 2. As the number of contacts between molecules of different types must not depend on the viewpoint, the equivalence ${N}_{2-1}={N}_{1-2}$ has to be fulfilled in lattice systems generally, independent of the respective size. The according constraint for the maximization prinziple is
This equating to zero is a homogeneous function in terms of Equation (49).

$${N}_{2-1}-{N}_{1-2}=0$$

In summary, all three types of constraints are homogeneous in terms of Equation (49), ensuring that after maximization the Shannon entropy of a compound system is also homogeneous. The complete Lagrange function finally comprises the mean values of energy, composition and equivalence of contact pairs as constraints to be considered in a lattice model. Practical application will be shown in a subsequent paper.

## 4. Conclusions

The scope of this paper was to clarify prerequisites for applying the concept of Shannon entropy and maximum entropy principle to thermodynamic modeling of extensive systems. The main criterion for applicability of this kind of modeling is the additivity of the Shannon entropy. It was shown that this additivity is guaranteed, provided that the additivity of the constraints is given. If a thermodynamic model comprises additive constraints, this prerequisite is fulfilled, and the method is explicitly applicable to systems of interacting components, i.e., real fluids. This was shown for two limiting cases of fluid phases, the ideal gas model and condensed phase lattice systems.

The main benefit of thermodynamic modeling based on Shannon entropy is that it makes the equilibrium distribution of discrete states available. This establishes new possibilities for thermodynamic and mass transport models as it allows consideration of a more detailed picture of physical behavior of matter on a molecular basis, beyond the scope of traditional modeling methods. This will be exploited in subsequent papers.

## Supplementary Materials

Supplementary File 1## Acknowledgments

The authors gratefully acknowledge support from NAWI Graz.

## Author Contributions

M.P. contributed section 2 and section 3.1, T.W. contributed section 3.1, section 1 and section 4 were joint contributions of M.P. and T.W. The paper was read and complemented by A.P.

## Conflicts of Interest

The authors declare no conflicts of interest.

## References

- Shannon, C.E. A Mathematical Theory of Communication. Bell Sys. Techn. Journ.
**1948**, 27, 379–423,623–656. [Google Scholar] [CrossRef] - Jaynes, E.T. Information Theory and Statistical Mechanics. Phys. Rev.
**1957**, 106, 620–630. [Google Scholar] [CrossRef] - Jaynes, E.T. Information Theory and Statistical Mechanics. II. Phys. Rev.
**1957**, 108, 171–189. [Google Scholar] [CrossRef] - Jaynes, E.T. Gibbs vs Boltzmann Entropies. Am. Journ. Phys.
**1965**, 33, 391–398. [Google Scholar] [CrossRef] - Wehrl, A. General Properties of Entropy. Rev. Mod. Phys.
**1978**, 50, 221–260. [Google Scholar] [CrossRef] - Guiasu, S.; Shenitzer, A. The Principle of Maximum Entropy. Math. Intell.
**1985**, 7, 42–48. [Google Scholar] [CrossRef] - Ben-Naim, A. Entropy Demystified; World Scientific Publishing: Singapore, 2008. [Google Scholar]
- Ben-Naim, A. A Farewell to Entropy: Statistical Thermodynamics Based in Information; World Scientific Publishing: Singapore, 2008. [Google Scholar]
- Curado, E.; Tsallis, C. Generalized Statistical Mechanics: Connection with Thermodynamics. J. Phys. A
**1991**, 24, L69–L72. [Google Scholar] [CrossRef] - Tsallis, C. Nonadditive Entropy: The Concept and its Use. Europ. Phys. Journ. A
**2009**, 40, 257–266. [Google Scholar] [CrossRef] - Maczek, A. Statistical Thermodynamics; Oxford University Press: Oxford, UK, 1998. [Google Scholar]
- Wilde, D.J.; Beightler, C.S. Foundations of Optimization; Prentice-Hall: Englewood Cliffs, NJ, USA, 1967. [Google Scholar]
- Fowler, R.H.; Kapitza, P.; Mott, N.F.; Bullard, E.C. Mixtures - The Theory of the Equilibrium Properties of Some Simple Classes of Mixtures, Solutions and Alloys; Oxford at the Clarendon Press, 1952. [Google Scholar]
- Abrams, D.S.; Prausnitz, J.M. Statistical Thermodynamics of Liquid Mixtures: A New Expression for the Excess Gibbs Energy of Partly or Completely Miscible Systems. AIChE J.
**1975**, 21, 116–128. [Google Scholar] [CrossRef] - Bronneberg, R.; Pfennig, A. MOQUAC, a New Expression for the Excess Gibbs Energy based on Molecular Orientations. Fluid Phase Equilib.
**2013**, 338, 67–77. [Google Scholar] [CrossRef]

© 2014 by the authors; licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution license ( http://creativecommons.org/licenses/by/3.0/).