From fecf3c92dfa11de02d4b3aa88e2b70c19ab52c32 Mon Sep 17 00:00:00 2001 From: Anton Haumer Date: Fri, 5 Aug 2022 19:09:36 +0200 Subject: [PATCH] clarified the parameters for the modes free = true / false --- .../Rotational/Components/FreeWheel.mo | 39 +++++++++++-------- 1 file changed, 23 insertions(+), 16 deletions(-) diff --git a/Modelica/Mechanics/Rotational/Components/FreeWheel.mo b/Modelica/Mechanics/Rotational/Components/FreeWheel.mo index 67bf4e3ba3..e24ea4ceb3 100644 --- a/Modelica/Mechanics/Rotational/Components/FreeWheel.mo +++ b/Modelica/Mechanics/Rotational/Components/FreeWheel.mo @@ -5,9 +5,8 @@ model FreeWheel "Ideal freewheel" SI.AngularVelocity w_rel(start=0) "Relative angular velocity (= der(phi_rel))"; Boolean free(start=false) "Indicates freewheeling"; - - parameter SI.Torque tauRes=1e-5 "Residual friction coefficient"; - parameter SI.AngularVelocity wRes=1e-5 "Residual relative velocity coefficient"; + parameter SI.RotationalDampingConstant residualFriction=1e-5 "Residual friction coefficient (free = true)"; + parameter SI.RotationalDampingConstant torqueTransmission=1e5 "Torque transmission coefficient (free = false)"; protected Real s(start=0, final unit="1") "Auxilliary variable"; @@ -17,9 +16,8 @@ protected equation w_rel = der(phi_rel); free = w_rel >= 0; - w_rel = s*unitAngularVelocity*(if free then 1 else tauRes/unitTorque); - tau = s*unitTorque*(if free then wRes/unitAngularVelocity else 1); - + w_rel = s*unitTorque *(if free then 1 else 1/torqueTransmission); + tau = s*unitAngularVelocity*(if free then residualFriction else 1); annotation ( Icon(graphics={ Rectangle( @@ -72,7 +70,7 @@ equation fillColor={128,128,128}, fillPattern=FillPattern.Solid), Line( - points={{-70,-20},{0,0},{20,70}}, + points={{-4,-60},{0,0},{60,4}}, thickness=0.5), Text( extent={{60,-10},{80,-20}}, @@ -83,13 +81,17 @@ equation textColor={128,128,128}, textString="tau"), Text( - extent={{20,60},{40,50}}, + extent={{0,30},{60,10}}, textColor={128,128,128}, - textString="wRes"), + textString=" free = true: + residualFriction "), Text( - extent={{-60,-20},{-40,-30}}, + extent={{-30,10},{30,-10}}, textColor={128,128,128}, - textString="tauRes")}), + origin={-20,-30}, + rotation=90, + textString=" free = false: +torqueTransmission")}), Documentation(info="

An idealized model of a freewheel. Compared to @@ -102,13 +104,18 @@ by the variable free and distinguished as follows.

")); end FreeWheel;