Plug valve (lubricated)
Short-pattern lubricated taper plug valve with a tall cast plug chamber, bolted top cover and gland, bottom cover with adjusting screw, stop lugs, sealant (lubricant) fitting on the stem, flow arrow and nameplate. Square-head wrench up to NPS 6 and a worm gear above; open turns the wrench or indicator a quarter turn.
Installation
Copies valves/plug-valve.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 { PlugValve } from './components/deck-twin/valves/plug-valve'
export default function Scene() {
return (
<Canvas shadows camera={{ position: [8, 5, 9], fov: 35 }}>
<Stage>
<PlugValve />
</Stage>
<OrbitControls makeDefault />
</Canvas>
)
}
Props
| Prop | Type | Default | Range |
|---|---|---|---|
nps | number (NPS, in) | null | |
rating | 150 | 300 | 600 | 900 | 1500 | 2500 | null | |
operator | "auto" | "wrench" | "gear" | null | |
open | number | null | 0 – 1 |
tag | string | null | |
...group | position, rotation, scale… |
P&ID
Bow-tie with a small rectangle (the plug) at the centre where the triangles meet; manual plug valves show a wrench or T on the stem.
Legends vary: some draw a plug valve as a bow-tie with a filled triangle-in-circle, others as a ball valve with "P" or "PLUG". Check the legend; the valve code in the line class confirms it.
npsratingoperatortagTypical suppliers
Flowserve Nordstrom. 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/plug-valve.json, or copy a ready-made instruction:
Add the Deck Twin "Plug valve (lubricated)" component to this project. Run `npx -y https://decktwin.com/cli/deck-twin-0.2.2.tgz add plug-valve` (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 plug-valve` for its props, ranges and ports. Render <PlugValve /> 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