Steam trap
Steam trap for condensate drainage. Thermodynamic: a compact stainless disc trap with its disc chamber under a screwed, hex-topped insulating cap. Float: a ball-float and thermostatic trap with a cast chamber below the line, a bolted cover, an air-vent boss on top and a drain plug. Both have an integral Y-type strainer with a blowdown valve, a downstream test valve with T-handle, a cast flow arrow and a tag plate. Ends are screwed (female NPT in hex bosses) or ASME B16.5 flanged; proportions are typical.
Installation
Copies piping/steam-trap.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 { SteamTrap } from './components/deck-twin/piping/steam-trap'
export default function Scene() {
return (
<Canvas shadows camera={{ position: [8, 5, 9], fov: 35 }}>
<Stage>
<SteamTrap />
</Stage>
<OrbitControls makeDefault />
</Canvas>
)
}
Props
| Prop | Type | Default | Range |
|---|---|---|---|
kind | "thermodynamic" | "float" | null | |
nps | number (NPS, in) | null | |
ends | "flanged" | "screwed" | null | |
rating | 150 | 300 | 600 | 900 | 1500 | 2500 | null | |
strainer | boolean | null | |
testValve | boolean | null | |
tag | string | null | |
...group | position, rotation, scale… |
P&ID
A small square (or circle) in the condensate line marked T or ST, often preceded by a strainer and followed by a check valve and a test valve, at the low point of a steam line.
Box with T on a steam or condensate line = steam trap. Some legends tag traps TR, which clashes with transformer tags.
kindnpsendsratingstrainertestValvetagFor agents
Machine-readable entry with props, ranges, defaults and ports:
Or fetch /r/steam-trap.json, or copy a ready-made instruction:
Add the Deck Twin "Steam trap" component to this project. Run `npx -y https://decktwin.com/cli/deck-twin-0.2.2.tgz add steam-trap` (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 steam-trap` for its props, ranges and ports. Render <SteamTrap /> 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