m_flow
instead of
the velocity v
to express inertial forces.
Re = |m_flow|*diameter/A/μ with m_flow = v*ρ*ASee also Pipes.BaseClasses.CharacteristicNumbers.ReynoldsNumber.
function ReynoldsNumber_m_flow extends Modelica.Icons.Function; input SI.MassFlowRate m_flow "Mass flow rate"; input SI.DynamicViscosity mu "Dynamic viscosity"; input SI.Length D "Characteristic dimension (hydraulic diameter of pipes or orifices)"; input SI.Area A = Modelica.Constants.pi / 4 * D * D "Cross sectional area of fluid flow"; output SI.ReynoldsNumber Re "Reynolds number"; end ReynoldsNumber_m_flow;