-
Open the model example Coupled Clutches.
-
To extend the model example, do the following:
-
From the Package Browser, right-click the model
Coupled Clutches and select Extend
From.
-
In the dialog box, do the following:
- In the Name field, enter
MyCoupledClutches.
- Erase the Insert in field.
- Click OK to create a free-standing model
MyCoupledClutches.
-
Open MyCoupledClutches and add Modelica text, to get the
following:
You have to add the second annotation, line 4-8 below.
model MyCoupledClutches
extends Modelica.Mechanics.Rotational.Examples.CoupledClutches;
annotation (uses(Modelica(version="4.0.0")));
annotation (__Dymola_selections={Selection(
name="PlottedVariables",
override=true,
match={MatchVariable(name="Time"),MatchVariable(name="J1.phi"),
MatchVariable(name="J1.w"),MatchVariable(name="torque.tau")})});
end MyCoupledClutches;
You have added a variable selection PlottedVariables to the
model.
-
Simulate the model.
For more information about simulation, see Simulating a Behavior.
-
From the Variable Browser, right-click any signal, and select
.
|