LIBRARY
Sources.ConstantSpeed
Deprecated alias for ConstantVelocity.
ConstantSpeed has been renamed to ConstantVelocity to align the Translational library naming with the Dyad mechanical libraries. This alias is retained so existing models keep working; use TranslationalComponents.Sources.ConstantVelocity in new models.
This component extends from TranslationalComponents.Sources.ConstantVelocity
Usage
TranslationalComponents.Sources.ConstantSpeed(v_fixed)
Parameters:
| Name | Description | Units | Default value |
|---|---|---|---|
v_fixed | Fixed speed (if negative, force is acting as load) | m/s |
Connectors
flange- This connector represents a mechanical flange with position and force as the potential and flow variables, respectively. (Flange)support- This connector represents a mechanical flange with position and force as the potential and flow variables, respectively. (Flange)
Variables
| Name | Description | Units |
|---|---|---|
s | Distance between flange and support (= flange.s - support.s) | m |
f | Accelerating force acting at flange (= flange.f) | N |
v | Velocity of flange with respect to support (= der(s)) | m/s |
Behavior
julia
using TranslationalComponents #hide
using ModelingToolkit #hide
@variables v_fixed #hide
@named sys = TranslationalComponents.Sources.ConstantSpeed(v_fixed=v_fixed) #hide
let eqs = full_equations(sys); Base.length(eqs) > 25 ? nothing : eqs end #hide<< @example-block not executed in draft mode >>Source
dyad
"""
Deprecated alias for `ConstantVelocity`.
`ConstantSpeed` has been renamed to `ConstantVelocity` to align the Translational library
naming with the Dyad mechanical libraries. This alias is retained so existing models keep
working; use `TranslationalComponents.Sources.ConstantVelocity` in new models.
"""
component ConstantSpeed
extends TranslationalComponents.Sources.ConstantVelocity
relations
metadata {
"Dyad": {
"icons": {"default": "dyad://TranslationalComponents/ConstantVelocity.svg"},
"deprecated": {
"message": "`ConstantSpeed` has been renamed to `ConstantVelocity`. Use `TranslationalComponents.Sources.ConstantVelocity` instead.",
"hotfix": {
"action": "replace",
"value": "TranslationalComponents.Sources.ConstantVelocity"
}
}
}
}
endFlattened Source
dyad
"""
Deprecated alias for `ConstantVelocity`.
`ConstantSpeed` has been renamed to `ConstantVelocity` to align the Translational library
naming with the Dyad mechanical libraries. This alias is retained so existing models keep
working; use `TranslationalComponents.Sources.ConstantVelocity` in new models.
"""
component ConstantSpeed
"Flange of component"
flange = Flange() {"Dyad": {"placement": {"icon": {"x1": 950, "y1": 450, "x2": 1050, "y2": 550}}}}
"Support/housing of component"
support = Flange() {"Dyad": {"placement": {"icon": {"x1": 450, "y1": 950, "x2": 550, "y2": 1050}}}}
"Distance between flange and support (= flange.s - support.s)"
variable s::Length
"Accelerating force acting at flange (= flange.f)"
variable f::Dyad.Force
"Fixed speed (if negative, force is acting as load)"
parameter v_fixed::Velocity
"Velocity of flange with respect to support (= der(s))"
variable v::Velocity
relations
s = flange.s - support.s
support.f = -flange.f
f = flange.f
v = der(s)
v = v_fixed
metadata {
"Dyad": {
"icons": {"default": "dyad://TranslationalComponents/ConstantVelocity.svg"},
"deprecated": {
"message": "`ConstantSpeed` has been renamed to `ConstantVelocity`. Use `TranslationalComponents.Sources.ConstantVelocity` instead.",
"hotfix": {
"action": "replace",
"value": "TranslationalComponents.Sources.ConstantVelocity"
}
}
}
}
endTest Cases
No test cases defined.
Related
Examples
Experiments
Analyses