Define dimension factor φ for different types of fittings.
function FittingPhi extends Modelica.Icons.Function; input SI.Velocity v "Flow velocity"; input SI.Diameter D_i "Pipe diameter of inlet (LHS)"; input SI.Diameter D_o "Pipe diameter of outlet (RHS)"; input SI.Length L "Fitting length"; input Modelica.Units.NonSI.Angle_deg theta = 90 "Angle of the tapered reduction/expansion"; input SI.Density rho "Density"; input SI.DynamicViscosity mu "Dynamic viscosity of water"; input SI.Height p_eps "Pipe roughness height"; input Types.Fitting fit_type "Type of pipe fitting"; output Real phi; end FittingPhi;