Translational.Rod ​
This component extends from PartialRigid
Usage ​
TranslatedComponents.Translational.Rod(L=0)
Parameters: ​
| Name | Description | Units | Default value |
|---|---|---|---|
L | m | 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 | m |
Behavior ​
julia
using TranslatedComponents #hide
using ModelingToolkit #hide
@variables L #hide
@named sys = TranslatedComponents.Translational.Rod(L=L) #hide
full_equations(sys) #hide<< @example-block not executed in draft mode >>Source ​
dyad
component Rod
extends PartialRigid
relations
0 = flange_a.f + flange_b.f
endFlattened Source
dyad
component Rod
flange_a = Flange()
flange_b = Flange()
parameter L::Dyad.Length = 0
variable s::Dyad.Position
relations
flange_a.s = s - L / 2
flange_b.s = s + L / 2
0 = flange_a.f + flange_b.f
metadata {}
endTest Cases ​
No test cases defined.
Related ​
Examples
Experiments
Analyses