Skip to content
LIBRARY
Sources.ConstantSpeed.md

Sources.ConstantSpeed

Constant speed, not dependent on force.

Model of fixed velocity of flange, not dependent on force. The velocity of the flange with respect to the support is fixed to the parameter v_fixed.

The equations are:

v=fracdsdtv=vfixed

This component extends from TranslationalComponents.Interfaces.PartialForce

Usage

TranslationalComponents.Sources.ConstantSpeed(v_fixed)

Parameters:

NameDescriptionUnitsDefault value
v_fixedFixed 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

NameDescriptionUnits
sDistance between flange and support (= flange.s - support.s)m
fAccelerating force acting at flange (= flange.f)N
vVelocity 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
full_equations(sys) #hide
<< @example-block not executed in draft mode >>

Source

dyad
"""
Constant speed, not dependent on force.

Model of fixed velocity of flange, not dependent on force. The velocity of the
flange with respect to the support is fixed to the parameter `v_fixed`.

The equations are:
```math
v = \\frac{ds}{dt}
```
```math
v = v_{fixed}
```
"""
component ConstantSpeed
  extends TranslationalComponents.Interfaces.PartialForce
  "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
  v = der(s)
  v = v_fixed
metadata {
  "Dyad": {"icons": {"default": "dyad://TranslationalComponents/ConstantSpeed.svg"}}
}
end
Flattened Source
dyad
"""
Constant speed, not dependent on force.

Model of fixed velocity of flange, not dependent on force. The velocity of the
flange with respect to the support is fixed to the parameter `v_fixed`.

The equations are:
```math
v = \\frac{ds}{dt}
```
```math
v = v_{fixed}
```
"""
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/ConstantSpeed.svg"}}
}
end


Test Cases

No test cases defined.

  • Examples

  • Experiments

  • Analyses