Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 18 additions & 1 deletion Modelica/Mechanics/Rotational/Examples/Backlash.mo
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,23 @@ Furthermore, it shows the differences of the
<a href=\"modelica://Modelica.Mechanics.Rotational.Components.ElastoBacklash2\">ElastoBacklash2</a> components
(the ElastoBacklash2 component generates events when contact occurs and the torque changes discontinuously).
</p>
</html>"),
</html>",
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;
34 changes: 33 additions & 1 deletion Modelica/Mechanics/Rotational/Examples/CoupledClutches.mo
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,39 @@ frictional mode of clutches (clutchX.mode) where
mode = -1/0/+1 means backward sliding,
locked, forward sliding.</p>

</html>"),
</html>",
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"),
Expand Down
23 changes: 22 additions & 1 deletion Modelica/Mechanics/Rotational/Examples/ElasticBearing.mo
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,27 @@ housing dynamics.</p>
<p>
Simulate for about 10 seconds and plot the angular velocities of the inertias <code>housing.w</code>,
<code>shaft.w</code> and <code>load.w</code>.</p>
</html>"),
</html>",
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;
18 changes: 17 additions & 1 deletion Modelica/Mechanics/Rotational/Examples/First.mo
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,22 @@ in the housing on one side via component Fixed.</p>
<p>Simulate for 1 second and plot the following variables:<br>
angular velocities of inertias inertia2 and 3: inertia2.w, inertia3.w</p>

</html>"),
</html>",
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;
18 changes: 17 additions & 1 deletion Modelica/Mechanics/Rotational/Examples/FirstGrounded.mo
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,22 @@ in the housing on one side via component Fixed.</p>
<p>Simulate for 1 second and plot the following variables:<br>
angular velocities of inertias inertia2 and 3: inertia2.w, inertia3.w</p>

</html>"),
</html>",
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;
27 changes: 26 additions & 1 deletion Modelica/Mechanics/Rotational/Examples/Friction.mo
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,32 @@ tSpring Torque in spring
<p>as well as the absolute angular velocities of the three inertia components
(inertia1.w, inertia2.w, inertia3.w).</p>

</html>"),
</html>",
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;
17 changes: 16 additions & 1 deletion Modelica/Mechanics/Rotational/Examples/HeatLosses.mo
Original file line number Diff line number Diff line change
Expand Up @@ -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.
</p>
</html>"),
</html>",
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;
28 changes: 27 additions & 1 deletion Modelica/Mechanics/Rotational/Examples/LossyGearDemo1.mo
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,32 @@ should be identical, or the difference should be close to zero, if model
<a href=\"modelica://Modelica.Mechanics.Rotational.Components.LossyGear\">LossyGear</a>
is correctly implemented.
</p>
</html>"),
</html>",
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;
29 changes: 28 additions & 1 deletion Modelica/Mechanics/Rotational/Examples/LossyGearDemo2.mo
Original file line number Diff line number Diff line change
Expand Up @@ -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 <em>peak</em> not supported).
</p>
</html>"),
</html>",
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;
22 changes: 21 additions & 1 deletion Modelica/Mechanics/Rotational/Examples/RollingWheel.mo
Original file line number Diff line number Diff line change
Expand Up @@ -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).<br>
Due to a speed dependent force (like a driving resistance), we find an equilibrium at 5 m/s after approx. 5 s.
</p>
</html>"),
</html>",
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;
23 changes: 22 additions & 1 deletion Modelica/Mechanics/Rotational/Examples/SimpleGearShift.mo
Original file line number Diff line number Diff line change
Expand Up @@ -72,5 +72,26 @@ equation
<li>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).</li>
<li>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.</li>
</ul>
</html>"));
</html>",
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;
Loading