Simplified calculation of Reynolds Number using the mass flow rate m_flow
instead of the velocity v
to express inertial forces.
Re = |m_flow|*diameter/(A*μ) with m_flow = v*ρ*A
See 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 (e.g., hydraulic diameter)"; input SI.Area A "Cross sectional area of flow"; output SI.ReynoldsNumber Re "Reynolds number"; end ReynoldsNumber_m_flow;