Skip to content
LIBRARY
Components.Disc.md

Components.Disc

1-dim. rotational rigid component without inertia, where right spline is rotated by a fixed angle with respect to left spline.

The right spline (spline_b) is rotated by the fixed angle deltaPhi with respect to the left spline (spline_a):

textsplinea.phi=phifracDeltaphi2textsplineb.phi=phi+fracDeltaphi2

No inertia is associated with this component; the sum of torques at both splines is zero:

textsplinea.tau+textsplineb.tau=0

This component extends from RotationalComponents.Interfaces.PartialTwoSplines

Usage

RotationalComponents.Components.Disc(deltaPhi=0.0)

Parameters:

NameDescriptionUnitsDefault value
deltaPhiFixed rotation of left spline with respect to right spline (= spline_b.phi - spline_a.phi)rad0.0

Connectors

  • spline_a - This connector represents a rotational spline with angle and torque as the potential and flow variables, respectively. (Spline)

  • spline_b - This connector represents a rotational spline with angle and torque as the potential and flow variables, respectively. (Spline)

Variables

NameDescriptionUnits
phiAbsolute rotation angle of componentrad

Behavior

julia
using RotationalComponents #hide
using ModelingToolkit #hide
@variables deltaPhi #hide
@named sys = RotationalComponents.Components.Disc(deltaPhi=deltaPhi) #hide
full_equations(sys) #hide
<< @example-block not executed in draft mode >>

Source

dyad
"""
1-dim. rotational rigid component without inertia, where right spline is rotated
by a fixed angle with respect to left spline.

The right spline (`spline_b`) is rotated by the fixed angle `deltaPhi` with respect
to the left spline (`spline_a`):
```math
\\text{spline\\_a}.\\phi = \\phi - \\frac{\\Delta\\phi}{2}
```
```math
\\text{spline\\_b}.\\phi = \\phi + \\frac{\\Delta\\phi}{2}
```
No inertia is associated with this component; the sum of torques at both splines is zero:
```math
\\text{spline\\_a}.\\tau + \\text{spline\\_b}.\\tau = 0
```
"""
component Disc
  extends RotationalComponents.Interfaces.PartialTwoSplines
  "Fixed rotation of left spline with respect to right spline (= spline_b.phi - spline_a.phi)"
  parameter deltaPhi::Angle = 0.0
  "Absolute rotation angle of component"
  variable phi::Angle
relations
  spline_a.phi = phi - deltaPhi / 2
  spline_b.phi = phi + deltaPhi / 2
  0 = spline_a.tau + spline_b.tau
metadata {"Dyad": {"icons": {"default": "dyad://RotationalComponents/Disc.svg"}}}
end
Flattened Source
dyad
"""
1-dim. rotational rigid component without inertia, where right spline is rotated
by a fixed angle with respect to left spline.

The right spline (`spline_b`) is rotated by the fixed angle `deltaPhi` with respect
to the left spline (`spline_a`):
```math
\\text{spline\\_a}.\\phi = \\phi - \\frac{\\Delta\\phi}{2}
```
```math
\\text{spline\\_b}.\\phi = \\phi + \\frac{\\Delta\\phi}{2}
```
No inertia is associated with this component; the sum of torques at both splines is zero:
```math
\\text{spline\\_a}.\\tau + \\text{spline\\_b}.\\tau = 0
```
"""
component Disc
  "First spline"
  spline_a = Spline() {"Dyad": {"placement": {"icon": {"x1": -50, "y1": 450, "x2": 50, "y2": 550}}}}
  "Second spline"
  spline_b = Spline() {"Dyad": {"placement": {"icon": {"x1": 950, "y1": 450, "x2": 1050, "y2": 550}}}}
  "Fixed rotation of left spline with respect to right spline (= spline_b.phi - spline_a.phi)"
  parameter deltaPhi::Angle = 0.0
  "Absolute rotation angle of component"
  variable phi::Angle
relations
  spline_a.phi = phi - deltaPhi / 2
  spline_b.phi = phi + deltaPhi / 2
  0 = spline_a.tau + spline_b.tau
metadata {"Dyad": {"icons": {"default": "dyad://RotationalComponents/Disc.svg"}}}
end


Test Cases

No test cases defined.

  • Examples

  • Experiments

  • Analyses