Skip to content

Commit

Permalink
Enhance a_relfric for forward/backward sliding
Browse files Browse the repository at this point in the history
  • Loading branch information
tobolar committed Jan 12, 2024
1 parent 519bf15 commit 97f0fdc
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Modelica/Mechanics/Rotational/Interfaces/PartialFriction.mo
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,8 @@ equation
a_relfric/unitAngularAcceleration = if locked then 0 else if free then sa
else if startForward then sa - tau0_max/unitTorque
else if startBackward then sa + tau0_max/unitTorque
else if pre(mode) == Forward then sa - tau0_max/unitTorque
else if pre(mode) == Backward then sa + tau0_max/unitTorque
else sa - sign(w_relfric)*tau0_max/unitTorque;

/* Friction torque "tau" has to be defined in a subclass. Example for possible
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,8 @@ equation
a_relfric/unitAcceleration = if locked then 0 else if free then sa
else if startForward then sa - f0_max/unitForce
else if startBackward then sa + f0_max/unitForce
else if pre(mode) == Forward then sa - f0_max/unitForce
else if pre(mode) == Backward then sa + f0_max/unitForce
else sa - sign(v_relfric)*f0_max/unitForce;

/* Friction force "f" has to be defined in a subclass. Example for possible
Expand Down

0 comments on commit 97f0fdc

Please sign in to comment.