Threaded flange
ASME B16.5 threaded (screwed) flange with an ASME B1.20.1 NPT taper thread through the hub (11.5 or 8 threads per inch by size, 1:16 taper) and a 45° entry chamfer. The pipe is made up power-tight with two threads showing at the hub end; optional seal weld. RF / FF / RTJ facing, real bolt holes. Where B16.5 has no threaded flange (Class 1500 above NPS 2-1/2, Class 2500 above NPS 12), the next lower class that has one is used.
Installation
Copies piping/threaded-flange.tsx and the shared lib/ into src/components/deck-twin/. Needs three, @react-three/fiber and @react-three/drei. See installation for the manual route.
Usage
import { Canvas } from '@react-three/fiber'
import { OrbitControls } from '@react-three/drei'
import { Stage } from './components/deck-twin/lib/stage'
import { ThreadedFlange } from './components/deck-twin/piping/threaded-flange'
export default function Scene() {
return (
<Canvas shadows camera={{ position: [8, 5, 9], fov: 35 }}>
<Stage>
<ThreadedFlange />
</Stage>
<OrbitControls makeDefault />
</Canvas>
)
}
Props
| Prop | Type | Default | Range |
|---|---|---|---|
nps | number (NPS, in) | null | |
rating | 150 | 300 | 600 | 900 | 1500 | 2500 | null | |
facing | "RF" | "FF" | "RTJ" | null | |
schedule | "40" | "80" | "160" | "XXS" | null | |
stub | number (m) | null | 0 – 0.6 |
sealWeld | boolean | null | |
tag | string | null | |
...group | position, rotation, scale… |
P&ID
In section: a flange with a short hub and thread marks (zig-zag) in the bore where the pipe screws in, sometimes with a seal weld. On P&IDs a short bar, usually on utility or small-bore lines.
Zig-zag thread lines in the bore identify it. Most offshore hydrocarbon piping classes do not allow threaded joints; expect it on utility water or air.
npsratingfacingschedulesealWeldtagTypical suppliers
All Metals & Forge Group. The geometry is generic and sized from public standards. It is not vendor CAD.
For agents
Machine-readable entry with props, ranges, defaults and ports:
Or fetch /r/threaded-flange.json, or copy a ready-made instruction:
Add the Deck Twin "Threaded flange" component to this project. Run `npx -y https://decktwin.com/cli/deck-twin-0.2.2.tgz add threaded-flange` (it copies the file and the shared lib into src/components/deck-twin/), then `npx -y https://decktwin.com/cli/deck-twin-0.2.2.tgz info threaded-flange` for its props, ranges and ports. Render <ThreadedFlange /> inside a React Three Fiber <Canvas shadows>, wrapped in <Stage> from src/components/deck-twin/lib/stage. Set props from my data (metres, NPS in inches, ASME class) and leave the rest at defaults. Install three, @react-three/fiber, @react-three/drei and @types/three if they're missing. Full guide: https://decktwin.com/skill/SKILL.md