|
|
@@ -0,0 +1,27 @@
|
|
|
+model test
|
|
|
+ Modelica.Mechanics.Translational.Components.SpringDamper springDamper1(c = 1, d = 1) annotation(
|
|
|
+ Placement(visible = true, transformation(origin = {-42, 32}, extent = {{-10, -10}, {10, 10}}, rotation = -90)));
|
|
|
+ Modelica.Mechanics.Translational.Components.Mass mass1(m = 1) annotation(
|
|
|
+ Placement(visible = true, transformation(origin = {-42, 6}, extent = {{-10, -10}, {10, 10}}, rotation = -90)));
|
|
|
+ Modelica.Mechanics.Translational.Components.Spring spring1(c = 1) annotation(
|
|
|
+ Placement(visible = true, transformation(origin = {-42, -22}, extent = {{-10, -10}, {10, 10}}, rotation = -90)));
|
|
|
+ Modelica.Mechanics.Translational.Components.Mass mass2(m = 1) annotation(
|
|
|
+ Placement(visible = true, transformation(origin = {-42, 58}, extent = {{-10, -10}, {10, 10}}, rotation = -90)));
|
|
|
+ Modelica.Mechanics.Translational.Sources.ConstantForce constantForce1(f_constant = 1) annotation(
|
|
|
+ Placement(visible = true, transformation(origin = {-42, 86}, extent = {{-10, -10}, {10, 10}}, rotation = -90)));
|
|
|
+ Modelica.Mechanics.Translational.Components.Fixed fixed1 annotation(
|
|
|
+ Placement(visible = true, transformation(origin = {-42, -46}, extent = {{-10, -10}, {10, 10}}, rotation = 0)));
|
|
|
+equation
|
|
|
+ connect(fixed1.flange, spring1.flange_b) annotation(
|
|
|
+ Line(points = {{-42, -46}, {-42, -46}, {-42, -32}, {-42, -32}}, color = {0, 127, 0}));
|
|
|
+ connect(constantForce1.flange, mass2.flange_a) annotation(
|
|
|
+ Line(points = {{-42, 76}, {-42, 76}, {-42, 68}, {-42, 68}}, color = {0, 127, 0}));
|
|
|
+ connect(springDamper1.flange_a, mass2.flange_b) annotation(
|
|
|
+ Line(points = {{-42, 42}, {-42, 42}, {-42, 42}, {-42, 42}, {-42, 42}, {-42, 42}, {-42, 42}, {-42, 42}, {-42, 42}, {-40, 42}, {-40, 48}, {-42, 48}, {-42, 48}, {-42, 48}, {-42, 48}, {-42, 48}, {-42, 48}, {-42, 48}, {-42, 48}, {-42, 48}}, color = {0, 127, 0}));
|
|
|
+ connect(mass1.flange_b, spring1.flange_a) annotation(
|
|
|
+ Line(points = {{-42, -4}, {-42, -12}}, color = {0, 127, 0}));
|
|
|
+ connect(mass1.flange_a, springDamper1.flange_b) annotation(
|
|
|
+ Line(points = {{-42, 16}, {-42, 16}, {-42, 16}, {-42, 16}, {-42, 16}, {-42, 16}, {-42, 16}, {-40, 16}, {-40, 22}, {-42, 22}, {-42, 22}, {-42, 22}, {-42, 22}, {-42, 22}, {-42, 22}, {-42, 22}, {-42, 22}, {-42, 22}}, color = {0, 127, 0}));
|
|
|
+ annotation(
|
|
|
+ uses(Modelica(version = "3.2.2")));
|
|
|
+end test;
|