Calc Orifice Flow
calc_orifice_flowCalculate incompressible turbulent flow through a sharp-edged orifice or fixed throttle from pressure drop, or determine pressure drop from flow, using the orifice equation and discharge coefficient.
Instructions
Flow through a sharp-edged orifice or a fixed throttle (orifice equation Q = CdAsqrt(2*dp/rho)). Give the pressure drop to get the flow, or the flow to get the pressure drop (exactly one of the two). Incompressible liquid, turbulent flow; Cd is the discharge coefficient (about 0.6 for a sharp edge).
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": "<diameter>",
"density": "<density>"
},
"name": "calc_orifice_flow"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| density | Yes | Fluid density with unit, e.g. '870 kg/m^3' | |
| diameter | Yes | Orifice (throat) diameter with unit, e.g. '5 mm' | |
| flow_rate | No | Volumetric flow, e.g. '40 L/min'. Give this OR pressure_drop, not both. | |
| flow_unit | No | Unit for the flow result, e.g. 'L/min', 'm^3/s', 'gal/min' | L/min |
| viscosity | No | Optional DYNAMIC viscosity, e.g. '40 cP'. Only used to report the orifice Reynolds number and warn when it is too low for a constant Cd. Empty = skip. | |
| pressure_drop | No | Pressure drop across the orifice, e.g. '100 bar'. Give this OR flow_rate, not both. | |
| pressure_unit | No | Unit for the pressure-drop result, e.g. 'bar', 'MPa', 'psi' | bar |
| discharge_coeff | No | Discharge coefficient Cd, 0 < Cd <= 1. Sharp-edged orifice about 0.6-0.62. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | Yes | ||
| data | No | Non-quantity payload (reports, listings) | |
| error | No | ||
| value | No | Primary quantity result | |
| values | No | All named quantity results (includes the primary) | |
| warnings | No | ||
| artifacts | No | ||
| provenance | Yes | What produced the result and from which inputs. | |
| review_status | No | unreviewed |