Temperature Sensor
Thermal
Run the live example
Free · no sign-up · runs in your browser
The Temperature Sensor block measures the absolute temperature at its conserving thermal port without extracting any thermal energy (ideal zero heat flow probe). It converts the physical across-variable into a standard numerical causal signal in Kelvin (K).
The output signal can be routed directly to control blocks, feedback controllers, scopes, or mathematical conversion blocks.
Real-World Analog: Represents an RTD (Pt100/Pt1000) probe, thermocouple, or thermistor bead sensing local temperature without drawing heat.
Mathematical Model
The sensor output relationship is:
Where:
yis the causal output signal in Kelvin (K).T_{node}is the solved across-variable temperature at the connected thermal node in Kelvin (K).- Heat flow through the ideal sensor probe is identically zero: .
Inputs & Outputs
| Direction | ID | Label | Type | Status |
|---|---|---|---|---|
| → In | p |
T | number | Required |
| ← Out | out |
Out | number | Output |
Usage Examples
Surface Temperature Feedback
Route measured temperature into a PID controller to regulate a heater:
ThermalMass -> TemperatureSensor(T) -> Sum(setpoint - T) -> PIDController -> HeatFlowSource
Thermal Boundary Differential Monitor
Measure temperature difference across an insulation wall:
TemperatureSensor1(T_in) & TemperatureSensor2(T_out) -> Subtraction -> uPlotDisplayRemarks & Best Practices
- Zero Loading: Ideal infinite thermal impedance measuring node temperature without altering network heat distribution.
- Absolute Kelvin Units: Reports temperatures in Kelvin. To convert to Celsius (), subtract using a Subtraction block.
- Control Integration: Bridges the physical acausal thermal network seamlessly into causal control diagrams.
- WASM Performance: Extracts the solved node state directly from the MNA solution vector at 60 FPS.
Related Components
- TemperatureSource: Prescribed boundary temperature reference
- HeatFlowSensor: Measures through heat flow rate
- ThermalMass: Lumped heat capacitance and energy storage
- PIDController: Proportional-integral-derivative feedback controller