oring_groove
Compute static O-ring gland dimensions from the ring cross-section and optionally cut the annular groove into a planar face to seat the seal.
Instructions
Compute a static O-ring gland (groove) and optionally cut it into a face.
This is the gland calc designers always fumble, plus an optional cut. Given the O-ring cross-section it returns standard static-seal gland dimensions; with cut=True it also machines the annular groove into a flat face.
cross_section: O-ring wire cross-section diameter in mm (e.g. 1.78, 2.62). Required, > 0. inner_diameter: groove inner diameter in mm (the O-ring's nominal seal ID). Required when cut=True; used to size the returned diameters either way. handle: host solid to cut into (required only when cut=True). face: the flat face to cut the groove into — a stable f_* tag (preferred), a 'FaceN' index string, or an int. Required when cut=True. Must be planar. gland_type: seal-geometry label, default 'static_radial' (informational). compound: optional elastomer + durometer the RING is ordered in ("NBR70", "FKM75", "EPDM70"). Changes no geometry; it completes the AS568 designation of the ring itself — the purchased part this groove exists to hold, which no BOM would otherwise contain because the ring is never a modelled object. cut: True (default) cuts the groove and returns a new solid; False makes this a pure calculator (no geometry, no handle). name: name for the resulting solid when cut=True.
Gland rule (static seal): groove_depth = cross_section0.75 (~25% squeeze, clamped to a 20-30% band), groove_width = cross_section1.30. The groove's inner diameter equals inner_diameter and it spans outward by groove_width.
Returns {groove_depth, groove_width, groove_inner_diameter,
groove_outer_diameter, squeeze_pct, cross_section, gland_type, oring} (all mm
except squeeze_pct in percent). When cut=True it ALSO returns {handle, name,
volume} for the grooved solid; the host input is hidden. mating numbers: cut a
groove of inner_diameter to seat an O-ring of that ID; groove_outer_diameter
sizes the radial space the groove occupies. oring is the RING's designation
card ("AS568-214 NBR70"), or ok=False naming the nearest tabulated sizes when
the gland is not an AS568 standard size — an off-table ring is a custom tooled
part, and saying so beats naming a dash number that will not seal.
oring_catalog is the ring's off-the-shelf verdict.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cut | No | ||
| face | No | ||
| name | No | ORingGroove | |
| handle | No | ||
| compound | No | ||
| gland_type | No | static_radial | |
| cross_section | Yes | ||
| inner_diameter | No |