107
107
108
108
"""
109
109
FixedTranslation(; name, r::AbstractArray, l)
110
+
110
111
A fixed translation between two components (rigid rod)
111
112
112
113
# Parameters:
@@ -116,8 +117,8 @@ A fixed translation between two components (rigid rod)
116
117
117
118
# Connectors:
118
119
119
- - `frame_a` [Frame](@ref) Coordinate system fixed to the component with one cut-force and cut-torque
120
- - `frame_b` [Frame](@ref) Coordinate system fixed to the component with one cut-force and cut-torque
120
+ - `frame_a` [Frame](@ref) Coordinate system fixed to the component with one cut-force and cut-torque
121
+ - `frame_b` [Frame](@ref) Coordinate system fixed to the component with one cut-force and cut-torque
121
122
"""
122
123
@mtkmodel FixedTranslation begin
123
124
@extend frame_a, frame_b = partial_frames = PartialTwoFrames ()
@@ -152,8 +153,30 @@ A fixed translation between two components (rigid rod)
152
153
end
153
154
154
155
"""
156
+ SpringDamper(; name, c_x = 1, c_y = 1, c_phi = 1e5, d_x = 1, d_y = 1, d_phi = 1, s_relx0 = 0, s_rely0 = 0, phi_rel0 = 0, s_small = 1.e-10)
157
+
158
+ Linear 2D translational spring damper model
159
+
160
+ # Parameters:
161
+
162
+ - `c_x`: [N/m] Spring constant in x dir
163
+ - `c_y`: [N/m] Spring constant in y dir
164
+ - `c_phi`: [N.m/rad] Spring constant in phi dir
165
+ - `d_x`: [N.s/m] Damping constant in x dir
166
+ - `d_y`: [N.s/m] Damping constant in y dir
167
+ - `d_phi`: [N.m.s/rad] Damping constant in phi dir
168
+ - `s_relx0`: [m] Unstretched spring length
169
+ - `s_rely0`: [m] Unstretched spring length
170
+ - `phi_rel0`: [rad] Unstretched spring angle
171
+ - `s_small`: [m] Prevent zero-division if distance between frame_a and frame_b is zero
172
+
173
+
174
+ # Connectors:
175
+
176
+ - `frame_a` [Frame](@ref) Coordinate system fixed to the component with one cut-force and cut-torque
177
+ - `frame_b` [Frame](@ref) Coordinate system fixed to the component with one cut-force and cut-torque
155
178
156
- https://github.com/dzimmer/PlanarMechanics/blob/743462f58858a808202be93b708391461cbe2523/PlanarMechanics/Parts/SpringDamper.mo#L154C20-L154C20
179
+ https://github.com/dzimmer/PlanarMechanics/blob/743462f58858a808202be93b708391461cbe2523/PlanarMechanics/Parts/SpringDamper.mo
157
180
"""
158
181
@mtkmodel SpringDamper begin
159
182
@extend frame_a, frame_b = partial_frames = PartialTwoFrames ()
@@ -167,7 +190,7 @@ https://github.com/dzimmer/PlanarMechanics/blob/743462f58858a808202be93b70839146
167
190
d_phi = 1 , [description = " Damping constant in phi dir" ]
168
191
s_relx0 = 0 , [description = " Unstretched spring length" ]
169
192
s_rely0 = 0 , [description = " Unstretched spring length" ]
170
- phi_rel0 = 0 , [description = " Unstretched spring length " ]
193
+ phi_rel0 = 0 , [description = " Unstretched spring angle " ]
171
194
s_small = 1.e-10 ,
172
195
[
173
196
description = " Prevent zero-division if distance between frame_a and frame_b is zero" ,
0 commit comments