Temperature gauge
Bimetal dial thermometer with an every-angle (hinged, back-connected) stainless case on a one-piece flanged thermowell with lagging extension and union. Origin and port on the thermowell flange face (pointing down).
Installation
Copies instruments/temperature-gauge.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 { TemperatureGauge } from './components/deck-twin/instruments/temperature-gauge'
export default function Scene() {
return (
<Canvas shadows camera={{ position: [8, 5, 9], fov: 35 }}>
<Stage>
<TemperatureGauge />
</Stage>
<OrbitControls makeDefault />
</Canvas>
)
}
Props
| Prop | Type | Default | Range |
|---|---|---|---|
nps | number (NPS, in) | null | |
rating | 150 | 300 | 600 | 900 | 1500 | 2500 | null | |
insertion | number (m) | null | 0.1 – 0.6 |
extension | number (m) | null | 0.05 – 0.3 |
dial | 0.1 | 0.125 | 0.15 | null | |
max | 100 | 150 | 200 | 300 | 400 | null | |
tag | string | null | |
...group | position, rotation, scale… |
P&ID
Field bubble marked TI (or TG) on a thermowell pocket in the pipe; no signal line.
Same as the temperature transmitter but with TI / TG. A test thermowell with no instrument is a TW bubble alone.
npsratinginsertionextensiondialmaxtagTypical suppliers
WIKA. 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/temperature-gauge.json, or copy a ready-made instruction:
Add the Deck Twin "Temperature gauge" component to this project. Run `npx -y https://decktwin.com/cli/deck-twin-0.2.2.tgz add temperature-gauge` (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 temperature-gauge` for its props, ranges and ports. Render <TemperatureGauge /> 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