3. DESCRIPTION OF PROGRAM OR FUNCTION
SOLGASMIX-PV, which is based on the earlier SOLGAS and SOLGASMIX codes, calculates equilibrium relationships in complex chemical systems. Chemical equilibrium calculations involve finding the system composition, within certain constraints, which contains the minimum free energy. The constraints are the preservation of the masses of each element present and either constant pressure or volume. SOLGASMIX-PV can calculate equilibria in systems containing a gaseous phase, condensed phase solutions, and condensed phases of invariant and variable stoichiometry. Either a constant total gas volume or a constant total pressure can be assumed. Unit activities for condensed phases and ideality for solutions are assumed, although nonideal systems can be handled provided activity coefficient relationships are available.