Skip to content

Commit 5543107

Browse files
committed
Removes superfluous dummy annotations and trailing white spaces.
All changes were checked against `literalinclude` in rst files.
1 parent 0f2110c commit 5543107

File tree

76 files changed

+50
-76
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

76 files changed

+50
-76
lines changed

ModelicaByExample/Architectures/SensorComparison/Examples/SystemArchitecture_WithDefaults.mo

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,5 +51,4 @@ equation
5151
color={0,0,127},
5252
pattern=LinePattern.None,
5353
smooth=Smooth.None));
54-
annotation (Diagram(graphics));
5554
end SystemArchitecture_WithDefaults;

ModelicaByExample/Architectures/SensorComparison/Implementation/SampleHoldSensor.mo

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ equation
2121
color={0,0,0},
2222
pattern=LinePattern.None,
2323
smooth=Smooth.None));
24-
annotation (Diagram(graphics), Icon(graphics={
24+
annotation ( Icon(graphics={
2525
Rectangle(
2626
extent={{-100,100},{100,-100}},
2727
lineColor={0,0,0},

ModelicaByExample/Architectures/ThermalControl/Architectures/ExpandableArchitecture.mo

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,5 +27,4 @@ equation
2727
points={{50,0},{60,0},{60,28},{0,28},{0,50}},
2828
color={0,0,0},
2929
smooth=Smooth.None));
30-
annotation (Diagram(graphics));
3130
end ExpandableArchitecture;

ModelicaByExample/Architectures/ThermalControl/Bogus/Actuator_WithBus.mo

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,4 @@ partial model Actuator_WithBus "Actuator subsystem interface with bus"
77
ModelicaByExample.Architectures.ThermalControl.Bogus.PlantBus
88
basicBus
99
annotation (Placement(transformation(extent={{-110,-10},{-90,10}})));
10-
annotation (Diagram(graphics));
1110
end Actuator_WithBus;

ModelicaByExample/Architectures/ThermalControl/Bogus/BusActuator.mo

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,5 +54,5 @@ equation
5454
{30,-20},{50,-30},{30,-40},{40,-50},{40,-60}},
5555
color={255,0,0},
5656
smooth=Smooth.None,
57-
thickness=0.5)}), Diagram(graphics));
57+
thickness=0.5)}));
5858
end BusActuator;

ModelicaByExample/Architectures/ThermalControl/Bogus/BusBasedArchitecture.mo

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,5 +29,4 @@ equation
2929
points={{50,0},{60,0},{60,28},{0,28},{0,50}},
3030
color={0,0,0},
3131
smooth=Smooth.None));
32-
annotation (Diagram(graphics));
3332
end BusBasedArchitecture;

ModelicaByExample/Architectures/ThermalControl/Bogus/BusPIControl.mo

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,5 +43,5 @@ equation
4343
extent={{-100,60},{100,-60}},
4444
lineColor={0,0,0},
4545
fillPattern=FillPattern.Solid,
46-
textString="PI")}), Diagram(graphics));
46+
textString="PI")}));
4747
end BusPIControl;

ModelicaByExample/Architectures/ThermalControl/Bogus/BusSensor.mo

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,5 +44,5 @@ equation
4444
Text(
4545
extent={{94,-28},{52,-78}},
4646
lineColor={0,0,0},
47-
textString="K")}), Diagram(graphics));
47+
textString="K")}));
4848
end BusSensor;

ModelicaByExample/Architectures/ThermalControl/Bogus/ControlSystem_WithBus.mo

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,4 @@ partial model ControlSystem_WithBus
33
"Control system interface using a bus connector"
44
ModelicaByExample.Architectures.ThermalControl.Bogus.ControllerBus basicBus
55
annotation (Placement(transformation(extent={{-10,-110},{10,-90}})));
6-
annotation (Diagram(graphics));
76
end ControlSystem_WithBus;

ModelicaByExample/Architectures/ThermalControl/Bogus/Sensor_WithBus.mo

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,4 @@ partial model Sensor_WithBus "Sensor subsystem interface using a bus"
66
annotation (Placement(transformation(extent={{-110,-10},{-90,10}})));
77
ModelicaByExample.Architectures.ThermalControl.Bogus.PlantBus
88
basicBus annotation (Placement(transformation(extent={{90,-10},{110,10}})));
9-
annotation (Diagram(graphics));
109
end Sensor_WithBus;
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
within ModelicaByExample.Architectures.ThermalControl;
2-
package Examples
2+
package Examples
33
end Examples;

ModelicaByExample/Architectures/ThermalControl/Implementations/ContinuousActuator.mo

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,5 +56,5 @@ equation
5656
{30,-20},{50,-30},{30,-40},{40,-50},{40,-60}},
5757
color={255,0,0},
5858
smooth=Smooth.None,
59-
thickness=0.5)}), Diagram(graphics));
59+
thickness=0.5)}));
6060
end ContinuousActuator;

ModelicaByExample/Architectures/ThermalControl/Implementations/ConventionalPIControl.mo

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ equation
3232
points={{-51,0},{-110,0}},
3333
color={0,0,127},
3434
smooth=Smooth.None));
35-
annotation (Diagram(graphics), Icon(graphics={Rectangle(
35+
annotation ( Icon(graphics={Rectangle(
3636
extent={{-100,100},{100,-100}},
3737
lineColor={0,0,0},
3838
fillColor={215,215,215},

ModelicaByExample/Architectures/ThermalControl/Implementations/ConventionalSensor.mo

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ equation
1111
connect(sensor.port, room) annotation (Line(
1212
points={{-10,0},{-100,0}},
1313
color={191,0,0}, smooth=Smooth.None));
14-
annotation (Diagram(graphics), Icon(graphics={
14+
annotation ( Icon(graphics={
1515
Ellipse(
1616
extent={{-8,-98},{32,-60}},
1717
lineColor={0,0,0},

ModelicaByExample/Architectures/ThermalControl/Implementations/TemperatureSensor.mo

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,5 +44,5 @@ equation
4444
Text(
4545
extent={{94,-28},{52,-78}},
4646
lineColor={0,0,0},
47-
textString="K")}), Diagram(graphics));
47+
textString="K")}));
4848
end TemperatureSensor;

ModelicaByExample/Architectures/ThermalControl/Implementations/ThreeZonePlantModel.mo

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ equation
108108
points={{28,50},{30,50},{30,-20},{48,-20},{48,-40},{60,-40}},
109109
color={191,0,0},
110110
smooth=Smooth.None));
111-
annotation (Diagram(graphics), Icon(graphics={
111+
annotation ( Icon(graphics={
112112
Rectangle(extent={{-100,100},{100,-100}}, lineColor={0,0,0}),
113113
Ellipse(
114114
extent={{-80,20},{-40,-20}},

ModelicaByExample/Architectures/ThermalControl/Interfaces/ControlSystem.mo

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,5 +10,4 @@ partial model ControlSystem "Control system interface"
1010
extent={{-10,-10},{10,10}},
1111
rotation=180,
1212
origin={-110,0})));
13-
annotation (Diagram(graphics));
1413
end ControlSystem;

ModelicaByExample/Architectures/ThermalControl/Interfaces/ControlSystem_WithExpandableBus.mo

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,4 @@ partial model ControlSystem_WithExpandableBus
33
"Control system interface using an expandable bus connector"
44
ExpandableBus bus annotation (Placement(transformation(extent={{-10,-110},{10,
55
-90}}), iconTransformation(extent={{-10,-110},{10,-90}})));
6-
annotation (Diagram(graphics), Icon(graphics));
76
end ControlSystem_WithExpandableBus;

ModelicaByExample/Architectures/ThermalControl/Interfaces/PlantModel.mo

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,4 @@ partial model PlantModel "Plant subsystem interface model"
55
Modelica.Thermal.HeatTransfer.Interfaces.HeatPort_b furnace
66
"Connection point for the furnace"
77
annotation (Placement(transformation(extent={{-110,-10},{-90,10}})));
8-
annotation (Diagram(graphics));
98
end PlantModel;

ModelicaByExample/Architectures/ThermalControl/Interfaces/Sensor.mo

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,5 +8,4 @@ partial model Sensor "Sensor subsystem interface"
88
extent={{-10,-10},{10,10}},
99
rotation=0,
1010
origin={110,0})));
11-
annotation (Diagram(graphics));
1211
end Sensor;
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
within ModelicaByExample.ArrayEquations.StateSpace;
2-
package Examples
2+
package Examples
33
end Examples;
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
within ModelicaByExample.BasicEquations;
2-
package CoolingExample
2+
package CoolingExample
33
end CoolingExample;

ModelicaByExample/BasicEquations/RotationalSMD/SecondOrderSystem.mo

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,4 +27,4 @@ equation
2727
// Equations for inertia 2
2828
omega2 = der(phi2);
2929
J2*der(omega2) = k1*(phi1-phi2)+d1*der(phi1-phi2)-k2*phi2-d2*der(phi2);
30-
end SecondOrderSystem;
30+
end SecondOrderSystem;
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
within ModelicaByExample.BasicEquations;
2-
package SimpleExample
2+
package SimpleExample
33
end SimpleExample;
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
within ModelicaByExample;
2-
package BasicEquations
2+
package BasicEquations
33
end BasicEquations;

ModelicaByExample/Components/BlockDiagrams/Components/Constant.mo

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ block Constant "A constant source"
55
extends Interfaces.SO;
66
equation
77
y = k;
8-
annotation (Diagram(graphics), Icon(graphics={Line(
8+
annotation ( Icon(graphics={Line(
99
points={{-80,20},{80,20}},
1010
color={0,128,255},
1111
smooth=Smooth.None), Text(

ModelicaByExample/Components/BlockDiagrams/Components/Feedback.mo

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ block Feedback "A block to compute feedback terms"
1010
annotation (Placement(transformation(extent={{90,-10},{110,10}})));
1111
equation
1212
y = u1-u2;
13-
annotation (Diagram(graphics), Icon(graphics={
13+
annotation ( Icon(graphics={
1414
Ellipse(
1515
extent={{-20,20},{20,-20}},
1616
lineColor={0,0,0},

ModelicaByExample/Components/BlockDiagrams/Components/HeatSource.mo

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ model HeatSource "Apply heating (or cooling) to a thermal system"
66
annotation (Placement(transformation(extent={{90,-10},{110,10}})));
77
equation
88
node.Q_flow = -u;
9-
annotation (Diagram(graphics), Icon(graphics={Polygon(
9+
annotation ( Icon(graphics={Polygon(
1010
points={{-100,20},{-100,-20},{40,-20},{40,-40},{90,0},{40,40},{40,20},
1111
{-100,20}},
1212
pattern=LinePattern.None,

ModelicaByExample/Components/BlockDiagrams/Components/IdealTemperatureSensor.mo

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,5 +56,5 @@ equation
5656
Line(
5757
points={{22,0},{100,0}},
5858
color={0,0,255},
59-
smooth=Smooth.None)}), Diagram(graphics));
59+
smooth=Smooth.None)}));
6060
end IdealTemperatureSensor;

ModelicaByExample/Components/BlockDiagrams/Examples/ControlledCooling.mo

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,5 +66,4 @@ equation
6666
points={{71,30},{80,30},{80,60},{-80,60},{-80,0.5},{-71,0.5}},
6767
color={0,0,255},
6868
smooth=Smooth.None));
69-
annotation (Diagram(graphics));
7069
end ControlledCooling;

ModelicaByExample/Components/BlockDiagrams/Icons/Axes.mo

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
within ModelicaByExample.Components.BlockDiagrams.Icons;
22
block Axes "Introduces graphics for independent and dependent axes"
33

4-
annotation (Diagram(graphics), Icon(graphics={
4+
annotation ( Icon(graphics={
55
Rectangle(extent={{-100,100},{100,-100}}, lineColor={0,0,0},
66
fillPattern=FillPattern.Solid,
77
fillColor={255,255,255}),
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
within ModelicaByExample.Components.BlockDiagrams;
2-
package Icons
2+
package Icons
33
end Icons;

ModelicaByExample/Components/BlockDiagrams/Interfaces/DISO.mo

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,4 @@ partial block DISO "A double input, single output (DISO) partial model"
66
RealInput u2 "Input signal 2" annotation (Placement(transformation(extent={{-120,
77
-70},{-100,-50}}),
88
iconTransformation(extent={{-120,-70},{-100,-50}})));
9-
annotation (Diagram(graphics), Icon(graphics));
109
end DISO;

ModelicaByExample/Components/BlockDiagrams/Interfaces/SI.mo

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,4 @@ within ModelicaByExample.Components.BlockDiagrams.Interfaces;
22
partial block SI "A single input (SI) partial model"
33
RealInput u "Input signal"
44
annotation (Placement(transformation(extent={{-120,-10},{-100,10}})));
5-
annotation (Diagram(graphics), Icon(graphics));
65
end SI;

ModelicaByExample/Components/BlockDiagrams/Interfaces/SISO.mo

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,4 @@ within ModelicaByExample.Components.BlockDiagrams.Interfaces;
22
partial block SISO "A single input, single output (SISO) partial model"
33
extends SI;
44
extends SO;
5-
annotation (Diagram(graphics), Icon(graphics));
65
end SISO;

ModelicaByExample/Components/BlockDiagrams/Interfaces/SO.mo

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ partial block SO "A single output (SO) partial model"
33

44
RealOutput y "Output signal" annotation (Placement(transformation(extent={{90,
55
-10},{110,10}}), iconTransformation(extent={{100,-10},{120,10}})));
6-
annotation (Diagram(graphics), Icon(graphics={Text(
6+
annotation ( Icon(graphics={Text(
77
extent={{-100,-104},{100,-144}},
88
lineColor={0,0,0},
99
textString="%name")}));
Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
11
within ModelicaByExample.Components.BlockDiagrams;
22
package Interfaces "Connectors and partial models for block diagrams"
3-
annotation (Icon(graphics));
43
end Interfaces;

ModelicaByExample/Components/Electrical/DryApproach/Ground.mo

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ model Ground "Electrical ground"
44
annotation (Placement(transformation(extent={{-10,70},{10,90}})));
55
equation
66
ground.v = 0;
7-
annotation (Diagram(graphics), Icon(graphics={
7+
annotation ( Icon(graphics={
88
Rectangle(
99
extent={{-62,42},{62,38}},
1010
lineColor={0,0,255},
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
within ModelicaByExample.Components.Electrical;
2-
package Examples
2+
package Examples
33
end Examples;

ModelicaByExample/Components/Electrical/VerboseApproach/Capacitor.mo

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ protected
1010
equation
1111
p.i + n.i = 0 "Conservation of charge";
1212
C*der(v) = p.i;
13-
annotation (Diagram(graphics), Icon(graphics={
13+
annotation ( Icon(graphics={
1414
Text(
1515
extent={{-100,-40},{100,-80}},
1616
lineColor={0,0,0},

ModelicaByExample/Components/Electrical/VerboseApproach/Inductor.mo

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ protected
1010
equation
1111
p.i + n.i = 0 "Conservation of charge";
1212
L*der(p.i) = p.v;
13-
annotation (Diagram(graphics), Icon(graphics={
13+
annotation ( Icon(graphics={
1414
Text(
1515
extent={{-100,-40},{100,-80}},
1616
lineColor={0,0,0},

ModelicaByExample/Components/Electrical/VerboseApproach/Resistor.mo

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ protected
1010
equation
1111
p.i + n.i = 0 "Conservation of charge";
1212
v = p.i*R "Ohm's law";
13-
annotation (Diagram(graphics), Icon(graphics={
13+
annotation ( Icon(graphics={
1414
Rectangle(extent={{-70,30},{70,-30}}, lineColor={0,0,255},
1515
fillColor={255,255,255},
1616
fillPattern=FillPattern.Solid),

ModelicaByExample/Components/HeatTransfer/AmbientCondition.mo

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,5 +24,5 @@ equation
2424
lineColor={0,0,0},
2525
fillColor={255,170,170},
2626
fillPattern=FillPattern.Solid,
27-
textString="T_amb=%T_amb")}), Diagram(graphics));
27+
textString="T_amb=%T_amb")}));
2828
end AmbientCondition;

ModelicaByExample/Components/HeatTransfer/Convection.mo

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ model Convection "Modeling convection between port_a and port_b"
99
equation
1010
port_a.Q_flow + port_b.Q_flow = 0 "Conservation of energy";
1111
port_a.Q_flow = h*A*(port_a.T-port_b.T) "Heat transfer equation";
12-
annotation (Diagram(graphics), Icon(graphics={
12+
annotation ( Icon(graphics={
1313
Rectangle(
1414
extent={{-100,100},{-40,-100}},
1515
lineColor={135,135,135},

ModelicaByExample/Components/HeatTransfer/ConvectionToAmbient.mo

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ model ConvectionToAmbient "An overly specialized model of convection"
77
annotation (Placement(transformation(extent={{-110,-10},{-90,10}})));
88
equation
99
port_a.Q_flow = h*A*(port_a.T-T_amb) "Heat transfer equation";
10-
annotation (Diagram(graphics), Icon(graphics={
10+
annotation ( Icon(graphics={
1111
Rectangle(
1212
extent={{-100,100},{-40,-100}},
1313
lineColor={135,135,135},

ModelicaByExample/Components/HeatTransfer/Examples/ComplexNetwork.mo

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,5 +60,4 @@ equation
6060
points={{-50,0},{-80,0}},
6161
color={191,0,0},
6262
smooth=Smooth.None));
63-
annotation (Diagram(graphics));
6463
end ComplexNetwork;
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
within ModelicaByExample.Components.HeatTransfer;
2-
package Examples
2+
package Examples
33
end Examples;
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
within ModelicaByExample.Components.HodgkinHuxley;
2-
package Components
2+
package Components
33
end Components;

ModelicaByExample/Components/LotkaVolterra/Components/Reproduction.mo

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ model Reproduction "Model of reproduction"
44
parameter Real alpha "Birth rate proportionality constant";
55
equation
66
growth = alpha*species.population "Growth is proporational to population";
7-
annotation (Diagram(graphics), Icon(graphics={
7+
annotation ( Icon(graphics={
88
Rectangle(
99
extent={{-100,100},{100,-100}},
1010
lineColor={0,0,0},

ModelicaByExample/Components/LotkaVolterra/Interfaces/SinkOrSource.mo

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,5 +14,5 @@ equation
1414
lineColor={0,0,0},
1515
fillColor={255,255,255},
1616
fillPattern=FillPattern.Solid,
17-
textString="%name")}), Diagram(graphics));
17+
textString="%name")}));
1818
end SinkOrSource;

ModelicaByExample/Components/LotkaVolterra/Interfaces/Species.mo

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,5 +18,5 @@ connector Species "Used to represent the population of a specific species"
1818
lineColor={0,127,0},
1919
fillColor={255,255,255},
2020
fillPattern=FillPattern.Solid,
21-
textString="%name")}), Diagram(graphics));
21+
textString="%name")}));
2222
end Species;

ModelicaByExample/Components/Rotational/Components/ConfigurableGear.mo

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,5 +62,5 @@ equation
6262
lineColor={0,0,0},
6363
fillColor={255,255,255},
6464
fillPattern=FillPattern.Solid,
65-
textString="%name")}), Diagram(graphics));
65+
textString="%name")}));
6666
end ConfigurableGear;

ModelicaByExample/Components/Rotational/Components/Inertia.mo

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ equation
1212
phi_rel = 0 "inertia is rigid";
1313
J*der(w) = flange_a.tau + flange_b.tau
1414
"Conservation of angular momentum with storage";
15-
annotation (Diagram(graphics), Icon(graphics={
15+
annotation ( Icon(graphics={
1616
Rectangle(
1717
extent={{-100,10},{-50,-10}},
1818
lineColor={0,0,0},

ModelicaByExample/Components/Rotational/Components/Inertia2.mo

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ equation
1414
phi_rel = 0 "inertia is rigid";
1515
J*der(w) = flange_a.tau + flange_b.tau
1616
"Conservation of angular momentum with storage";
17-
annotation (Diagram(graphics), Icon(graphics={
17+
annotation ( Icon(graphics={
1818
Rectangle(
1919
extent={{-100,10},{-50,-10}},
2020
lineColor={0,0,0},

ModelicaByExample/Components/Rotational/Examples/SMD_ConfigurableGear.mo

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,5 +90,4 @@ equation
9090
points={{-30,-40},{-20,-40},{-20,-40},{-10,-40}},
9191
color={0,0,0},
9292
smooth=Smooth.None));
93-
annotation (Diagram(graphics));
9493
end SMD_ConfigurableGear;

ModelicaByExample/Components/Rotational/Examples/SMD_GearComparison.mo

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,5 +158,4 @@ equation
158158
points={{-80,40},{-76,40},{-76,30},{-70,30}},
159159
color={0,0,0},
160160
smooth=Smooth.None));
161-
annotation (Diagram(graphics));
162161
end SMD_GearComparison;

ModelicaByExample/Components/Rotational/Examples/SMD_WithBacklash.mo

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,5 +12,4 @@ equation
1212
points={{-30,0},{-10,0}},
1313
color={0,0,0},
1414
smooth=Smooth.None));
15-
annotation (Diagram(graphics));
1615
end SMD_WithBacklash;

0 commit comments

Comments
 (0)