Skip to content
LIBRARY
Fixed.md

Fixed

Shaft fixed in housing at a given angle.

Usage

Fixed(phi0=0.0)

Parameters:

NameDescriptionUnitsDefault value
phi0Fixed offset angle of the shaftrad0

Connectors

Behavior

julia
using RotationalComponents #hide
using ModelingToolkit #hide
@variables phi0 #hide
@named sys = RotationalComponents.Components.Fixed(phi0=phi0) #hide
let eqs = full_equations(sys); Base.length(eqs) > 25 ? nothing : eqs end #hide
<< @example-block not executed in draft mode >>

Source

dyad
# Shaft fixed in housing at a given angle.
component Fixed
  spline = Spline() [{
    "JuliaSim": {"placement": {"icon": {"x1": 450, "y1": -50, "x2": 550, "y2": 50}}}
  }]
  # Fixed offset angle of the shaft
  parameter phi0::Angle = 0.0
relations
  spline.phi = phi0
metadata {"JuliaSim": {"icons": {"default": "jsml://RotationalComponents/Fixed.svg"}}}
end
Flattened Source
# Shaft fixed in housing at a given angle.
component Fixed
  spline = Spline() [{
    "JuliaSim": {"placement": {"icon": {"x1": 450, "y1": -50, "x2": 550, "y2": 50}}}
  }]
  # Fixed offset angle of the shaft
  parameter phi0::Angle = 0.0
relations
  spline.phi = phi0
metadata {"JuliaSim": {"icons": {"default": "jsml://RotationalComponents/Fixed.svg"}}}
end

Test Cases