.BuildingSystems.Fluid.HeatExchangers.BaseClasses.determineWaterIndex

Information

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.

Interface

function determineWaterIndex
  input String[:] substanceNames "Names of substances of media";
  output Integer idxWat "Index of water";
end determineWaterIndex;

Revisions


Generated at 2024-05-16T18:15:58Z by OpenModelicaOpenModelica 1.22.4 using GenerateDoc.mos