SpeedSensor
IconSpeedSensor
Ideal sensor to measure the absolute velocity of flange
This component extends from PartialAbsoluteSensor
Usage
SpeedSensor()
Connectors
flange
- (Flange
)v
- This connector represents a real signal as an output from a component (RealOutput
)
Behavior
\[ \begin{align} 0 &= \mathtt{flange.f}\left( t \right) \\ v\left( t \right) &= \frac{\mathrm{d} \mathtt{flange.s}\left( t \right)}{\mathrm{d}t} \end{align} \]
Source
# Ideal sensor to measure the absolute velocity of flange
component SpeedSensor
extends PartialAbsoluteSensor
# Absolute velocity of flange as output signal
v = RealOutput() [{
"JuliaSim": {"placement": {"icon": {"x1": 950, "y1": 450, "x2": 1050, "y2": 550}}}
}]
relations
v = der(flange.s)
metadata {
"JuliaSim": {"icons": {"default": "jsml://TranslationalComponents/AbsoluteSensor.svg"}}
}
end
Flattened Source
# Ideal sensor to measure the absolute velocity of flange component SpeedSensor flange = Flange() [{ "JuliaSim": {"placement": {"icon": {"x1": -50, "y1": 450, "x2": 50, "y2": 550}}} }] # Absolute velocity of flange as output signal v = RealOutput() [{ "JuliaSim": {"placement": {"icon": {"x1": 950, "y1": 450, "x2": 1050, "y2": 550}}} }] relations 0 = flange.f v = der(flange.s) metadata { "JuliaSim": {"icons": {"default": "jsml://TranslationalComponents/AbsoluteSensor.svg"}} } end
Test Cases
Related
- Examples
- Experiments
- Analyses
- Tests