function firstProductDefinition import Chemical; extends Modelica.Icons.Function; input Modelica.Units.SI.StoichiometricNumber s[:] "Stoichiometric reaction coefficient for substrates [nS]"; input Modelica.Units.SI.StoichiometricNumber p[:] "Stoichiometric reaction coefficient for products [nP]"; input Chemical.Interfaces.Definition process "Data record of process changes"; input Chemical.Interfaces.Definition substrates[:] "Substrates definitions [nS]"; input Chemical.Interfaces.Definition products[:] "Products definitions [nP]"; output Chemical.Interfaces.Definition firstProductDefinition "Definition of the first product in process"; end firstProductDefinition;