Create a phase fraction vector, unset phase element are distributed evenly so sum(phaseVector) = 1
function createPhaseFractionVector input String[:] phaseId = {"Liquid", "Vapor"} "Phase id vector"; input Real[size(phaseId, 1)] phaseValues = {0.5, 0.5} "Values for each phaseId element"; output Real[nP] phaseVector; end createPhaseFractionVector;