LIBRARY
Components.Rod
Rod without inertia.
A translational rod without inertia and two rigidly connected flanges. The rod transmits force without any mass effect:
The rod length L (inherited from PartialRigid) sets the fixed distance between flanges:
This component extends from TranslationalComponents.Interfaces.PartialRigid
Usage
TranslationalComponents.Components.Rod(L=0.0)
Parameters:
| Name | Description | Units | Default value |
|---|---|---|---|
L | Length of component, from left flange to right flange | m | 0.0 |
Connectors
flange_a- This connector represents a mechanical flange with position and force as the potential and flow variables, respectively. (Flange)flange_b- This connector represents a mechanical flange with position and force as the potential and flow variables, respectively. (Flange)
Variables
| Name | Description | Units |
|---|---|---|
s | Absolute position of center of component | m |
Behavior
julia
using TranslationalComponents #hide
using ModelingToolkit #hide
@variables L #hide
@named sys = TranslationalComponents.Components.Rod(L=L) #hide
full_equations(sys) #hide<< @example-block not executed in draft mode >>Source
dyad
"""
Rod without inertia.
A translational rod **without inertia** and two rigidly connected flanges.
The rod transmits force without any mass effect:
```math
0 = flange\_a.f + flange\_b.f
```
The rod length `L` (inherited from `PartialRigid`) sets the fixed distance between flanges:
```math
flange\_b.s - flange\_a.s = L
```
"""
component Rod
extends TranslationalComponents.Interfaces.PartialRigid
relations
0 = flange_a.f + flange_b.f
metadata {"Dyad": {"icons": {"default": "dyad://TranslationalComponents/Rod.svg"}}}
endFlattened Source
dyad
"""
Rod without inertia.
A translational rod **without inertia** and two rigidly connected flanges.
The rod transmits force without any mass effect:
```math
0 = flange\_a.f + flange\_b.f
```
The rod length `L` (inherited from `PartialRigid`) sets the fixed distance between flanges:
```math
flange\_b.s - flange\_a.s = L
```
"""
component Rod
"Left translational 1D flange"
flange_a = Flange() {"Dyad": {"placement": {"icon": {"x1": -50, "y1": 450, "x2": 50, "y2": 550}}}}
"Right translational 1D flange"
flange_b = Flange() {"Dyad": {"placement": {"icon": {"x1": 950, "y1": 450, "x2": 1050, "y2": 550}}}}
"Absolute position of center of component"
variable s::Dyad.Position
"Length of component, from left flange to right flange"
parameter L::Length = 0.0
relations
flange_a.s = s - L / 2
flange_b.s = s + L / 2
0 = flange_a.f + flange_b.f
metadata {"Dyad": {"icons": {"default": "dyad://TranslationalComponents/Rod.svg"}}}
endTest Cases
No test cases defined.
Related
Examples
Experiments
Analyses
Tests