forked from modelica/ModelicaStandardLibrary
-
Notifications
You must be signed in to change notification settings - Fork 1
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
3 changed files
with
56 additions
and
4 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
within ModelicaTest.Electrical; | ||
package Analog | ||
extends Modelica.Icons.ExamplesPackage; | ||
model TestSaturatingInductor | ||
"Simple demo to show behaviour of SaturatingInductor component" | ||
extends Modelica.Icons.Example; | ||
import Modelica.Constants.pi; | ||
parameter Modelica.SIunits.Inductance Lzer=10 "Inductance near current=0"; | ||
parameter Modelica.SIunits.Inductance Lnom=1 "Nominal inductance at Nominal current"; | ||
parameter Modelica.SIunits.Current Inom=1 "Nominal current"; | ||
parameter Modelica.SIunits.Inductance Linf=0.1 "Inductance at large currents"; | ||
parameter Modelica.SIunits.Current I=sqrt(2) "Source current (peak)"; | ||
Modelica.Electrical.Analog.Sources.RampCurrent rampCurrent( | ||
I=2*I, | ||
duration=1, | ||
offset=-I) | ||
annotation (Placement(transformation( | ||
origin={-20,50}, | ||
extent={{10,-10},{-10,10}}, | ||
rotation=270))); | ||
Modelica.Electrical.Analog.Basic.Ground ground | ||
annotation (Placement(transformation(extent={{-30,10},{-10,30}}))); | ||
Modelica.Electrical.Analog.Basic.SaturatingInductor saturatingInductor( | ||
Inom=Inom, | ||
Lnom=Lnom/(2*pi), | ||
Lzer=Lzer/(2*pi), | ||
Linf=Linf/(2*pi), | ||
i(fixed=false)) annotation (Placement(transformation( | ||
origin={20,50}, | ||
extent={{-10,-10},{10,10}}, | ||
rotation=270))); | ||
equation | ||
connect(rampCurrent.p, ground.p) | ||
annotation (Line(points={{-20,40},{-20,30}}, | ||
color={0,0,255})); | ||
connect(ground.p, saturatingInductor.n) | ||
annotation (Line(points={{-20,30},{20,30},{20,40}},color={0,0,255})); | ||
connect(rampCurrent.n, saturatingInductor.p) annotation (Line(points={{-20,60}, | ||
{-20,70},{20,70},{20,60}}, color={0,0,255})); | ||
annotation ( | ||
Diagram(coordinateSystem(preserveAspectRatio=true, extent={{-100,-100},{100, | ||
100}})), | ||
experiment(Interval=0.001, Tolerance=1e-05), | ||
Documentation(info="<html> | ||
<p>This simple circuit uses the saturating inductor which has an inductance dependent on current.</p> | ||
<p>Plot <code>saturatingInductor.Psi</code> versus <code>saturatingInductor.i</code></p> | ||
</html>")); | ||
end TestSaturatingInductor; | ||
end Analog; |
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 |
---|---|---|
@@ -1,3 +1,4 @@ | ||
Analog | ||
Machines | ||
PowerConverters | ||
QuasiStatic | ||
|