diff --git a/Modelica/Mechanics/Translational/Examples/Accelerate.mo b/Modelica/Mechanics/Translational/Examples/Accelerate.mo index 29bb73b9bf..fcea17521f 100644 --- a/Modelica/Mechanics/Translational/Examples/Accelerate.mo +++ b/Modelica/Mechanics/Translational/Examples/Accelerate.mo @@ -19,6 +19,23 @@ Demonstrate usage of component Sources.Accelerate by moving a mass with a predefined acceleration.

-"), +", + figures = { + Figure( + title = "Mass variables", + identifier = "79d80", + preferred = true, + plots = { + Plot( + curves = { + Curve(y = mass.a, legend = "Accelleration of mass"), + Curve(y = mass.s, legend = "Position of mass"), + Curve(y = mass.v, legend = "Velocity of mass") + } + ) + } + ) + } + ), experiment(StopTime=1.0, Interval=0.001)); end Accelerate; diff --git a/Modelica/Mechanics/Translational/Examples/Brake.mo b/Modelica/Mechanics/Translational/Examples/Brake.mo index 2429d0f059..028a1f70f7 100644 --- a/Modelica/Mechanics/Translational/Examples/Brake.mo +++ b/Modelica/Mechanics/Translational/Examples/Brake.mo @@ -42,6 +42,22 @@ After 0.1 s, a brake is activated and it is shown that the mass decelerates it arrives at rest and remains at rest. Two versions of this system are present, one where the brake is implicitly grounded and one where it is grounded explicitly.

-"), +", + figures = { + Figure( + title = "Braking mass", + identifier = "cfd0a", + preferred = true, + plots = { + Plot( + curves = { + Curve(y = mass1.s, legend = "Position of mass1"), + Curve(y = mass1.v, legend = "Velocity of mass1") + } + ) + } + ) + } + ), experiment(StopTime=2.0, Interval=0.001)); end Brake; diff --git a/Modelica/Mechanics/Translational/Examples/ElastoGap.mo b/Modelica/Mechanics/Translational/Examples/ElastoGap.mo index e0bb715e5e..4d2402dc3b 100644 --- a/Modelica/Mechanics/Translational/Examples/ElastoGap.mo +++ b/Modelica/Mechanics/Translational/Examples/ElastoGap.mo @@ -77,5 +77,27 @@ While mass1 is moved by both spring/damper forces all the time, this is not the since elastoGap1 lifts off at s > -0.5 m and elastoGap2 lifts off at s < +0.5 m. Therefore, mass2 moves freely as long as -0.5 m < s < +0.5 m.

-")); +", + figures = { + Figure( + title = "Positions and velocitites", + identifier = "00623", + preferred = true, + plots = { + Plot( + curves = { + Curve(y = mass1.s, legend = "Position of mass1"), + Curve(y = mass2.s, legend = "Position of mass2") + } + ), + Plot( + curves = { + Curve(y = mass1.v, legend = "Velocity of mass1"), + Curve(y = mass2.v, legend = "Velocity of mass2") + } + ) + } + ) + } + )); end ElastoGap; diff --git a/Modelica/Mechanics/Translational/Examples/Friction.mo b/Modelica/Mechanics/Translational/Examples/Friction.mo index bdaccee503..465d5ea1ea 100644 --- a/Modelica/Mechanics/Translational/Examples/Friction.mo +++ b/Modelica/Mechanics/Translational/Examples/Friction.mo @@ -89,6 +89,21 @@ equation reinit(…), convergence problems). In this case use the ElastoGap to model a stop (see example Preload). -"), +", + figures = { + Figure( + title = "Stribeck curve", + identifier = "c0a76", + preferred = true, + plots = { + Plot( + curves = { + Curve(x = stop1.f, y = stop1.v, legend = "Force from stop1 as a function of velocity from stop1") + } + ) + } + ) + } + ), experiment(StopTime=5.0, Interval=0.001)); end Friction; diff --git a/Modelica/Mechanics/Translational/Examples/HeatLosses.mo b/Modelica/Mechanics/Translational/Examples/HeatLosses.mo index 49997d37ea..c5d0a1b187 100644 --- a/Modelica/Mechanics/Translational/Examples/HeatLosses.mo +++ b/Modelica/Mechanics/Translational/Examples/HeatLosses.mo @@ -149,6 +149,21 @@ a convection element to the environment. The total heat flow generated by the elements and transported to the environment is present in variable convection.fluid.

-"), +", + figures = { + Figure( + title = "Heat loss", + identifier = "3f446", + preferred = true, + plots = { + Plot( + curves = { + Curve(y = convection.Q_flow, legend = "Heat flow to convection component") + } + ) + } + ) + } + ), experiment(StopTime=2.0, Interval=0.001)); end HeatLosses; diff --git a/Modelica/Mechanics/Translational/Examples/InitialConditions.mo b/Modelica/Mechanics/Translational/Examples/InitialConditions.mo index 1aaa62d082..adbdb37c00 100644 --- a/Modelica/Mechanics/Translational/Examples/InitialConditions.mo +++ b/Modelica/Mechanics/Translational/Examples/InitialConditions.mo @@ -96,7 +96,29 @@ combination). In this case the system is not at rest.
\"Initial
-"), +", + figures = { + Figure( + title = "Mass positions", + identifier = "f49c2", + preferred = true, + plots = { + Plot( + curves = { + Curve(y = m1.s, legend = "Position of mass m1"), + Curve(y = m2.s, legend = "Position of mass m2") + } + ), + Plot( + curves = { + Curve(y = m3.s, legend = "Position of mass m3"), + Curve(y = m4.s, legend = "Position of mass m4") + } + ) + } + ) + } + ), experiment(StopTime=5.0, Interval=0.001), Diagram(coordinateSystem(preserveAspectRatio=false, extent={{-100,-100}, {100,100}}), graphics={ diff --git a/Modelica/Mechanics/Translational/Examples/Oscillator.mo b/Modelica/Mechanics/Translational/Examples/Oscillator.mo index c462fe61a4..508929080c 100644 --- a/Modelica/Mechanics/Translational/Examples/Oscillator.mo +++ b/Modelica/Mechanics/Translational/Examples/Oscillator.mo @@ -77,6 +77,22 @@ conditions s(start=-0.5) and v(start=0) for the sliding masses are set. If damping is added the amplitudes are bounded.

-"), +", + figures = { + Figure( + title = "Mass position", + identifier = "2191a", + preferred = true, + plots = { + Plot( + curves = { + Curve(y = mass1.s, legend = "Position of mass1"), + Curve(y = mass2.s, legend = "Position of mass2") + } + ) + } + ) + } + ), experiment(StopTime=1.0, Interval=0.001)); end Oscillator; diff --git a/Modelica/Mechanics/Translational/Examples/PreLoad.mo b/Modelica/Mechanics/Translational/Examples/PreLoad.mo index 7f7386884b..4398134893 100644 --- a/Modelica/Mechanics/Translational/Examples/PreLoad.mo +++ b/Modelica/Mechanics/Translational/Examples/PreLoad.mo @@ -134,6 +134,21 @@ the start value spool.s.start influences the offset.
\"Preload
-"), +", + figures = { + Figure( + title = "Force vs. position", + identifier = "008d0", + preferred = true, + plots = { + Plot( + curves = { + Curve(x = spool.s, y = force.f, legend = "Position of spool vs. force") + } + ) + } + ) + } + ), experiment(StopTime=100, Interval=0.1)); end PreLoad; diff --git a/Modelica/Mechanics/Translational/Examples/Sensors.mo b/Modelica/Mechanics/Translational/Examples/Sensors.mo index 607ac0737d..d6ce78494e 100644 --- a/Modelica/Mechanics/Translational/Examples/Sensors.mo +++ b/Modelica/Mechanics/Translational/Examples/Sensors.mo @@ -63,6 +63,23 @@ length L of the component. Plot positionSensor1.s, positionSensor2.s and mass.s to see the difference.

-"), +", + figures = { + Figure( + title = "Positions", + identifier = "5669c", + preferred = true, + plots = { + Plot( + curves = { + Curve(y = positionSensor1.s, legend = "Output from positionSensor"), + Curve(y = positionSensor2.s, legend = "Output from positionSensor2"), + Curve(y = mass.s, legend = "Position of mass") + } + ) + } + ) + } + ), experiment(StopTime=1.0, Interval=0.001)); end Sensors; diff --git a/Modelica/Mechanics/Translational/Examples/SignConvention.mo b/Modelica/Mechanics/Translational/Examples/SignConvention.mo index e5609710b7..6e08b2c6e8 100644 --- a/Modelica/Mechanics/Translational/Examples/SignConvention.mo +++ b/Modelica/Mechanics/Translational/Examples/SignConvention.mo @@ -75,7 +75,24 @@ In the third system the two arrows are opposed which means that the force acts in the opposite direction (in the same direction as in the two other examples).

-"), +", + figures = { + Figure( + title = "Mass variables", + identifier = "67a2d", + preferred = true, + plots = { + Plot( + curves = { + Curve(y = mass1.a, legend = "Accelleration of mass1"), + Curve(y = mass1.s, legend = "Position of mass1"), + Curve(y = mass1.v, legend = "Velocity of mass1") + } + ) + } + ) + } + ), Diagram(coordinateSystem(preserveAspectRatio=true, extent={{-100,-100}, {100,100}}),graphics={Text( extent={{-100,80},{-82,60}},