Skip to content

Commit

Permalink
Remove Pi (modelica#3024)
Browse files Browse the repository at this point in the history
  • Loading branch information
beutlich committed Jul 15, 2019
1 parent 4d42c91 commit 7a6a457
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 3 deletions.
3 changes: 0 additions & 3 deletions Modelica/Electrical/Analog/Basic.mo
Expand Up @@ -1188,9 +1188,6 @@ the user has to allocate the parameter vector <em>L[6] </em>, since <em>Nv=(N*(N
// number of intervals: 2500, stop time: 0.003
parameter SI.Time Ts=0.0000012 "Sampling time";

// constant expressions
constant Real Pi=3.141592654 "Obsolete constant pi; will be removed in future release";

// power supply
final parameter SI.Voltage vcp_abs=abs(vcp)
"Positive correction value for limiting by p_supply";
Expand Down
Expand Up @@ -119,6 +119,8 @@ convertClass("Modelica.Icons.MotorIcon",
"Modelica.Electrical.Machines.Icons.Drive")
convertClass("Modelica.Mechanics.MultiBody.Icons.MotorIcon",
"Modelica.Electrical.Machines.Icons.Drive")
convertClass("Modelica.Electrical.Analog.Basic.OpAmpDetailed.Pi",
"Modelica.Constants.pi")
convertClass("Modelica.Icons.Info",
"Modelica.Icons.Information")
convertClass("Modelica.Mechanics.MultiBody.Sensors.TansformAbsoluteVector",
Expand Down
10 changes: 10 additions & 0 deletions ModelicaTestConversion4.mo
Expand Up @@ -314,6 +314,16 @@ Conversion test for <a href=\"https://github.com/modelica/ModelicaStandardLibrar
</p>
</html>"));
end Issue2899;

model Issue3024 "Conversion test for #3024"
extends Modelica.Icons.Example;
import pi = Modelica.Electrical.Analog.Basic.OpAmpDetailed.Pi;
annotation(experiment(StopTime=1), Documentation(info="<html>
<p>
Conversion test for <a href=\"https://github.com/modelica/ModelicaStandardLibrary/issues/3024\">#3024</a>.
</p>
</html>"));
end Issue3024;
end Analog;

package Digital
Expand Down

0 comments on commit 7a6a457

Please sign in to comment.