Translational.Spring ​
This component extends from PartialCompliant
Usage ​
TranslatedComponents.Translational.Spring(c=1, s_rel0=0)
Parameters: ​
| Name | Description | Units | Default value |
|---|---|---|---|
c | N/m | 1 | |
s_rel0 | 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_rel | m | |
f | N |
Behavior ​
Source ​
dyad
component Spring
extends PartialCompliant
parameter c::Dyad.TranslationalSpringConstant(final min = 0) = 1
parameter s_rel0::Dyad.Distance = 0
relations
f = c * (s_rel - s_rel0)
endFlattened Source
dyad
component Spring
flange_a = Flange()
flange_b = Flange()
variable s_rel::Dyad.Position
variable f::Dyad.Force
parameter c::Dyad.TranslationalSpringConstant(final min = 0) = 1
parameter s_rel0::Dyad.Distance = 0
relations
s_rel = flange_b.s - flange_a.s
flange_b.f = f
flange_a.f = -f
f = c * (s_rel - s_rel0)
metadata {}
endTest Cases ​
No test cases defined.
Related ​
Examples
Experiments
Analyses