.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-11-26T19:26:15Z by OpenModelicaOpenModelica 1.24.2 using GenerateDoc.mos