Reynolds number computation for all fluids (inputs: P, h, fluid, v, D)
function Reynolds_PhvD
input Units.SI.AbsolutePressure P "Pressure (Pa)";
input Units.SI.SpecificEnthalpy h "Specific enthalpy (J/kg)";
input Integer fluid "<html>Fluid number: <br>1 - Water/Steam <br>2 - C3H3F5 <br>3 - FlueGases <br>4 - MoltenSalt <br>5 - Oil <br>6 - DryAirIdealGas <br>7 - WaterSteamSimple </html>";
input Integer mode "IF97 region - 0:automatic computation";
input Real Xco2 "CO2 mass fraction";
input Real Xh2o "H2O mass fraction";
input Real Xo2 "O2 mass fraction";
input Real Xso2 "SO2 mass fraction";
input Units.SI.Velocity v "Mean velocity of fluid flow";
input Units.SI.Length D "Characteristic dimension (hydraulic diameter of pipes)";
output Units.SI.ReynoldsNumber Re "Reynolds number";
end Reynolds_PhvD;
Generated at 2024-11-22T19:25:38Z
by OpenModelicaOpenModelica 1.24.2 using GenerateDoc.mos