Weld-neck flange
Single forged weld-neck flange: tapered hub from the B16.5 / B16.47 hub diameter down to the pipe OD, B16.25 37.5° weld bevel with root land, bore matched to the pipe schedule and real drilled bolt holes. Raised face with a serrated finish, flat face, or ring-type joint with the B16.5 octagonal groove for the class. Optional butt-welded pipe stub; the rim carries a stamped marking.
Installation
Copies piping/weld-neck-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 { WeldNeckFlange } from './components/deck-twin/piping/weld-neck-flange'
export default function Scene() {
return (
<Canvas shadows camera={{ position: [8, 5, 9], fov: 35 }}>
<Stage>
<WeldNeckFlange />
</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 | "10" | "20" | "40" | "STD" | "80" | "XS" | "160" | "XXS" | "10S" | "40S" | "80S" | null | |
stub | number (m) | null | 0 – 1 |
tag | string | null | |
...group | position, rotation, scale… |
P&ID
In section: a flange disc with a long tapered hub narrowing to the pipe wall and a butt weld at the hub end. On P&IDs just a short bar across the line; on isometrics a bar with a weld dot.
The flange type comes from the piping class, not the P&ID. The long taper identifies weld-neck; slip-on and socket-weld have short hubs; lap-joint has a loose ring on a stub end.
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/weld-neck-flange.json, or copy a ready-made instruction:
Add the Deck Twin "Weld-neck flange" component to this project. Run `npx -y https://decktwin.com/cli/deck-twin-0.2.2.tgz add weld-neck-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 weld-neck-flange` for its props, ranges and ports. Render <WeldNeckFlange /> 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