An ice-type model is a lattice model defined on a lattice of
coordination number 4. That is, each vertex of the lattice is connected by an edge to four "nearest neighbours". A state of the model consists of an arrow on each edge of the lattice, such that the number of arrows pointing inwards at each vertex is 2. This restriction on the arrow configurations is known as the
ice rule. In
graph theoretic terms, the states are
Eulerian orientations of an underlying 4-
regular undirected graph. The partition function also counts the number of
nowhere-zero 3-flows. For two-dimensional models, the lattice is taken to be the square lattice. For more realistic models, one can use a three-dimensional lattice appropriate to the material being considered; for example, the
hexagonal ice lattice is used to analyse ice. At any vertex, there are six configurations of the arrows which satisfy the ice rule (justifying the name "six-vertex model"). The valid configurations for the (two-dimensional) square lattice are the following: : The energy of a state is understood to be a function of the configurations at each vertex. For square lattices, one assumes that the total energy E is given by : E = n_1\epsilon_1 + n_2\epsilon_2 + \ldots + n_6\epsilon_6, for some constants \epsilon_1,\ldots,\epsilon_6, where n_i here denotes the number of vertices with the ith configuration from the above figure. The value \epsilon_i is the energy associated with
vertex configuration number i. One aims to calculate the
partition function Z of an ice-type model, which is given by the formula : Z = \sum \exp(-E/k_{\rm B}T), where the sum is taken over all states of the model, E is the energy of the state, k_{\rm B} is the
Boltzmann constant, and T is the system's temperature. Typically, one is interested in the
thermodynamic limit in which the number N of vertices approaches infinity. In that case, one instead evaluates the
free energy per vertex f in the limit as N\to \infty, where f is given by : f = -k_{\rm B}T N^{-1}\log Z. Equivalently, one evaluates the
partition function per vertex W in the thermodynamic limit, where :W=Z^{1/N}. The values f and W are related by :f= -k_{\rm B}T \log W. ==Physical justification==