@@ -12,8 +12,6 @@ Frame fixed in the planar world frame at a given position and orientation
1212# Connectors:
1313
1414 - `frame: 2-dim. Coordinate system
15-
16- https://github.com/dzimmer/PlanarMechanics/blob/743462f58858a808202be93b708391461cbe2523/PlanarMechanics/Parts/Fixed.mo
1715"""
1816@mtkmodel Fixed begin
1917 @parameters begin
@@ -60,8 +58,6 @@ Body component with mass and inertia
6058# Connectors:
6159
6260 - `frame`: 2-dim. Coordinate system
63-
64- https://github.com/dzimmer/PlanarMechanics/blob/743462f58858a808202be93b708391461cbe2523/PlanarMechanics/Parts/Body.mo
6561"""
6662@component function Body (; name, m, j, rx = 0 , ry = 0 , gy = - 9.807 )
6763 @named frame = Frame ()
@@ -119,11 +115,9 @@ A fixed translation between two components (rigid rod)
119115 - `ry`: [m] Fixed y-length of the rod resolved w.r.t to body frame_a at phi = 0
120116
121117# Connectors:
122-
118+
123119 - `frame_a` [Frame](@ref) Coordinate system fixed to the component with one cut-force and cut-torque
124120 - `frame_b` [Frame](@ref) Coordinate system fixed to the component with one cut-force and cut-torque
125-
126- https://github.com/dzimmer/PlanarMechanics/blob/743462f58858a808202be93b708391461cbe2523/PlanarMechanics/Parts/FixedTranslation.mo
127121"""
128122@mtkmodel FixedTranslation begin
129123 @extend frame_a, frame_b = partial_frames = PartialTwoFrames ()
@@ -147,12 +141,12 @@ https://github.com/dzimmer/PlanarMechanics/blob/743462f58858a808202be93b70839146
147141
148142 @equations begin
149143 # rigidly connect positions
150- frame_a. x + rx ~ frame_b. x
151- frame_a. y + ry ~ frame_b. y
144+ frame_a. x + r0[ 1 ] ~ frame_b. x
145+ frame_a. y + r0[ 2 ] ~ frame_b. y
152146 frame_a. phi ~ frame_b. phi
153147 # balancing force including lever principle
154148 frame_a. fx + frame_b. fx ~ 0
155149 frame_a. fy + frame_b. fy ~ 0
156- frame_a. j + frame_b. j + r0' * [ frame_b. fy, - frame_b. fx] ~ 0
150+ frame_a. j + frame_b. j + r0[ 1 ] * frame_b. fy - r0[ 2 ] * frame_b. fx ~ 0
157151 end
158152end
0 commit comments