Stud bolt set
Complete stud-bolt set for one flanged joint: stud count, diameter and RF length from the ASME B16.5 bolting tables, threaded A193 B7 studs with chamfered ends and B7 end marks, two A194 2H heavy hex nuts each with washer face and 2H mark, set at a made-up joint grip so a few threads protrude. Coating: PTFE blue, hot-dip galvanised, black or zinc-nickel. Laid out on the bolt circle or in a row.
Installation
Copies piping/stud-bolt-set.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 { StudBoltSet } from './components/deck-twin/piping/stud-bolt-set'
export default function Scene() {
return (
<Canvas shadows camera={{ position: [8, 5, 9], fov: 35 }}>
<Stage>
<StudBoltSet />
</Stage>
<OrbitControls makeDefault />
</Canvas>
)
}
Props
| Prop | Type | Default | Range |
|---|---|---|---|
nps | number (NPS, in) | null | |
rating | 150 | 300 | 600 | 900 | 1500 | 2500 | null | |
coating | "ptfe-blue" | "hot-dip" | "black" | "zinc-nickel" | null | |
layout | "joint" | "row" | null | |
...group | position, rotation, scale… |
P&ID
Not drawn on P&IDs; in joint details, studs are lines through both flanges with a hex nut at each end, specified in the bill of materials by number, diameter and length.
Quantity and size come from ASME B16.5 tables for the NPS and class; coating from the piping or coating specification.
npsratingcoatingTypical suppliers
Fabory. 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/stud-bolt-set.json, or copy a ready-made instruction:
Add the Deck Twin "Stud bolt set" component to this project. Run `npx -y https://decktwin.com/cli/deck-twin-0.2.2.tgz add stud-bolt-set` (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 stud-bolt-set` for its props, ranges and ports. Render <StudBoltSet /> 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