CFD Pipe Flow
cfd_pipe_flowCalculate analytic pressure drop and flow regime for straight-pipe internal flow, including laminar and turbulent friction, to screen designs before OpenFOAM CFD.
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}.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"diameter_mm": "<diameter_mm>",
"length_mm": "<length_mm>"
},
"name": "cfd_pipe_flow"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| fluid | No | water-20c | |
| mu_pa_s | No | ||
| length_mm | Yes | ||
| rho_kg_m3 | No | ||
| workspace | No | Run this call in this named workspace | |
| diameter_mm | Yes | ||
| roughness_mm | No | ||
| velocity_m_s | No | ||
| flow_rate_lpm | No |