Velocity Sensor
Mechanics
Run the live example
Free · no sign-up · runs in your browser
The VelocitySensor block measures the relative or absolute linear velocity between two conserving mechanical flanges and outputs it as a causal continuous numerical signal in meters per second ().
It draws zero mechanical force from the monitored system, acting as an ideal non-intrusive linear velocity probe or optical encoder.
Real-World Analog: Represents a linear optical encoder scale, Doppler velocimeter, or LVDT measuring relative linear velocity.
Mathematical Model
The measured signal value is:
Where:
v_ais the linear velocity of flange A in meters per second ().v_bis the linear velocity of flange B in meters per second (). If flange B is unconnected, (ground-relative).
Through force drawn by the sensor is zero:
Inputs & Outputs
| Direction | ID | Label | Type | Status |
|---|---|---|---|---|
| → In | flange_a |
A | number | Required |
| → In | flange_b |
B | number | Optional |
| ← Out | out |
v | number | Output |
Usage Examples
Monitoring Mass Oscillation
Measuring the velocity waveform of an oscillating mass:
Mass(m=1.0) -> VelocitySensor.flange_a
VelocitySensor.out -> uPlotDisplay
Relative Velocity Across Suspension Damper
Measuring relative compression speed across a suspension strut:
VelocitySensor.flange_a -> Mass(m=250.0)
VelocitySensor.flange_b -> Mass(m=35.0)
VelocitySensor.out -> ScopeRemarks & Best Practices
- Domain Conversion: Seamlessly bridges acausal conserving physical networks with causal signal blocks (controllers, scopes, filters).
- Infinite Impedance: Draws no force or energy from the physical network.
Related Components
- ForceSensor: In-line through-force transducer
- Mass: 1D translational inertia element
- TranslationalSpring: Compliant spring element
- TranslationalDamper: Viscous shock absorber