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.Pressure Deltap "Difference in pressure" annotation(
Dialog(__Dymola_label = "<html>Δ<i>p</i></html>"));
input Q.Current Ndot "Current" annotation(
Dialog(__Dymola_label = "<html><i>Ṅ</i></html>"));
input Q.Velocity Deltaphi[Orient] "Difference in velocity" annotation(
Dialog(__Dymola_label = "<html>Δφ</html>"));
input Q.Force mPhidot[Orient] "Shear force" annotation(
Dialog(__Dymola_label = "<html><i>m</i>Φdot</html>"));
input Q.Temperature DeltaT "Difference in temperature" annotation(
Dialog(__Dymola_label = "<html>Δ<i>T</i></html>"));
input Q.Power Qdot "Rate of thermal conduction" annotation(
Dialog(__Dymola_label = "<html><i>Q̇</i></html>"));
input Orient orient "Orientation of translational momentum w.r.t. the boundary";
output Real x "Value of condition" annotation(
Dialog(__Dymola_label = "<html><i>x</i></html>"));
end Partial;