cfd_pipe_flow
Compute analytic pressure drop and flow regime for straight pipes to screen internal-flow cases before CFD. Handles laminar Hagen–Poiseuille and turbulent Blasius/Colebrook correlations.
Instructions
Analytic straight-pipe pressure drop (NO solver) — the fast internal-flow screen
and the exact gate the OpenFOAM cfd_internal_flow solve is checked against. Laminar
(Re<2300) is Hagen–Poiseuille Δp = 128·μ·L·Q/(π·D⁴) with its D⁴ scaling — exact;
turbulent uses smooth-pipe Blasius, or Colebrook–White when roughness_mm is given
(the Colebrook value is always reported for turbulent flow) — a ±10 % Moody-band
correlation (fidelity labeled). Give flow as flow_rate_lpm or velocity_m_s;
fluid μ,ρ from a name ('water-20c','air-20c','oil-sae30-20c','glycerin-20c') or
explicit mu_pa_s+rho_kg_m3. Escalate turbulent cases to
cfd_internal_flow_submit(turbulence='kOmegaSST').
Returns {reynolds, regime, velocity_m_s, flow_rate_m3_s, friction_factor, colebrook_friction_factor, relative_roughness, pressure_drop_pa, wall_shear_pa, hagen_poiseuille_pa, laminar, fidelity, band_pct, escalate_to}.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| fluid | No | water-20c | |
| mu_pa_s | No | ||
| length_mm | Yes | ||
| rho_kg_m3 | No | ||
| diameter_mm | Yes | ||
| roughness_mm | No | ||
| velocity_m_s | No | ||
| flow_rate_lpm | No |