diff --git a/Modelica/Mechanics/Rotational/Examples/Backlash.mo b/Modelica/Mechanics/Rotational/Examples/Backlash.mo index 0cfc008ce8..be9dd84c30 100644 --- a/Modelica/Mechanics/Rotational/Examples/Backlash.mo +++ b/Modelica/Mechanics/Rotational/Examples/Backlash.mo @@ -71,6 +71,23 @@ Furthermore, it shows the differences of the ElastoBacklash2 components (the ElastoBacklash2 component generates events when contact occurs and the torque changes discontinuously).

-"), +", + figures = { + Figure( + title = "Torques", + identifier = "ca8cd", + preferred = true, + plots = { + Plot( + curves = { + Curve(y = springDamper.tau, legend = "Torque from springDamper"), + Curve(y = elastoBacklash.tau, legend = "Torque from elastoBacklash"), + Curve(y = elastoBacklash2.tau, legend = "Torque from elastoBacklash2") + } + ) + } + ) + } + ), experiment(StopTime=1.0, Interval=0.001)); end Backlash; diff --git a/Modelica/Mechanics/Rotational/Examples/CoupledClutches.mo b/Modelica/Mechanics/Rotational/Examples/CoupledClutches.mo index b8916e765b..d736b1e0f2 100644 --- a/Modelica/Mechanics/Rotational/Examples/CoupledClutches.mo +++ b/Modelica/Mechanics/Rotational/Examples/CoupledClutches.mo @@ -102,7 +102,39 @@ frictional mode of clutches (clutchX.mode) where mode = -1/0/+1 means backward sliding, locked, forward sliding.

-"), +", + figures = { + Figure( + title = "Torques and velocities", + identifier = "bbf21", + preferred = true, + plots = { + Plot( + curves = { + Curve(y = J1.w, legend = "Angular velocity of J1"), + Curve(y = J2.w, legend = "Angular velocity of J2"), + Curve(y = J3.w, legend = "Angular velocity of J3"), + Curve(y = J4.w, legend = "Angular velocity of J4") + } + ), + Plot( + curves = { + Curve(y = clutch1.tau, legend = "Torque of clutch1"), + Curve(y = clutch2.tau, legend = "Torque of clutch2"), + Curve(y = clutch3.tau, legend = "Torque of clutch3") + } + ), + Plot( + curves = { + Curve(y = clutch1.mode, legend = "Mode of clutch1 (-1/0/+1 = backward sliding/locked/forward sliding)"), + Curve(y = clutch2.mode, legend = "Mode of clutch2 (-1/0/+1 = backward sliding/locked/forward sliding)"), + Curve(y = clutch3.mode, legend = "Mode of clutch3 (-1/0/+1 = backward sliding/locked/forward sliding)") + } + ) + } + ) + } + ), __Dymola_Commands(file= "modelica://Modelica/Resources/Scripts/Dymola/Mechanics/Rotational/CoupledClutches.mos" "Simulate and Plot"), diff --git a/Modelica/Mechanics/Rotational/Examples/ElasticBearing.mo b/Modelica/Mechanics/Rotational/Examples/ElasticBearing.mo index ac7419485a..af419f5a90 100644 --- a/Modelica/Mechanics/Rotational/Examples/ElasticBearing.mo +++ b/Modelica/Mechanics/Rotational/Examples/ElasticBearing.mo @@ -66,6 +66,27 @@ housing dynamics.

Simulate for about 10 seconds and plot the angular velocities of the inertias housing.w, shaft.w and load.w.

-"), +", + figures = { + Figure( + title = "Angular velocities", + identifier = "855c3", + preferred = true, + plots = { + Plot( + curves = { + Curve(y = housing.w, legend = "Angular velocity of housing") + } + ), + Plot( + curves = { + Curve(y = shaft.w, legend = "Angular velocity of shaft"), + Curve(y = load.w, legend = "Angular velocity of load") + } + ) + } + ) + } + ), experiment(StopTime=10, Interval=0.01)); end ElasticBearing; diff --git a/Modelica/Mechanics/Rotational/Examples/First.mo b/Modelica/Mechanics/Rotational/Examples/First.mo index 18e654f3bb..649e3ac1a9 100644 --- a/Modelica/Mechanics/Rotational/Examples/First.mo +++ b/Modelica/Mechanics/Rotational/Examples/First.mo @@ -67,6 +67,22 @@ in the housing on one side via component Fixed.

Simulate for 1 second and plot the following variables:
angular velocities of inertias inertia2 and 3: inertia2.w, inertia3.w

-"), +", + figures = { + Figure( + title = "Angular velocities", + identifier = "b0723", + preferred = true, + plots = { + Plot( + curves = { + Curve(y = inertia2.w, legend = "Angular velocity of inertia2"), + Curve(y = inertia3.w, legend = "Angular velocity of inertia3") + } + ) + } + ) + } + ), experiment(StopTime=1.0, Interval=0.001)); end First; diff --git a/Modelica/Mechanics/Rotational/Examples/FirstGrounded.mo b/Modelica/Mechanics/Rotational/Examples/FirstGrounded.mo index 002dda11a0..8af0ad7756 100644 --- a/Modelica/Mechanics/Rotational/Examples/FirstGrounded.mo +++ b/Modelica/Mechanics/Rotational/Examples/FirstGrounded.mo @@ -63,6 +63,22 @@ in the housing on one side via component Fixed.

Simulate for 1 second and plot the following variables:
angular velocities of inertias inertia2 and 3: inertia2.w, inertia3.w

-"), +", + figures = { + Figure( + title = "Angular velocities", + identifier = "4f59b", + preferred = true, + plots = { + Plot( + curves = { + Curve(y = inertia2.w, legend = "Angular velocity of inertia2"), + Curve(y = inertia3.w, legend = "Angular velocity of inertia3") + } + ) + } + ) + } + ), experiment(StopTime=1.0, Interval=0.001)); end FirstGrounded; diff --git a/Modelica/Mechanics/Rotational/Examples/Friction.mo b/Modelica/Mechanics/Rotational/Examples/Friction.mo index 6ce060fa90..d31a188dbf 100644 --- a/Modelica/Mechanics/Rotational/Examples/Friction.mo +++ b/Modelica/Mechanics/Rotational/Examples/Friction.mo @@ -103,7 +103,32 @@ tSpring Torque in spring

as well as the absolute angular velocities of the three inertia components (inertia1.w, inertia2.w, inertia3.w).

-"), +", + figures = { + Figure( + title = "Torques and velocities", + identifier = "06e38", + preferred = true, + plots = { + Plot( + curves = { + Curve(y = tBrake, legend = "Torque of brake"), + Curve(y = tClutch, legend = "Torque of clutch"), + Curve(y = tMotor, legend = "Torque of motor"), + Curve(y = tSpring, legend = "Torque of spring") + } + ), + Plot( + curves = { + Curve(y = inertia1.w, legend = "Angular velocity of inertia1"), + Curve(y = inertia2.w, legend = "Angular velocity of inertia2"), + Curve(y = inertia3.w, legend = "Angular velocity of inertia3") + } + ) + } + ) + } + ), experiment(StopTime=3.0, Interval=0.001), Diagram(coordinateSystem(extent = {{-170,-100},{120,100}}))); end Friction; diff --git a/Modelica/Mechanics/Rotational/Examples/HeatLosses.mo b/Modelica/Mechanics/Rotational/Examples/HeatLosses.mo index 167887e38d..7d4caffffe 100644 --- a/Modelica/Mechanics/Rotational/Examples/HeatLosses.mo +++ b/Modelica/Mechanics/Rotational/Examples/HeatLosses.mo @@ -163,7 +163,22 @@ a convection element to the environment. The total heat flow generated by the elements of the drive train and transported to the environment is present in variable convection.fluid.

-"), +", + figures = { + Figure( + title = "Heat flow loss", + identifier = "5cd4c", + preferred = true, + plots = { + Plot( + curves = { + Curve(y = convection.Q_flow, legend = "Heat flow loss to convection component") + } + ) + } + ) + } + ), experiment(StopTime=1.0, Interval=0.0001), Diagram(coordinateSystem(extent={{-140,-100},{140,100}}))); end HeatLosses; diff --git a/Modelica/Mechanics/Rotational/Examples/LossyGearDemo1.mo b/Modelica/Mechanics/Rotational/Examples/LossyGearDemo1.mo index d4f3d26534..06ab298f87 100644 --- a/Modelica/Mechanics/Rotational/Examples/LossyGearDemo1.mo +++ b/Modelica/Mechanics/Rotational/Examples/LossyGearDemo1.mo @@ -80,6 +80,32 @@ should be identical, or the difference should be close to zero, if model LossyGear is correctly implemented.

-"), +", + figures = { + Figure( + title = "Velocities and power loss", + identifier = "9bae1", + preferred = true, + plots = { + Plot( + curves = { + Curve(y = Inertia1.w, legend = "Angular velocity of Inertia1"), + Curve(y = Inertia2.w, legend = "Angular velocity of Inertia2") + } + ), + Plot( + curves = { + Curve(y = PowerLoss, legend = "PowerLoss in gear") + } + ), + Plot( + curves = { + Curve(y = gear.mode, legend = "Mode of gear (-1/0/+1 = backward sliding/locked/forward sliding)") + } + ) + } + ) + } + ), experiment(StopTime=0.5, Interval=0.001)); end LossyGearDemo1; diff --git a/Modelica/Mechanics/Rotational/Examples/LossyGearDemo2.mo b/Modelica/Mechanics/Rotational/Examples/LossyGearDemo2.mo index d5ba21aa5b..04e93318c6 100644 --- a/Modelica/Mechanics/Rotational/Examples/LossyGearDemo2.mo +++ b/Modelica/Mechanics/Rotational/Examples/LossyGearDemo2.mo @@ -99,6 +99,33 @@ Note: This combination of LossyGear and BearingFriction is not recommended to us as component LossyGear includes the functionality of component BearingFriction (only peak not supported).

-"), +", + figures = { + Figure( + title = "Velocities and power loss", + identifier = "e85f2", + preferred = true, + plots = { + Plot( + curves = { + Curve(y = Inertia1.w, legend = "Angular velocity of Inertia1"), + Curve(y = Inertia2.w, legend = "Angular velocity of Inertia2") + } + ), + Plot( + curves = { + Curve(y = gear.lossPower, legend = "PowerLoss in gear") + } + ), + Plot( + curves = { + Curve(y = bearingFriction.mode, legend = "Mode of bearingFriction (-1/0/+1 = backward sliding/locked/forward sliding)"), + Curve(y = gear.mode, legend = "Mode of gear (-1/0/+1 = backward sliding/locked/forward sliding)") + } + ) + } + ) + } + ), experiment(StopTime=0.5, Interval=0.001)); end LossyGearDemo2; diff --git a/Modelica/Mechanics/Rotational/Examples/RollingWheel.mo b/Modelica/Mechanics/Rotational/Examples/RollingWheel.mo index 4b9b51a3fd..4db656a0f3 100644 --- a/Modelica/Mechanics/Rotational/Examples/RollingWheel.mo +++ b/Modelica/Mechanics/Rotational/Examples/RollingWheel.mo @@ -39,6 +39,26 @@ This model demonstrates the coupling between rotational and translational compon A torque (step) accelerates both the inertia (of the wheel) and the mass (of the vehicle).
Due to a speed dependent force (like a driving resistance), we find an equilibrium at 5 m/s after approx. 5 s.

-"), +", + figures = { + Figure( + title = "Velocities", + identifier = "fd586", + preferred = true, + plots = { + Plot( + curves = { + Curve(y = inertia.w, legend = "Angular velocity of inertia connected to the wheel") + } + ), + Plot( + curves = { + Curve(y = mass.v, legend = "Velocity of inertia connected to the wheel") + } + ) + } + ) + } + ), experiment(StopTime=5.0, Interval=0.001)); end RollingWheel; diff --git a/Modelica/Mechanics/Rotational/Examples/SimpleGearShift.mo b/Modelica/Mechanics/Rotational/Examples/SimpleGearShift.mo index 5566f33e96..c0d7f9cc8c 100644 --- a/Modelica/Mechanics/Rotational/Examples/SimpleGearShift.mo +++ b/Modelica/Mechanics/Rotational/Examples/SimpleGearShift.mo @@ -72,5 +72,26 @@ equation
  • In the beginning, the clutch is free and the brake fixes the ring of the planetary. Thus we obtain a gearRatio = 1/(1 + planetary.ratio).
  • At time = 2 s, the brake frees the ring of the planetary, whereas the clutch blocks the ring and the sun. Thus we obtain a gearRatio = 1.
  • -")); +", + figures = { + Figure( + title = "Gear ratio and velocities", + identifier = "5bac2", + preferred = true, + plots = { + Plot( + curves = { + Curve(y = gearRatio, legend = "Gear ratio in planetary gear") + } + ), + Plot( + curves = { + Curve(y = wEngine, legend = "Angular velocity of engine"), + Curve(y = wLoad, legend = "Angular velocity of load") + } + ) + } + ) + } + )); end SimpleGearShift;