Previously, only the initial mass fractions could be specified. Now, the initial values can be specified in terms of mass fractions, mole fractions, molar concentrations, number densities, or densities. When opening an old Model MPH file, Mixture specification is set to
Mass fractions, and the mass fractions specified are entered in the respective text fields. In old model files for Java
®, commands specifying the initial value of a mass fraction return an error in version 5.0 and later. To specify the initial mass fraction of a species
w2, which is the second in the list of species (seen in the
Dependent Variables section when clicking the interface), change the COMSOL API Java
® command