Calculation of a generic pressure loss in dependence of nominal fluid variables (e.g., nominal density, nominal dynamic viscosity) at an operation point via interpolation. This generic function considers the pressure loss law via a pressure loss exponent and the influence of density and dynamic viscosity on pressure loss.
Generally this function is numerically best used for the incompressible case , where the mass flow rate (m_flow) is known (as state variable) in the used model and the corresponding pressure loss (DP) has to be calculated. On the other hand the function dp_nominalDensityViscosity_MFLOW is numerically best used for the compressible case if the pressure loss (dp) is known (out of pressures as state variable) and the mass flow rate (M_FLOW) has to be calculated. See more information.
function dp_nominalDensityViscosity_DP extends Modelica.Icons.Function; import FD = Modelica.Fluid.Dissipation.PressureLoss.General; input Modelica.Fluid.Dissipation.PressureLoss.General.dp_nominalDensityViscosity_IN_con IN_con "Input record for function dp_nominalDensityViscosity_DP" annotation( Dialog(group = "Constant inputs")); input Modelica.Fluid.Dissipation.PressureLoss.General.dp_nominalDensityViscosity_IN_var IN_var "Input record for function dp_nominalDensityViscosity_DP" annotation( Dialog(group = "Variable inputs")); input SI.MassFlowRate m_flow "Mass flow rate" annotation( Dialog(group = "Input")); output SI.Pressure DP "Output for function dp_nominalDensityViscosity_DP"; end dp_nominalDensityViscosity_DP;