TSENS

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:

y=Tnodey = T_{node}

Where:

  • y is 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: Qsensor=0 WQ_{sensor} = 0\text{ W}.

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 -> uPlotDisplay

Remarks & 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 (∘C^\circ\text{C}), subtract 273.15273.15 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