model EsferaViscosa_MSL "Esfera com força viscosa usando MSL" Modelica.Mechanics.Translational.Components.Mass mass(m = 0.2) annotation(Placement(visible = true, transformation(origin = {0, 0}, extent = {{-10, -10}, {10, 10}}, rotation = 0))); Modelica.Mechanics.Translational.Components.Fixed fixed annotation(Placement(visible = true, transformation(origin = {80, 0}, extent = {{-10, -10}, {10, 10}}, rotation = 0))); Modelica.Mechanics.Translational.Components.Damper damper(d = 10) annotation(Placement(visible = true, transformation(origin = {40, 0}, extent = {{-10, -10}, {10, 10}}, rotation = 0))); Modelica.Mechanics.Translational.Sources.Force force annotation(Placement(visible = true, transformation(origin = {-47.911, 0}, extent = {{-10, -10}, {10, 10}}, rotation = 0))); Modelica.Blocks.Sources.Step step(height = 2) annotation(Placement(visible = true, transformation(origin = {-87.599, 0}, extent = {{-10, -10}, {10, 10}}, rotation = 0))); equation connect(damper.flange_b, fixed.flange) annotation(Line(visible = true, origin = {65, 0}, points = {{-15, 0}, {15, 0}}, color = {0, 127, 0})); connect(mass.flange_b, damper.flange_a) annotation(Line(visible = true, origin = {20, 0}, points = {{-10, 0}, {10, 0}}, color = {0, 127, 0})); connect(force.flange, mass.flange_a) annotation(Line(visible = true, origin = {-23.956, 0}, points = {{-13.956, 0}, {13.956, 0}}, color = {0, 127, 0})); connect(step.y, force.f) annotation(Line(visible = true, origin = {-68.255, 0}, points = {{-8.343999999999999, 0}, {8.343999999999999, 0}}, color = {0, 0, 127})); annotation(experiment(StopTime = 0.2), Diagram(coordinateSystem(extent = {{-148.5, -105}, {148.5, 105}}, preserveAspectRatio = true, initialScale = 0.1, grid = {5, 5}))); end EsferaViscosa_MSL;