SpeedSensor
Ideal sensor that measures the absolute translational velocity of a mechanical flange.
This sensor provides the absolute velocity of its connected flange. The velocity v is determined by taking the time derivative of the flange's absolute position s. The governing equation is:
Usage
SpeedSensor()
Connectors
flange- This connector represents a mechanical flange with position and force as the potential and flow variables, respectively. (Flange)v- This connector represents a real signal as an output from a component (RealOutput)
Behavior
julia
using TranslationalComponents #hide
using ModelingToolkit #hide
@named sys = SpeedSensor() #hide
full_equations(sys) #hide<< @example-block not executed in draft mode >>Source
dyad
# Ideal sensor that measures the absolute translational velocity of a mechanical flange.
#
# This sensor provides the absolute velocity of its connected `flange`.
# The velocity `v` is determined by taking the time derivative of the `flange`'s
# absolute position `s`. The governing equation is:
# ```math
# v = \frac{d flange.s}{dt}
# ```
component SpeedSensor
extends PartialAbsoluteSensor
# Absolute velocity of flange as output signal
v = RealOutput() [{"Dyad": {"placement": {"icon": {"x1": 950, "y1": 450, "x2": 1050, "y2": 550}}}}]
relations
v = der(flange.s)
metadata {
"Dyad": {"icons": {"default": "dyad://TranslationalComponents/AbsoluteSensor.svg"}}
}
endFlattened Source
dyad
# Ideal sensor that measures the absolute translational velocity of a mechanical flange.
#
# This sensor provides the absolute velocity of its connected `flange`.
# The velocity `v` is determined by taking the time derivative of the `flange`'s
# absolute position `s`. The governing equation is:
# ```math
# v = \frac{d flange.s}{dt}
# ```
component SpeedSensor
# Mechanical flange connector through which the variable is sensed.
flange = Flange() [{"Dyad": {"placement": {"icon": {"x1": -50, "y1": 450, "x2": 50, "y2": 550}}}}]
# Absolute velocity of flange as output signal
v = RealOutput() [{"Dyad": {"placement": {"icon": {"x1": 950, "y1": 450, "x2": 1050, "y2": 550}}}}]
relations
0 = flange.f
v = der(flange.s)
metadata {
"Dyad": {"icons": {"default": "dyad://TranslationalComponents/AbsoluteSensor.svg"}}
}
endTest Cases
No test cases defined.
Related
Examples
Experiments
Analyses
Tests