TSENS

Torque Sensor

Mechanics
Run the live example Free · no sign-up · runs in your browser

The Torque Sensor block measures the transmitted mechanical torque flowing through an active rotary shaft branch and outputs it as a causal continuous numerical signal.

The sensor introduces zero torsional compliance or friction, acting as an ideal zero-deflection torquemeter inserted in series with the drivetrain. The measured torque is output on port out for feedback control, monitoring, and telemetry.

Real-World Analog: Represents an inline rotary torque transducer or strain-gauge shaft torque meter measuring through torsional effort without rotational lag.

Mathematical Model

The sensor enforces an ideal rigid mechanical constraint while measuring the through-flow torque:

ωa−ωb=0andτout(t)=τ(a→b)\omega_a - \omega_b = 0 \quad \text{and} \quad \tau_{\text{out}}(t) = \tau(a \to b)

Where:

  • \omega_a is the angular velocity at input flange A in radians per second (rad/s\text{rad/s}).
  • \omega_b is the angular velocity at output flange B in radians per second (rad/s\text{rad/s}).
  • \tau(a \to b) is the through torque transmitted from flange A to flange B in Newton-meters (N⋅m\text{N}\cdot\text{m}).
  • \tau_{\text{out}}(t) is the causal signal output on port out in Newton-meters (N⋅m\text{N}\cdot\text{m}).

Inputs & Outputs

Direction ID Label Type Status
→ In flange_a A number Required
→ In flange_b B number Required
← Out out τ number Output

Usage Examples

Drivetrain Torque Transmission

Measure torque delivered by a motor to a rotating inertia:

TorqueSource -> TorqueSensor(flange_a)
TorqueSensor(flange_b) -> Inertia
TorqueSensor(out) -> uPlotDisplay

Over-Torque Fault Protection

Route transmitted torque into a limit comparator for safety interlocks:

TorqueSensor(out) -> Compare(threshold=150) -> Assertion

Remarks & Best Practices

  • Through-Flow Sensor: Analogous to an ideal ammeter in electrical networks or flow sensor in hydraulic systems.
  • Series Insertion: Must be connected in series between two rotating shafts to measure transmitted torque.
  • Signed Directionality: Torque entering flange A and exiting flange B registers as a positive measurement.
  • MNA Formulation: Implemented via an auxiliary branch current/flow constraint in the MNA solver.

Related Components