Skip to content

Commit

Permalink
Add public variable mu
Browse files Browse the repository at this point in the history
  • Loading branch information
tobolar authored and beutlich committed Dec 13, 2020
1 parent d60b00b commit 418861f
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Modelica/Mechanics/Rotational/Components/Clutch2.mo
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ model Clutch2 "Clutch based on Coulomb friction (with interpolation based on Com
extends Rotational.Interfaces.PartialFriction;
extends Modelica.Thermal.HeatTransfer.Interfaces.PartialElementaryConditionalHeatPortWithoutT;

Real mu "Friction coefficient";
SI.Force fn "Normal force (fn=fn_max*f_normalized)";
Modelica.Blocks.Interfaces.RealInput f_normalized
"Normalized force signal 0..1 (normal force = fn_max*f_normalized; clutch is engaged if > 0)"
Expand Down Expand Up @@ -49,7 +50,9 @@ equation
else
{-1,-1};
table.u = table_signs[1]*w_rel;
tau = if locked then sa*unitTorque elseif free then 0 else cgeo*fn*(table_signs[2]*table.y[1]);
mu = table_signs[2]*table.y[1];
tau = if locked then sa*unitTorque elseif free then 0 else cgeo*fn*mu;

lossPower = tau*w_relfric;
annotation (defaultComponentName="clutch", Icon(
coordinateSystem(preserveAspectRatio=true,
Expand Down

0 comments on commit 418861f

Please sign in to comment.