Description
Form stadium area πr²+2rL and full perimeter 2πr+2L and return four times area/perimeter.
Solid-geometry formulas assume particular shapes and measurement directions. Axial height, slant length, filled-volume centroid, and surface centroid are different quantities even when they describe the same object.
Form stadium area πr²+2rL and full perimeter 2πr+2L and return four times area/perimeter.
When to use this tool
Use Stadium Shape Hydraulic Diameter when you need a local dimension, area, or centroid term for the stated ideal solid.
How to use the tool and how it works
- Enter radius, straightLength. Use the units and conventions below.
- Run the tool. Correct any format, range, or cross-field input error before interpreting the output.
- Read diameter. Use the output convention below.
Require positive radius and nonnegative straightLength. Form stadium area πr²+2rL and full perimeter 2πr+2L and return four times area/perimeter.1
| Input field | Meaning and units | Accepted input |
|---|---|---|
| radius | Radius in the common length unit, with its geometric role defined above. | Required. Finite number; strictly above 0. |
| straightLength | Straight Length | Required. Finite number; minimum 0. |
| Output field | Interpretation | Returned shape |
|---|---|---|
| diameter | Diameter | Required. Finite number. |
{
"input": {
"radius": 2,
"straightLength": 0
},
"output": {
"diameter": 4
}
} Limitations and assumptions
- StraightLength is each straight side between semicircular ends, not total outer length; this full-boundary hydraulic diameter does not model partially filled flow, roughness, or channel operation.
- Inputs must satisfy both the field types and the cross-field conditions above. Invalid input causes an error; a successful false flag or documented placeholder is a different result.
- Numeric calculations use binary floating point unless exact decimal-integer arithmetic is explicitly stated. No hidden measurement tolerance or decimal rounding is added; nonfinite or out-of-contract results are rejected. Numeric signed-zero results are exported as zero.
Alternative or Complementary methods
Use a complete solid model for clipping, oblique shapes, or nonuniform material. Confirm radius, height, and centroid conventions before applying an ideal-shape identity.
References
Similar or alternative tools
- Cylinder Oblique Section Area Factor
Divide π × radius² by that cosine for area and return its reciprocal factor.
- Rhombus Inscribed Circle Radius
Require positive firstDiagonal and secondDiagonal and return their product divided by twice their hypotenuse.