Skip to content

Commit

Permalink
Remove trimming white space
Browse files Browse the repository at this point in the history
  • Loading branch information
tbeu committed Nov 19, 2014
1 parent 844e9e7 commit 38632c8
Show file tree
Hide file tree
Showing 11 changed files with 560 additions and 560 deletions.
48 changes: 24 additions & 24 deletions PlanarMechanics/Examples/FreeBody.mo
@@ -1,24 +1,24 @@
within PlanarMechanics.Examples;
model FreeBody "A simple free falling body"
extends Modelica.Icons.Example;

inner PlanarWorld planarWorld
annotation (Placement(transformation(extent={{-30,-10},{-10,10}})));
Parts.Body body(m=1, I=0.1,
animate=true,
a(each fixed=false),
r(each fixed=true),
v(each fixed=true),
phi(fixed=true),
w(fixed=true))
annotation (Placement(transformation(extent={{10,-10},{30,10}})));
annotation (
experiment(StopTime=3),
Documentation(revisions="<html>
<p><img src=\"modelica://PlanarMechanics/Resources/Images/dlr_logo.png\"/> <b>Developed 2010-2014 at the DLR Institute of System Dynamics and Control</b></p></html>",
info="<html>
<p>The gravity is defined in the planarWorld component</p>
<p><img src=\"modelica://PlanarMechanics/Resources/Images/FreeBody_1.png\"/></p>
<p>The DAE has 73&nbsp;scalar unknowns and 73&nbsp;scalar equations.</p>
</html>"));
end FreeBody;
within PlanarMechanics.Examples;
model FreeBody "A simple free falling body"
extends Modelica.Icons.Example;

inner PlanarWorld planarWorld
annotation (Placement(transformation(extent={{-30,-10},{-10,10}})));
Parts.Body body(m=1, I=0.1,
animate=true,
a(each fixed=false),
r(each fixed=true),
v(each fixed=true),
phi(fixed=true),
w(fixed=true))
annotation (Placement(transformation(extent={{10,-10},{30,10}})));
annotation (
experiment(StopTime=3),
Documentation(revisions="<html>
<p><img src=\"modelica://PlanarMechanics/Resources/Images/dlr_logo.png\"/> <b>Developed 2010-2014 at the DLR Institute of System Dynamics and Control</b></p></html>",
info="<html>
<p>The gravity is defined in the planarWorld component</p>
<p><img src=\"modelica://PlanarMechanics/Resources/Images/FreeBody_1.png\"/></p>
<p>The DAE has 73&nbsp;scalar unknowns and 73&nbsp;scalar equations.</p>
</html>"));
end FreeBody;
2 changes: 1 addition & 1 deletion PlanarMechanics/Examples/package.mo
Expand Up @@ -11,7 +11,7 @@ package Examples "Collection of introductory examples"
</html>",
info="<html>
<p>
This package is a collection of simulatable examples which show the use of the library models and elements.
This package is a collection of simulatable examples which show the use of the library models and elements.
</p>
</html>"));
end Examples;
80 changes: 40 additions & 40 deletions PlanarMechanics/GearComponents/Examples/PlanetaryGear.mo
@@ -1,40 +1,40 @@
within PlanarMechanics.GearComponents.Examples;
model PlanetaryGear "Rigid planetary gearbox"
extends Modelica.Icons.Example;

Utilities.RigidNoLossPlanetary planetary(
useHeatPort=true,
r_s=1,
r_p=1,
r_r=3,
J_s=1e-3,
J_p=1e-3,
J_c=1e-3,
J_r=1e-3)
annotation (Placement(transformation(extent={{0,0},{40,40}})));
Modelica.Thermal.HeatTransfer.Components.HeatCapacitor heatCapacitor(C=1)
annotation (Placement(transformation(extent={{-10,-10},{10,10}},
rotation=90,
origin={-20,-30})));
Modelica.Mechanics.Rotational.Sources.ConstantSpeed SunSpeed(w_fixed=1)
annotation (Placement(transformation(extent={{-50,0},{-30,20}})));
Modelica.Mechanics.Rotational.Sources.ConstantTorque RingTorque(tau_constant=
1) annotation (Placement(transformation(extent={{-50,30},{-30,50}})));
equation
connect(heatCapacitor.port, planetary.heatPort) annotation (Line(
points={{-10,-30},{0,-30},{0,0}},
color={191,0,0}));
connect(planetary.flange_Sun,SunSpeed. flange) annotation (Line(
points={{0,20},{-10,20},{-10,10},{-30,10}}));
connect(RingTorque.flange, planetary.flange_Ring) annotation (Line(
points={{-30,40},{-10,40},{-10,32},{0,32}}));
annotation (Documentation(info="<html>
<p>The model shows the possibilities of the gear connection models.
In this example only one of 3 planets is modelled. This reduction can be done because of the symmetry of the gears. For more advanced topics like load sharing between gears, more advanced models should be used.</p>
<p>
The ring gear is driven using a 1&nbsp;Nm load, the velocity of the sun is fixed to 1&nbsp;rad/s.
</p>
</html>", revisions=
"<html><p><img src=\"modelica://PlanarMechanics/Resources/Images/dlr_logo.png\"/> <b>Developed 2010-2014 at the DLR Institute of System Dynamics and Control</b></p></html>"),
experiment(StopTime=10));
end PlanetaryGear;
within PlanarMechanics.GearComponents.Examples;
model PlanetaryGear "Rigid planetary gearbox"
extends Modelica.Icons.Example;

Utilities.RigidNoLossPlanetary planetary(
useHeatPort=true,
r_s=1,
r_p=1,
r_r=3,
J_s=1e-3,
J_p=1e-3,
J_c=1e-3,
J_r=1e-3)
annotation (Placement(transformation(extent={{0,0},{40,40}})));
Modelica.Thermal.HeatTransfer.Components.HeatCapacitor heatCapacitor(C=1)
annotation (Placement(transformation(extent={{-10,-10},{10,10}},
rotation=90,
origin={-20,-30})));
Modelica.Mechanics.Rotational.Sources.ConstantSpeed SunSpeed(w_fixed=1)
annotation (Placement(transformation(extent={{-50,0},{-30,20}})));
Modelica.Mechanics.Rotational.Sources.ConstantTorque RingTorque(tau_constant=
1) annotation (Placement(transformation(extent={{-50,30},{-30,50}})));
equation
connect(heatCapacitor.port, planetary.heatPort) annotation (Line(
points={{-10,-30},{0,-30},{0,0}},
color={191,0,0}));
connect(planetary.flange_Sun,SunSpeed. flange) annotation (Line(
points={{0,20},{-10,20},{-10,10},{-30,10}}));
connect(RingTorque.flange, planetary.flange_Ring) annotation (Line(
points={{-30,40},{-10,40},{-10,32},{0,32}}));
annotation (Documentation(info="<html>
<p>The model shows the possibilities of the gear connection models.
In this example only one of 3 planets is modelled. This reduction can be done because of the symmetry of the gears. For more advanced topics like load sharing between gears, more advanced models should be used.</p>
<p>
The ring gear is driven using a 1&nbsp;Nm load, the velocity of the sun is fixed to 1&nbsp;rad/s.
</p>
</html>", revisions=
"<html><p><img src=\"modelica://PlanarMechanics/Resources/Images/dlr_logo.png\"/> <b>Developed 2010-2014 at the DLR Institute of System Dynamics and Control</b></p></html>"),
experiment(StopTime=10));
end PlanetaryGear;
@@ -1,23 +1,23 @@
within PlanarMechanics.GearComponents.Examples.Utilities.Interfaces;
partial model PlanetaryGearInterface "Planetary gear interface"
extends PlanarMechanics.Utilities.Icons.PlanetaryGear;
extends Modelica.Thermal.HeatTransfer.Interfaces.PartialConditionalHeatPort;

Modelica.Mechanics.Rotational.Interfaces.Flange_b flange_Ring
"Flange of shaft"
annotation (Placement(transformation(extent={{-110,50},{-90,70}}),
iconTransformation(extent={{-110,50},{-90,70}})));
Modelica.Mechanics.Rotational.Interfaces.Flange_b flange_Sun
"Flange of shaft"
annotation (Placement(transformation(extent={{-110,-10},{-90,10}}),
iconTransformation(extent={{-110,-10},{-90,10}})));
Modelica.Mechanics.Rotational.Interfaces.Flange_a flange_Carrier
annotation (
Placement(transformation(extent={{90,-10},{110,10}}),iconTransformation(
extent={{90,-10},{110,10}})));
annotation (Documentation(revisions="<html>
<p><img src=\"modelica://PlanarMechanics/Resources/Images/dlr_logo.png\"/> <b>Developed 2010-2014 at the DLR Institute of System Dynamics and Control</b></p>
</html>", info="<html>
<p>This partial class contains common interfaces for a planetary gear model.</p>
</html>"));
end PlanetaryGearInterface;
within PlanarMechanics.GearComponents.Examples.Utilities.Interfaces;
partial model PlanetaryGearInterface "Planetary gear interface"
extends PlanarMechanics.Utilities.Icons.PlanetaryGear;
extends Modelica.Thermal.HeatTransfer.Interfaces.PartialConditionalHeatPort;

Modelica.Mechanics.Rotational.Interfaces.Flange_b flange_Ring
"Flange of shaft"
annotation (Placement(transformation(extent={{-110,50},{-90,70}}),
iconTransformation(extent={{-110,50},{-90,70}})));
Modelica.Mechanics.Rotational.Interfaces.Flange_b flange_Sun
"Flange of shaft"
annotation (Placement(transformation(extent={{-110,-10},{-90,10}}),
iconTransformation(extent={{-110,-10},{-90,10}})));
Modelica.Mechanics.Rotational.Interfaces.Flange_a flange_Carrier
annotation (
Placement(transformation(extent={{90,-10},{110,10}}),iconTransformation(
extent={{90,-10},{110,10}})));
annotation (Documentation(revisions="<html>
<p><img src=\"modelica://PlanarMechanics/Resources/Images/dlr_logo.png\"/> <b>Developed 2010-2014 at the DLR Institute of System Dynamics and Control</b></p>
</html>", info="<html>
<p>This partial class contains common interfaces for a planetary gear model.</p>
</html>"));
end PlanetaryGearInterface;
2 changes: 1 addition & 1 deletion PlanarMechanics/GearComponents/Examples/package.mo
Expand Up @@ -7,7 +7,7 @@ annotation (Documentation(revisions="<html>
<p><img src=\"modelica://PlanarMechanics/Resources/Images/dlr_logo.png\"/> <b>Developed 2010-2014 at the DLR Institute of System Dynamics and Control</b></p>
</html>", info="<html>
<p>
This package is a collection of simulatable models which show the usage of gear components.
This package is a collection of simulatable models which show the usage of gear components.
</p>
</html>"));
end Examples;
6 changes: 3 additions & 3 deletions PlanarMechanics/GearComponents/Examples/package.order
@@ -1,3 +1,3 @@
PlanetaryGear
SpurGear
Utilities
PlanetaryGear
SpurGear
Utilities
90 changes: 45 additions & 45 deletions PlanarMechanics/Interfaces/Frame_a.mo
@@ -1,45 +1,45 @@
within PlanarMechanics.Interfaces;
connector Frame_a
"Coordinate system (2-dim.) fixed to the component with one cut-force and cut-torque (blue icon)"
extends Frame;
annotation (defaultComponentName="frame_a",
Icon(
coordinateSystem(
preserveAspectRatio=true,
extent={{-100,-100},{100,100}},
initialScale=0.16),
graphics={
Rectangle(
extent={{-10,10},{10,-10}},
lineColor={95,95,95},
lineThickness=0.5),
Rectangle(
extent={{-34,100},{34,-100}},
lineColor={95,95,95},
fillColor={70,163,255},
fillPattern=FillPattern.Solid,
lineThickness=0.5),
Line(points={{-20,0},{20,0}}, color={135,197,255}),
Line(points={{0,20},{0,-20}}, color={135,197,255})}),
Diagram(
coordinateSystem(
preserveAspectRatio=true,
extent={{-100,-100},{100,100}},
initialScale=0.16),
graphics={
Rectangle(
extent={{-16,50},{16,-50}},
lineColor={95,95,95},
fillColor={70,163,255},
fillPattern=FillPattern.Solid,
lineThickness=0.5),
Line(points={{-12,0},{12,0}}, color={135,197,255}),
Line(points={{0,12},{0,-12}}, color={135,197,255}),
Text(
extent={{-140,-50},{140,-88}},
lineColor={0,0,0},
textString="%name")}),
Documentation(revisions="<html><p><img src=\"modelica://PlanarMechanics/Resources/Images/dlr_logo.png\"/> <b>Developed 2010-2014 at the DLR Institute of System Dynamics and Control</b></p></html>", info="<html>
<p>Frame_a is a connector, which lies at the origin of the coordinate system attached to it. Cut-force and cut_torque act at the origin of the coordinate system. Normally, this connector is fixed to a mechanical component. The same as <a href=\"modelica://PlanarMechanics.Interfaces.Frame_b\">Frame_b</a>.</p>
</html>"));
end Frame_a;
within PlanarMechanics.Interfaces;
connector Frame_a
"Coordinate system (2-dim.) fixed to the component with one cut-force and cut-torque (blue icon)"
extends Frame;
annotation (defaultComponentName="frame_a",
Icon(
coordinateSystem(
preserveAspectRatio=true,
extent={{-100,-100},{100,100}},
initialScale=0.16),
graphics={
Rectangle(
extent={{-10,10},{10,-10}},
lineColor={95,95,95},
lineThickness=0.5),
Rectangle(
extent={{-34,100},{34,-100}},
lineColor={95,95,95},
fillColor={70,163,255},
fillPattern=FillPattern.Solid,
lineThickness=0.5),
Line(points={{-20,0},{20,0}}, color={135,197,255}),
Line(points={{0,20},{0,-20}}, color={135,197,255})}),
Diagram(
coordinateSystem(
preserveAspectRatio=true,
extent={{-100,-100},{100,100}},
initialScale=0.16),
graphics={
Rectangle(
extent={{-16,50},{16,-50}},
lineColor={95,95,95},
fillColor={70,163,255},
fillPattern=FillPattern.Solid,
lineThickness=0.5),
Line(points={{-12,0},{12,0}}, color={135,197,255}),
Line(points={{0,12},{0,-12}}, color={135,197,255}),
Text(
extent={{-140,-50},{140,-88}},
lineColor={0,0,0},
textString="%name")}),
Documentation(revisions="<html><p><img src=\"modelica://PlanarMechanics/Resources/Images/dlr_logo.png\"/> <b>Developed 2010-2014 at the DLR Institute of System Dynamics and Control</b></p></html>", info="<html>
<p>Frame_a is a connector, which lies at the origin of the coordinate system attached to it. Cut-force and cut_torque act at the origin of the coordinate system. Normally, this connector is fixed to a mechanical component. The same as <a href=\"modelica://PlanarMechanics.Interfaces.Frame_b\">Frame_b</a>.</p>
</html>"));
end Frame_a;
90 changes: 45 additions & 45 deletions PlanarMechanics/Interfaces/Frame_b.mo
@@ -1,45 +1,45 @@
within PlanarMechanics.Interfaces;
connector Frame_b
"Coordinate system (2-dim.) fixed to the component with one cut-force and cut-torque (light blue icon)"
extends Frame;
annotation (defaultComponentName="frame_b",
Icon(
coordinateSystem(
preserveAspectRatio=true,
extent={{-100,-100},{100,100}},
initialScale=0.16),
graphics={
Rectangle(
extent={{-10,10},{10,-10}},
lineColor={95,95,95},
lineThickness=0.5),
Rectangle(
extent={{-34,100},{34,-100}},
lineColor={95,95,95},
fillColor={225,240,255},
fillPattern=FillPattern.Solid,
lineThickness=0.5),
Line(points={{-20,0},{20,0}}, color={135,197,255}),
Line(points={{0,20},{0,-20}}, color={135,197,255})}),
Diagram(
coordinateSystem(
preserveAspectRatio=true,
extent={{-100,-100},{100,100}},
initialScale=0.16),
graphics={
Rectangle(
extent={{-16,50},{16,-50}},
lineColor={95,95,95},
fillColor={225,240,255},
fillPattern=FillPattern.Solid,
lineThickness=0.5),
Line(points={{-12,0},{12,0}}, color={135,197,255}),
Line(points={{0,12},{0,-12}}, color={135,197,255}),
Text(
extent={{-140,-50},{140,-88}},
lineColor={0,0,0},
textString="%name")}),
Documentation(revisions="<html><p><img src=\"modelica://PlanarMechanics/Resources/Images/dlr_logo.png\"/> <b>Developed 2010-2014 at the DLR Institute of System Dynamics and Control</b></p></html>", info="<html>
<p>Frame_b is a connector, which lies at the origin of the coordinate system attached to it. Cut-force and cut_torque act at the origin of the coordinate system. Normally, this connector is fixed to a mechanical component. The same as <a href=\"modelica://PlanarMechanics.Interfaces.Frame_a\">Frame_a</a>.</p>
</html>"));
end Frame_b;
within PlanarMechanics.Interfaces;
connector Frame_b
"Coordinate system (2-dim.) fixed to the component with one cut-force and cut-torque (light blue icon)"
extends Frame;
annotation (defaultComponentName="frame_b",
Icon(
coordinateSystem(
preserveAspectRatio=true,
extent={{-100,-100},{100,100}},
initialScale=0.16),
graphics={
Rectangle(
extent={{-10,10},{10,-10}},
lineColor={95,95,95},
lineThickness=0.5),
Rectangle(
extent={{-34,100},{34,-100}},
lineColor={95,95,95},
fillColor={225,240,255},
fillPattern=FillPattern.Solid,
lineThickness=0.5),
Line(points={{-20,0},{20,0}}, color={135,197,255}),
Line(points={{0,20},{0,-20}}, color={135,197,255})}),
Diagram(
coordinateSystem(
preserveAspectRatio=true,
extent={{-100,-100},{100,100}},
initialScale=0.16),
graphics={
Rectangle(
extent={{-16,50},{16,-50}},
lineColor={95,95,95},
fillColor={225,240,255},
fillPattern=FillPattern.Solid,
lineThickness=0.5),
Line(points={{-12,0},{12,0}}, color={135,197,255}),
Line(points={{0,12},{0,-12}}, color={135,197,255}),
Text(
extent={{-140,-50},{140,-88}},
lineColor={0,0,0},
textString="%name")}),
Documentation(revisions="<html><p><img src=\"modelica://PlanarMechanics/Resources/Images/dlr_logo.png\"/> <b>Developed 2010-2014 at the DLR Institute of System Dynamics and Control</b></p></html>", info="<html>
<p>Frame_b is a connector, which lies at the origin of the coordinate system attached to it. Cut-force and cut_torque act at the origin of the coordinate system. Normally, this connector is fixed to a mechanical component. The same as <a href=\"modelica://PlanarMechanics.Interfaces.Frame_a\">Frame_a</a>.</p>
</html>"));
end Frame_b;

0 comments on commit 38632c8

Please sign in to comment.