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):
No inertia is associated with this component; the sum of torques at both splines is zero:
This component extends from RotationalComponents.Interfaces.PartialTwoSplines
Usage
RotationalComponents.Components.Disc(deltaPhi=0.0)
Parameters:
| Name | Description | Units | Default value |
|---|---|---|---|
deltaPhi | Fixed rotation of left spline with respect to right spline (= spline_b.phi - spline_a.phi) | rad | 0.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
| Name | Description | Units |
|---|---|---|
phi | Absolute rotation angle of component | rad |
Behavior
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
"""
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"}}}
endFlattened Source
"""
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"}}}
endTest Cases
No test cases defined.
Related
Examples
Experiments
Analyses