You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/PlanarMechanics/components.jl
+7-2Lines changed: 7 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -58,7 +58,7 @@ Body component with mass and inertia
58
58
# Connectors:
59
59
- `frame`: 2-dim. Coordinate system
60
60
"""
61
-
@componentfunctionBody(; name, m, I, r =zeros(2), v=nothing, phi =0, w=nothing, gy =-9.807, radius=0.1, render=true, color=Multibody.purple, state_priority=2)
61
+
@componentfunctionBody(; name, m, I, r =zeros(2), v=nothing, phi =nothing, w=nothing, gy =-9.807, radius=0.1, render=true, color=Multibody.purple, state_priority=2)
62
62
@named frame_a =Frame()
63
63
pars =@parametersbegin
64
64
m = m, [description ="Mass of the body"]
@@ -626,13 +626,18 @@ The force depends with friction characteristics on the slip. The slip is split i
626
626
- lateral slip: the lateral velocity divided by the rolling velocity.
627
627
- longitudinal slip: the longitudinal slip velocity divided by the rolling velocity.
628
628
629
-
For low rolling velocity this definition become ill-conditioned. Hence a dry-friction model is used for low rolling velocities. For zero rolling velocity, the intitialization might fail if automatic differentiation is used. Either start with a non-zero (but tiny) rolling velocity or pass `autodiff=false` to the solver.
629
+
For low rolling velocity this definition become ill-conditioned. Hence a dry-friction model is used for low rolling velocities. For **zero rolling velocity**, the intitialization might fail if automatic differentiation is used. Either start with a non-zero (but tiny) rolling velocity or pass `autodiff=false` to the solver.
630
630
631
631
The radius of the wheel can be specified by the parameter `radius`. The driving direction (for `phi = 0`) can be specified by the parameter `r`. The normal load is set by `N`.
632
632
633
633
The wheel contains a 2D connector `frame_a` for the steering on the plane. The rolling motion of the wheel can be actuated by the 1D connector `flange_a`.
634
634
635
635
In addition there is an input `dynamicLoad` for a dynamic component of the normal load.
636
+
637
+
# Connectors:
638
+
- `frame_a` (Frame) Coordinate system fixed to the component with one cut-force and cut-torque
639
+
- `flange_a` (Rotational.Flange) Flange for the rolling motion
640
+
- `dynamicLoad` (Blocks.RealInput) Input for the dynamic component of the normal load (must be connected)
0 commit comments