Given an array of strings representing substance names, this function returns the integer index of the substance named "water" (case-insensitive).
This function is useful to automate lookup up the index of water within a media so as to avoid hard-coding or guessing what the index will be. Typically, this function would be run once at initialization time.
function determineWaterIndex input String[:] substanceNames "Names of substances of media"; output Integer idxWat "Index of water"; end determineWaterIndex;
N==2
.