This function takes as inputs all the efforts and flows of the associated connector. It should be extended to add an algorithm that maps these inputs to a single value.
partial function Partial extends Modelica.Icons.Function; input Q.Current Ndot "Rate of reaction" annotation( Dialog(__Dymola_label = "<html><i>Ṅ</i></html>")); input Q.Potential g "Chemical potential" annotation( Dialog(__Dymola_label = "<html><i>g</i></html>")); input Q.Velocity phi[:] "Velocity" annotation( Dialog(__Dymola_label = "<html>φ</html>")); input Q.Force mPhidot[:] "Force" annotation( Dialog(__Dymola_label = "<html><i>m</i>Φdot</html>")); input Q.PotentialAbsolute sT "Product of specific entropy and temperature" annotation( Dialog(__Dymola_label = "<html><i>sT</i></html>")); input Q.Power Qdot "Rate of thermal advection" annotation( Dialog(__Dymola_label = "<html><i>Q̇</i></html>")); input Integer i(min = 1, max = 3) "Index of the translational axis" annotation( Dialog(__Dymola_label = "<html><i>i</i></html>")); output Real x "Value of condition" annotation( Dialog(__Dymola_label = "<html><i>x</i></html>")); end Partial;