HomeCalculatorsPhysicsFluid MechanicsSluice Gate Calculator
Physics calculator

Sluice Gate Calculator

Compute free-flow undershot sluice discharge from gate opening a, width b, and upstream depth y1. Runs locally. C_d is Swamee 1992, not an input. Not a tank orifice, not a weir, not a flume, not Manning, and not Q=Av.

Instant result
Result
—

Enter values to calculate.

Inputs—
Mode—
Formula—
Trust summary CVP VERIFIED · CVP protocol 1.0.0-proposed · Engineering assurance · Swamee 1992 free-flow undershot sluice Q=C_d a b √(2g y1), + O3 mpmath tabulated Q.
Input interpretation
Enter values to calculate.
Result
—
Verified scope
Swamee 1992 free-flow undershot sluice Q=C_d a b √(2g y1), + O3 mpmath tabulated Q.
Assurance
Engineering
Declared partition coverage
PASS · 5/5 declared partitions (flow, alias, awkward, deep, invalid-domain) · Matrix
Deferred
Not drowned y2, not orifice Cd/A/d, not Manning, not thin-plate L, not Parshall/ogee.
Numerical scope
O2: Swamee free-flow sluice vs a separate-module identity (≤2 ULP). Not drowned y2, not orifice Cd/A/d, not Manning, and not a weir crest L. ≤2 ULP vs O3 applies only to the published tabulated sluice vectors. Not drowned y2, not orifice, not Manning, and not a weir crest L.
Known limitations
  • Core CVP does not include live graph, viewport, or pointer interaction.
Model
Swamee 1992 free-flow undershot sluice discharge, opening, or upstream depth. SI a, b, y1, Q.
Scope
Swamee 1992 free-flow undershot sluice: Q = C_d a b √(2g y1); C_d = 0.611 [(y1−a)/y1]^{0.072}; SI a, b, y1, Q; C_d is reported, not an input
Verification
Engine tested · Source checked · v1.0.0 · CVP VERIFIED · CVP protocol 1.0.0-proposed · Engineering assurance · Swamee 1992 free-flow undershot sluice Q=C_d a b √(2g y1), + O3 mpmath tabulated Q.· View Manifest · CVP overview · Specification
Versions
Calculation 1.0.0 · CVP protocol 1.0.0-proposed · Evidence 2026-09-26.o2-o3
Verification revision
2026-09-26.o2-o3 · 1/1 property · digest 6b068cb73e7c
Legacy regression
7/7 tests · Production surface contract 6/6
Trust layers
Verification VERIFIED · Production CURRENT · Overall CVP state: VERIFIED under CVP 1.0.0-proposed
Reference
O1 model · O3 expected_values · O3 numerical_behavior · O2 expected_values · O2 numerical_behavior
Interfaces
PASS · UI (SSR) / REST / MCP — ui-ssr is query-result HTML, not a live browser session. Error-path engine·REST·MCP 1/1 (status, code, calculation_version). SSR compared on URL-canonical requested calculations; empty query is idle (not an error) and JSON-typed object/array inputs are REST/MCP-only.
Supplemental domain review
Not performed
Named expert review
Not performed
CVP suite
4/4 golden · 1/1 CVP boundary · 3/3 invalid · 1/1 property · 1/1 metamorphic · 8/8 O3 · 2/2 cross-interface · 6/6 CVP contract · Manifest
Sources
Sources
Evidence
1 legacy golden · legacy regression suite · 4/4 oracle-backed golden · 3/3 invalid · Artifact integrity PASS
This calculator CURRENT · Public schema 1.0.0 matches · Semantic contract ✓ · Production attested · Public/cache ✓ · Origin ✓
Semantic contract
PASS
Full verification

Manifest identity, reference classes, interfaces, suite, and production records.

Formulas

Core equations used by this calculator.

DischargeQ = C_d a b √(2 g y1)
Discharge coefficientC_d = 0.611 [(y1 − a)/y1]^{0.072}
iSI. a, b, and y1 in metres; Q in m³/s. Envelope a/y1∈[0.05, 0.65]. Submerged flow is out of scope. Do not send query v — that is calculation_version.

How to use

1

Enter gate opening a

Vertical opening in metres. This is not orifice area A or diameter d.

2

Enter gate width b

Span across the channel. This is not flume throat W or weir crest L.

3

Enter upstream depth y1 or discharge Q

Give a and y1 to compute Q, or Q and y1 to invert a. y1 is not weir H.

Example calculations

Common configurations with formula and result.

ϟ

a=0.2 m, b=1 m, y1=1 m

Free-flow undershot sluice

C_d = 0.611 (0.8)^{0.072}
Q≈0.53256 m³/s
ϟ

Invert a from that Q

b=1 m, y1=1 m, Q≈0.53256 m³/s

solve C_d(a) a b √(2g y1) = Q
a=0.20000 m

Sluice Gate calculator specification

Version 1.0.0 · Engine tested

Calculation status

Review policy · Evidence

Definition
Swamee 1992 free-flow undershot sluice. Q = C_d a b √(2g y1) with C_d = 0.611 [(y1−a)/y1]^{0.072}. a is the vertical gate opening, not orifice area A. b is gate width, not flume throat W or weir crest L. y1 is upstream depth, not weir H or flume Ha. C_d is reported, not an input. Envelope a/y1∈[0.05, 0.65], y1>a, free flow only. Default g=9.80665 m/s². Not tank orifice C_d A √(2gH), not thin-plate weir, not broad-crested weir, not Parshall, not cutthroat, not Manning n, not Q=Av, not submerged y2.
What it calculates
Swamee 1992 free-flow undershot sluice discharge, opening, or upstream depth. SI a, b, y1, Q.
Inputs
  • mode?
  • b
  • a | Q
  • y1 | Q
Outputs
  • Q
  • a
  • b
  • y1
  • Cd
  • g
  • mode
  • model
Formula
Q = C_d a b √(2g y1); C_d = 0.611 [(y1−a)/y1]^{0.072}
Assumptions
  • Swamee 1992 free-flow undershot sluice: Q = C_d a b √(2g y1); C_d = 0.611 [(y1−a)/y1]^{0.072}; SI a, b, y1, Q; C_d is reported, not an input
  • Gate opening a is not orifice area A; y1 is upstream depth, not weir H; a/y1∈[0.05, 0.65]; y1 > a; free flow only
  • Not thin-plate weir, not tank orifice C_d A √(2gH), not a flume, not Manning n, not Q=Av, not submerged y2
Units
  • SI; a, b, and y1 in m; Q in m³/s; C_d dimensionless
Boundary conditions
  • missing a, b, y1, or Q when required → MISSING_REQUIRED_INPUT
  • Cd, orifice A/d/D/H, weir L, flume W/Ha/L_f, Manning n/R/S, Q=Av v, y2 → MIXED_INPUT_ENCODING
  • a ≥ y1 or a/y1 outside [0.05, 0.65] → VALUE_OUT_OF_RANGE
  • mode=orifice|weir|parshall|cutthroat or unknown mode → MIXED_INPUT_ENCODING or INVALID_MODE
Example
a=0.2 b=1 y1=1 → Q≈0.53256
Validation cases

4 published on this page · 7/7 tests · Production surface contract 6/6 · View evidence

  • a=0.2 b=1 y1=1 → Q≈0.53256 m³/s
  • a=0.2 b=1 y1=1 Cd=0.61 → MIXED_INPUT_ENCODING
  • A=0.2 b=1 y1=1 → MIXED_INPUT_ENCODING
  • kind=orifice a=0.2 b=1 y1=1 → MIXED_INPUT_ENCODING
Sources
  • Swamee, P.K. — Sluice-Gate Discharge Equations — Free-flow undershot C_d
    Supports: C_d = 0.611 [(y1−a)/y1]^{0.072}; Q = C_d a b √(2g y1); not a given orifice C_d=0.61
  • ISO 80000-4 — Mechanics — Volume flow rate
    Supports: Q is volume flow; a, b, and y1 are lengths
Calculation version
1.0.0

Background

Interpretation and common distinctions.

Compute free-flow undershot sluice discharge from gate opening, width, and upstream depth.

Supported and not supported

Supported — Swamee 1992 free-flow Q from a, b, and y1 · invert a from Q · invert y1 from Q · API physics.fluid.sluice_gate

Not supported — tank orifice given C_d, thin-plate weir, broad-crested weir, Parshall, cutthroat, Manning n, Q=Av, submerged y2

Agent / API notes

Capability id: physics.fluid.sluice_gate · tool id: sluice-gate · pin 1.0.0.

{ "a": 0.2, "b": 1, "y1": 1 }

Invert opening: { "mode": "opening", "b": 1, "y1": 1, "Q": 0.53256 }. Errors: MISSING_REQUIRED_INPUT, INVALID_NUMBER, VALUE_MUST_BE_POSITIVE, VALUE_OUT_OF_RANGE, MIXED_INPUT_ENCODING, INVALID_MODE.

Calculator URL stays /calc/physics/sluice-gate. There is no /calc/fluid.

Frequently asked questions

Key distinctions behind the calculation.

Is this a tank orifice?

No. Tank orifice Q=C_d A √(2gH) with a given C_d (default 0.61) is /calc/physics/orifice-discharge. Sending Cd, A, d, or H here is MIXED_INPUT_ENCODING. At a=0.2 m, b=1 m, y1=1 m this page reports ≈0.53256 m³/s, not 0.61·a·b·√(2gy1)≈0.54030 m³/s.

Is this a thin-plate weir?

No. Thin-plate Q=(2/3) C_d L √(2g) H^{3/2} is /calc/physics/weir-discharge. Sending H or crest L here is MIXED_INPUT_ENCODING.

Is this a broad-crested weir?

No. Rectangular broad-crested Q=C_d (2/3)^{3/2} b √g H^{3/2} is /calc/physics/broad-crested-weir. Sending H or Cd here is MIXED_INPUT_ENCODING.

Is this a Parshall or cutthroat flume?

No. Parshall is /calc/physics/parshall-flume. Cutthroat is /calc/physics/cutthroat-flume. Sending W, Ha, or L_f here is MIXED_INPUT_ENCODING.

Is this an ogee spillway?

No. USBR high-overflow ogee Q from L, H, and design head Hd is /calc/physics/ogee-spillway. Sending kind=ogee here is MIXED_INPUT_ENCODING.

Is this a side weir?

No. Borghei 1999 lateral overflow from B, y1, p, and Q1 is /calc/physics/side-weir. Sending kind=side here is MIXED_INPUT_ENCODING.

Is this the Manning formula?

No. Manning is uniform open-channel flow from n, A, R, and S at /calc/physics/manning-formula. Sending n, R, or S is MIXED_INPUT_ENCODING.

Is this Q = A·v?

No. Volumetric flow from a given area and velocity is /calc/physics/flow-rate. Sending v is MIXED_INPUT_ENCODING.

Can I send submerged y2?

No. This seed is free flow. Downstream y2 is /calc/physics/drowned-sluice. Sending y2 here is MIXED_INPUT_ENCODING.

Where does this run?

Locally in the browser by default. REST and MCP call the same fluid-engine sluiceGate wrapper.