-
Notifications
You must be signed in to change notification settings - Fork 168
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
79 additions
and
84 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
within Modelica.Mechanics.Translational.Examples; | ||
model GearGrounded "Translational grounded gear" | ||
extends Modelica.Icons.Example; | ||
|
||
Sources.Force force( | ||
useSupport=false) annotation (Placement(transformation(extent={{-70,-10},{-50,10}}))); | ||
Components.IdealGear idealGear(ratio=1.6, useSupport=true) annotation (Placement(transformation(extent={{-10,-10},{10,10}}))); | ||
Components.Mass mass1( | ||
m=0.1) annotation (Placement(transformation(extent={{-40,-10},{-20,10}}))); | ||
Components.Mass mass2( | ||
m=7, | ||
s(fixed=true, start=0), | ||
v(fixed=true, start=0)) annotation (Placement(transformation(extent={{20,-10},{40,10}}))); | ||
Components.SpringDamper springDamper(c=160, d=10) annotation (Placement(transformation(extent={{50,-10},{70,10}}))); | ||
Components.SpringDamper springDamperSupport( | ||
s_rel(fixed=true), | ||
v_rel(fixed=true), | ||
c=800, | ||
d=50) annotation (Placement(transformation(extent={{-40,-50},{-20,-30}}))); | ||
Blocks.Sources.Ramp ramp( | ||
height=10, | ||
duration=0.6, | ||
startTime=0.2) | ||
annotation (Placement(transformation(extent={{-100,-10},{-80,10}}))); | ||
Components.Fixed fixed annotation (Placement(transformation(extent={{-68,-50},{-48,-30}}))); | ||
Components.Fixed fixed1 annotation (Placement(transformation(extent={{70,-10},{90,10}}))); | ||
equation | ||
connect(mass1.flange_b, idealGear.flange_a) annotation (Line(points={{-20,0},{-10,0}}, color={0,127,0})); | ||
connect(idealGear.flange_b, mass2.flange_a) annotation (Line(points={{10,0},{20,0}}, color={0,127,0})); | ||
connect(ramp.y, force.f) annotation (Line(points={{-79,0},{-72,0}}, color={0,0,127})); | ||
connect(force.flange, mass1.flange_a) annotation (Line(points={{-50,0},{-40,0}}, color={0,127,0})); | ||
connect(fixed.flange, springDamperSupport.flange_a) annotation (Line(points={{-58,-40},{-40,-40}}, color={0,127,0})); | ||
connect(springDamperSupport.flange_b, idealGear.support) annotation (Line(points={{-20,-40},{0,-40},{0,-10}}, color={0,127,0})); | ||
connect(mass2.flange_b, springDamper.flange_a) annotation (Line(points={{40,0},{50,0}}, color={0,127,0})); | ||
connect(springDamper.flange_b, fixed1.flange) annotation (Line(points={{70,0},{80,0}}, color={0,127,0})); | ||
annotation ( | ||
experiment( | ||
StopTime=3.0, | ||
Interval=0.001), | ||
Documentation(info="<html> | ||
<p> | ||
The <code>flange_a</code> of the lever is driven by a sine-wave motor force. | ||
Via a lever the translational energy is transmitted to a load mass. | ||
The lever is elastically mounted. | ||
For ratio <code>idealLever.ratio > 1</code> the 2nd class lever is | ||
realized, i.e. the driven flange <code>flange_b</code> is located between the | ||
driving flange <code>flange_a</code> and the lever's <code>support</code>. | ||
</p> | ||
<p> | ||
Simulate for 1 second and plot the velocities of masses: | ||
<code>mass2.v</code>, <code>mass2.v</code> | ||
</p> | ||
</html>")); | ||
end GearGrounded; |
50 changes: 0 additions & 50 deletions
50
Modelica/Mechanics/Translational/Examples/LeverGrounded.mo
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters