Reducer
Butt-welding concentric or eccentric reducer (flat on top or bottom) with a smooth cone between short straight ends. End-to-end length from ASME B16.9 for the large end; B16.25 weld bevels or welded weld-neck flanges. Port A is the large end on the axis; for eccentric reducers port B is offset by the radius difference.
Installation
Copies piping/reducer.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 { Reducer } from './components/deck-twin/piping/reducer'
export default function Scene() {
return (
<Canvas shadows camera={{ position: [8, 5, 9], fov: 35 }}>
<Stage>
<Reducer />
</Stage>
<OrbitControls makeDefault />
</Canvas>
)
}
Props
| Prop | Type | Default | Range |
|---|---|---|---|
nps | number (NPS, in) | null | |
smallNps | number (NPS, in) | null | |
schedule | "10" | "20" | "40" | "STD" | "80" | "XS" | "160" | "XXS" | "10S" | "40S" | "80S" | null | |
kind | "concentric" | "eccentric" | null | |
flat | "top" | "bottom" | null | |
ends | "butt-weld" | "flanged" | null | |
rating | 150 | 300 | 600 | 900 | 1500 | 2500 | null | |
service | "none" | "oil" | "gas" | "multiphase" | "water" | "seawater" | "firewater" | "steam" | "air" | "nitrogen" | "chemical" | "flare" | "drain" | "fuel-gas" | "diesel" | "potable" | "cooling" | null | |
...group | position, rotation, scale… |
P&ID
A trapezoid in the line, the large end facing the larger pipe, with the two sizes written beside it (e.g. 8"×6"). Eccentric reducers have one flat side, noted FOT (flat on top) or FOB (flat on bottom).
A size change at a valve or pump nozzle is often shown only by the size note. Eccentric FOT reducers sit on pump suctions.
npssmallNpsschedulekindflatendsratingserviceTypical suppliers
Weldbend. 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/reducer.json, or copy a ready-made instruction:
Add the Deck Twin "Reducer" component to this project. Run `npx -y https://decktwin.com/cli/deck-twin-0.2.2.tgz add reducer` (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 reducer` for its props, ranges and ports. Render <Reducer /> 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