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:
Where:
\omega_ais the angular velocity at input flange A in radians per second ().\omega_bis the angular velocity at output flange B in radians per second ().\tau(a \to b)is the through torque transmitted from flange A to flange B in Newton-meters ().\tau_{\text{out}}(t)is the causal signal output on portoutin Newton-meters ().
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) -> AssertionRemarks & 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
- AngularVelocitySensor: Across-variable rotational speed sensor
- TorqueSource: Prescribed mechanical torque generator
- RotationalSpring: Compliant torsional element
- Inertia: Rigid rotating body