1 | within ;
|
---|
2 | model MotorDriveTest2
|
---|
3 |
|
---|
4 | annotation (uses(Modelica(version="3.0.1")), Diagram(coordinateSystem(
|
---|
5 | preserveAspectRatio=true, extent={{-100,-100},{100,100}}), graphics));
|
---|
6 | Modelica.Mechanics.Rotational.Components.Inertia inertia(J=0.5)
|
---|
7 | annotation (Placement(transformation(extent={{42,-10},{62,10}})));
|
---|
8 | Modelica.Mechanics.Rotational.Components.Fixed fixed
|
---|
9 | annotation (Placement(transformation(extent={{78,-10},{98,10}})));
|
---|
10 | Modelica.Mechanics.Rotational.Components.Damper damper(d=10)
|
---|
11 | annotation (Placement(transformation(extent={{66,-10},{86,10}})));
|
---|
12 | Modelica.Mechanics.Rotational.Components.Spring spring(c=100)
|
---|
13 | annotation (Placement(transformation(extent={{6,-10},{26,10}})));
|
---|
14 | Modelica.Mechanics.Rotational.Components.Inertia inertia1(J=1)
|
---|
15 | annotation (Placement(transformation(extent={{-26,-10},{-6,10}})));
|
---|
16 | Modelica.Mechanics.Rotational.Sources.TorqueStep torqueStep(stepTorque=1,
|
---|
17 | offsetTorque=0)
|
---|
18 | annotation (Placement(transformation(extent={{-56,-10},{-36,10}})));
|
---|
19 | equation
|
---|
20 | connect(inertia.flange_b, damper.flange_a) annotation (Line(
|
---|
21 | points={{62,0},{66,0}},
|
---|
22 | color={0,0,0},
|
---|
23 | smooth=Smooth.None));
|
---|
24 | connect(spring.flange_b, inertia.flange_a) annotation (Line(
|
---|
25 | points={{26,0},{42,0}},
|
---|
26 | color={0,0,0},
|
---|
27 | smooth=Smooth.None));
|
---|
28 | connect(inertia1.flange_b, spring.flange_a) annotation (Line(
|
---|
29 | points={{-6,0},{6,0}},
|
---|
30 | color={0,0,0},
|
---|
31 | smooth=Smooth.None));
|
---|
32 | connect(torqueStep.flange, inertia1.flange_a) annotation (Line(
|
---|
33 | points={{-36,0},{-26,0}},
|
---|
34 | color={0,0,0},
|
---|
35 | smooth=Smooth.None));
|
---|
36 | end MotorDriveTest2;
|
---|