.OpenHydraulics.Basic.BaseClasses.massFlowRate_dp_WallFriction

Information

Return mass flow rate from constant loss factor data, pressure drop and Re (m_flow = f(dp))

Interface

function massFlowRate_dp_WallFriction
  extends Modelica.Icons.Function;
  input SI.Pressure dp "Pressure drop (dp = port_a.p - port_b.p)";
  input SI.Density d_a "Density at port_a";
  input SI.Density d_b "Density at port_b";
  input SI.DynamicViscosity eta_a "Dynamic viscosity at port_a (dummy if use_eta = false)";
  input SI.DynamicViscosity eta_b "Dynamic viscosity at port_b (dummy if use_eta = false)";
  input SI.Length length "Length of pipe";
  input SI.Diameter diameter "Inner (hydraulic) diameter of pipe";
  input SI.Length roughness(min = 0) = 2.5e-5 "Absolute roughness of pipe, with a default for a smooth steel pipe";
  output SI.MassFlowRate m_flow "Mass flow rate from port_a to port_b";
  import Modelica.Constants.pi;
end massFlowRate_dp_WallFriction;

Generated at 2024-12-21T19:25:56Z by OpenModelicaOpenModelica 1.24.3 using GenerateDoc.mos