I would like to model an ideal clutch. The only clutch that is avaible from the standard library is based on coloumb friction.
Have a look at my very simple model (without annotation):
CODE
model IdealClutch "Ideal clutch"
extends Modelica.Mechanics.Rotational.Interfaces.Compliant;
Modelica.Blocks.Interfaces.BooleanInput locked;
equation
//Singularity when locked=true
0 = if locked then phi_rel else tau;
//Only for testing
//phi_rel = 0;
end IdealClutch;
It is a bit confusing to me that the idea of this approach works fine if I leave out the boolean input. So the equation phi_rel=0 leads to a rigid connection between th 2 flanges as expected when locked is true. If I use the codeline "0 = if locked then phi_rel else tau;" instead to include the outside boolean control this leads to a singularity. Setting locked=false (the clutch is opened) the model works fine. What is changing when introducing the boolean input? The resulting equations should be the same.
I´ve added a test environment for the clutch "IdealClutch_Test.mo".
OK, the longer I think about this model the less I understand it
