Skip to content

Commit a2aafa1

Browse files
committed
refs #2477: Fix icon frame color of ComplexMath.Bode
1 parent 6cfa6a1 commit a2aafa1

File tree

1 file changed

+4
-7
lines changed

1 file changed

+4
-7
lines changed

Modelica/ComplexBlocks.mo

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1888,19 +1888,20 @@ An error occurs if the elements of the input <code>u</code> is zero.
18881888
end ComplexToPolar;
18891889

18901890
block Bode "Calculate quantities to plot Bode diagram"
1891+
extends Modelica.ComplexBlocks.Icons.ComplexBlock;
18911892
parameter Boolean useDivisor = true "Use divisor input, if true" annotation(Evaluate = true, HideResult = true, choices( checkBox = true));
18921893
constant Modelica.SIunits.AmplitudeLevelDifference dB = 20 "Amplitude level difference";
18931894
Interfaces.ComplexInput u "Dividend if useDivisor == true" annotation (Placement(transformation(extent={{-140,40},{-100,80}}), iconTransformation(extent={{-140,40},{-100,80}})));
18941895
Interfaces.ComplexInput divisor if useDivisor "Divisor" annotation (Placement(transformation(extent={{-140,-80},{-100,-40}}), iconTransformation(extent={{-140,-80},{-100,-40}})));
18951896
Blocks.Interfaces.RealOutput abs_y "Absolute value of ratio u / divisor" annotation (Placement(transformation(extent={{-10,-10},{10,10}},
18961897
rotation=270,
1897-
origin={-60,-110}), iconTransformation(
1898+
origin={-60,-110}), iconTransformation(
18981899
extent={{-10,-10},{10,10}},
18991900
rotation=270,
19001901
origin={-60,-110})));
19011902
Blocks.Interfaces.RealOutput arg_y(unit="rad") "Angle of ratio u / divisor" annotation (Placement(transformation(extent={{-10,-10},{10,10}},
19021903
rotation=270,
1903-
origin={60,-110}), iconTransformation(
1904+
origin={60,-110}), iconTransformation(
19041905
extent={{-10,-10},{10,10}},
19051906
rotation=270,
19061907
origin={60,-110})));
@@ -1937,11 +1938,7 @@ An error occurs if the elements of the input <code>u</code> is zero.
19371938
connect(gain.y, dB_y) annotation (Line(points={{31,-70},{40,-70},{40,-90},{0,-90},{0,-110}},color={0,0,127}));
19381939
connect(limiter.y, log10_y.u) annotation (Line(points={{-29,-70},{-22,-70}}, color={0,0,127}));
19391940
connect(complexToPolar.len, limiter.u) annotation (Line(points={{-6,-32},{-6,-40},{-60,-40},{-60,-70},{-52,-70}}, color={0,0,127}));
1940-
annotation (Icon(graphics={Rectangle(
1941-
extent={{-100,-100},{100,100}},
1942-
lineColor={0,0,127},
1943-
fillColor={255,255,255},
1944-
fillPattern=FillPattern.Solid),
1941+
annotation (Icon(graphics={
19451942
Line(points={{-78,44},{80,44}}, color={135,135,135}),
19461943
Line(points={{-78,34},{80,34}}, color={135,135,135}),
19471944
Line(points={{-78,20},{80,20}}, color={135,135,135}),

0 commit comments

Comments
 (0)