Socket-weld flange
Small-bore ASME B16.5 socket-weld flange (NPS 1/2–3, to 2-1/2 in Class 900 / 1500). The socket bore and depth come from B16.5, the pipe-stop shoulder steps down to the schedule bore, and the inserted pipe stands 1.6 mm off the shoulder as an expansion gap before the outside fillet weld. RF / FF / RTJ facing, real bolt holes.
Installation
Copies piping/socket-weld-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 { SocketWeldFlange } from './components/deck-twin/piping/socket-weld-flange'
export default function Scene() {
return (
<Canvas shadows camera={{ position: [8, 5, 9], fov: 35 }}>
<Stage>
<SocketWeldFlange />
</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" | "40S" | "80S" | null | |
stub | number (m) | null | 0 – 0.6 |
tag | string | null | |
...group | position, rotation, scale… |
P&ID
In section: a small-bore flange with a socket the pipe slides into against a shoulder (small gap at the bottom), and one fillet weld at the hub. On P&IDs a short bar on a small-bore (≤ 2") line.
Socket-weld is small-bore only (NPS ½–3). Threaded flanges show thread hatching in the bore instead of a weld.
npsratingfacingscheduletagTypical 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/socket-weld-flange.json, or copy a ready-made instruction:
Add the Deck Twin "Socket-weld flange" component to this project. Run `npx -y https://decktwin.com/cli/deck-twin-0.2.2.tgz add socket-weld-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 socket-weld-flange` for its props, ranges and ports. Render <SocketWeldFlange /> 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